unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Jani Nikula <jani@nikula.org>
To: notmuch@freelists.org
Cc: Notmuch Mail <notmuch@notmuchmail.org>
Subject: Re: Colorized git-format-patches in notmuch-show?
Date: Wed, 30 Aug 2017 11:15:30 +0300	[thread overview]
Message-ID: <CAB+hUn9cmvcynO=fmek+boTyb5bE4e+=EkFAbwC6Nznjrn9XBw@mail.gmail.com> (raw)
In-Reply-To: <877exlppkw.fsf@jb55.com>

On Wed, Aug 30, 2017 at 8:55 AM, William Casarin <jb55@jb55.com> 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.

      reply	other threads:[~2017-08-30  8:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-30  5:55 Colorized git-format-patches in notmuch-show? William Casarin
2017-08-30  8:15 ` Jani Nikula [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAB+hUn9cmvcynO=fmek+boTyb5bE4e+=EkFAbwC6Nznjrn9XBw@mail.gmail.com' \
    --to=jani@nikula.org \
    --cc=notmuch@freelists.org \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).