From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: mail-mode: colors in multiply-quoted lines Date: Mon, 31 Jan 2011 12:45:50 -0500 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1296499234 14791 80.91.229.12 (31 Jan 2011 18:40:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 31 Jan 2011 18:40:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 31 19:40:30 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pjyft-0007ah-JF for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Jan 2011 19:40:29 +0100 Original-Received: from localhost ([127.0.0.1]:55007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pjyft-0005dt-60 for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Jan 2011 13:40:29 -0500 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Injection-Info: mx03.eternal-september.org; posting-host="xK1PaR9QACCMJMb7vrAh2Q"; logging-data="22495"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xKE53y2zuYPohr9ZDGFvs" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:5C8J36k8xCpPez7y2pbY6/ndbU8= sha1:O99X0/57YeXHrVxPJ/QZIawFm5g= Original-Xref: usenet.stanford.edu gnu.emacs.help:184729 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78885 Archived-At: > 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