help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Can a face have different attributes in different buffers?


From: Kevin Rodgers
Subject: Re: Can a face have different attributes in different buffers?
Date: Mon, 24 Jan 2005 10:31:51 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

Yevgeniy Makarov wrote:
> (add-hook 'mail-mode-hook
>   '(lambda ()
>      (make-local-variable 'font-lock-comment-face)
>      (setq font-lock-comment-face 'mail-quotation-face)))

FYI, that can be shortened to

(add-hook 'mail-mode-hook
          (lambda ()
            (set (make-local-variable 'font-lock-comment-face)
                 'mail-quotation-face)))

--
Kevin Rodgers

reply via email to

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