Colorized git-format-patches in notmuch-show?

classic Classic list List threaded Threaded
2 messages Options
William Casarin William Casarin
Reply | Threaded
Open this post in threaded view
|

Colorized git-format-patches in notmuch-show?


I'm not sure if this is an option somewhere, but is there a way to
colorize git-format-patch emails in the notmuch-show buffer? I noticed
it works fine if it's an attachment, but not if it's a git-submitted
patch.

Thanks,
William
_______________________________________________
notmuch mailing list
[hidden email]
https://notmuchmail.org/mailman/listinfo/notmuch
Jani Nikula Jani Nikula
Reply | Threaded
Open this post in threaded view
|

Re: Colorized git-format-patches in notmuch-show?

On Wed, Aug 30, 2017 at 8:55 AM, William Casarin <[hidden email]> wrote:
> I'm not sure if this is an option somewhere, but is there a way to
> colorize git-format-patch emails in the notmuch-show buffer? I noticed
> it works fine if it's an attachment, but not if it's a git-submitted
> patch.

Try M-x customize-variable RET notmuch-show-insert-text/plain-hook RET
and check the notmuch-wash-convert-inline-patch-to-part option. This
turns patches to fake parts, which then get the coloring. It's not
enabled by default, because the patch identification does have room
for error. Admittedly the option seems pretty well hidden.

BR,
Jani.
_______________________________________________
notmuch mailing list
[hidden email]
https://notmuchmail.org/mailman/listinfo/notmuch