[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can a face have different attributes in different buffers?
From: |
Yevgeniy Makarov |
Subject: |
Re: Can a face have different attributes in different buffers? |
Date: |
Sun, 23 Jan 2005 00:09:05 -0500 |
User-agent: |
KNode/0.8.2 |
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