all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: mail-mode: colors in multiply-quoted lines
Date: Mon, 31 Jan 2011 12:45:50 -0500	[thread overview]
Message-ID: <jwvlj217z3a.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: ii6ffh$clc$1@panix3.panix.com

> I'm using mail-mode to compose messages, using Mutt for the actual
> mailing. That is, I'm only interested in the composition features (good
> handling of reformatting quoted paragraphs, signatures, etc.), I don't
> care about the actual sending of messages, so message-mode isn't
> relevant to me if the only real difference is in the ability to add MIME
> attachments and so forth.

I recommend you try and use message-mode rather than mail-mode (the
differences should be minor, other than the new features like MIME
handling).
But I don't think that will make a difference to your problem.

To get this kind of multiple-quoting highlighting, you could do
something like:

  (add-hook 'message-mode-hook
            (lambda ()
              (font-lock-add-keywords nil
                '(("^[ \t]*>[ \t\f]*>.*$" (0 'foo-face)))))

where `foo-face' is the face you'd like to use for such quoting.

> mail-mode seems only to colorize all quoted text, i.e. it doesn't color
> text differently depending on the level of quoting. Is there any way to
> get this functionality?

Not currently, no.

> In the Mutt pager, for example you can specify four different colors
> for different levels of quoting; it would be nice to get this when
> I go into the message in Emacs too.

Gnus does it when displaying messages, but not when editing them.
Bringing the two closer to each other would be good.

> I've had a look at post-mode, which does do this, but it seems to be not
> widely used or supported. Is it considered a well-done mode?

I have no idea.


        Stefan


  reply	other threads:[~2011-01-31 17:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-31 14:03 mail-mode: colors in multiply-quoted lines Jesse Sheidlower
2011-01-31 17:45 ` Stefan Monnier [this message]
2011-02-03 11:35   ` Jesse Sheidlower
2011-02-04 15:30     ` Stefan Monnier
2011-02-07 19:32       ` Jesse Sheidlower
2011-02-08  4:09         ` Stefan Monnier
2011-02-12 18:49   ` Reiner Steib
2011-02-24 15:28   ` E.

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=jwvlj217z3a.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.