From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Yevgeniy Makarov Newsgroups: gmane.emacs.help Subject: Re: Can a face have different attributes in different buffers? Date: Sun, 23 Jan 2005 00:09:05 -0500 Organization: Indiana University Message-ID: References: <87u0p9nhbu.fsf@thalassa.informatimago.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit X-Trace: sea.gmane.org 1106457170 23327 80.91.229.6 (23 Jan 2005 05:12:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 23 Jan 2005 05:12:50 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 23 06:12:44 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Csa3G-0000r0-00 for ; Sun, 23 Jan 2005 06:12:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CsaFP-0005Bu-KW for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Jan 2005 00:25:15 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news.indiana.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: zero.cs.indiana.edu Original-X-Trace: rainier.uits.indiana.edu 1106456946 27944 129.79.245.19 (23 Jan 2005 05:09:06 GMT) Original-X-Complaints-To: news-admin@indiana.edu Original-NNTP-Posting-Date: Sun, 23 Jan 2005 05:09:06 +0000 (UTC) User-Agent: KNode/0.8.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:128062 Original-To: help-gnu-emacs@gnu.org 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: main.gmane.org gmane.emacs.help:23554 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23554 Johan Bockgård wrote: > The standard font lock faces are referenced through variables. That's a great idea. I created a new face called mail-quotation-face after the example of font-lock-comment-face, and then put the following code in .emacs: (add-hook 'mail-mode-hook '(lambda () (make-local-variable 'font-lock-comment-face) (setq font-lock-comment-face 'mail-quotation-face))) This makes quotation one color, and the comments in other buffers are another color. Thank you again, Yevgeniy