[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mail-mode: colors in multiply-quoted lines

From: Stefan Monnier
Subject: Re: mail-mode: colors in multiply-quoted lines
Date: Fri, 04 Feb 2011 10:30:16 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> I did play around with both modes, and there's a difference in the
> paragraph filling that's annoying in message-mode. If I have an indented
> section, as for blockquoting:

>   Something like this, where I might go on for a while with material
>   from some other source that I want to set off

> In mail-mode, filling this is fine, it will keep the spaces
> between the paragraphs, keep the indentation and
> reflow to my fill-column length. But in message-mode, it removes
> the spaces between the paragraphs and indents the _second_ line
> much farther, giving a complete mess.

Hmm... I just tried it and indeed the refill doesn't make any sense.
Seems like a plain bug, please report it via M-x report-emacs-bug.

>> 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.

> Thanks. If the other problems could be addressed, adding hooks would be
> a perfectly acceptable way to deal with this.

Not sure what other problems you're thinking of here.  Or are you
talking about message-mode problems?  If so, just replace mail-mode-hook
for message-mode-hook and that should work for mail-mode.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]