Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
To: Nicolas Martyanoff <khaelin@gmail.com>
Cc: ding@gnus.org
Subject: Re: Display fontification
Date: Wed, 19 Jan 2011 22:06:10 +0100	[thread overview]
Message-ID: <877he0bo3h.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <fwnzkqx3w13.fsf@boukha.corp> (Nicolas Martyanoff's message of "Wed, 19 Jan 2011 13:42:00 +0100")

On Wed, Jan 19 2011, Nicolas Martyanoff wrote:

> I regularly receive mails generated by a git hook, each one containing
> the diff of a commit. I'd like to display the diff with syntax
> highlighting, but can't find how.
>
> The manual tells about mm-inline-media-tests, but it seems to work only
> for attachment. Here the diff is in the body of message. Ideally, I'd
> like to be able to specify a user-provided function which analyze the
> message, and tell gnus to use the diff faces to highlight the body.
>
> Is there a way to do that ?

Try adding the group name to `mm-uu-diff-groups-regexp':

,----[ <f1> v mm-uu-diff-groups-regexp RET ]
| mm-uu-diff-groups-regexp is a variable defined in `mm-uu.el'.
| Its value is 
| "gmane\\..*\\(diff\\|commit\\|cvs\\|bug\\|devel\\)"
| 
| 
| Documentation:
| Regexp matching diff groups.
| 
| You can customize this variable.
`----

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/



      reply	other threads:[~2011-01-19 21:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-19 12:42 Nicolas Martyanoff
2011-01-19 21:06 ` Reiner Steib [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

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

  git send-email \
    --in-reply-to=877he0bo3h.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=ding@gnus.org \
    --cc=khaelin@gmail.com \
    /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.
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 NNTP newsgroup(s).