[Top][All Lists]

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

Override comment face in one mode only

From: Sebastien Vauban
Subject: Override comment face in one mode only
Date: Fri, 05 Jul 2013 12:30:15 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (windows-nt)


I [1] would like to override the global green colored comment face just for
LaTeX buffers.

I tried to come up with the following:

--8<---------------cut here---------------start------------->8---
(add-hook 'latex-mode-hook
          (lambda ()
            (set-face-attribute 'font-lock-comment-face nil
                                :weight 'bold
                                :foreground "gray")))
--8<---------------cut here---------------end--------------->8---

but the comments are still green...

And, is it possible to have a local definition of a face?  Or would gray
become the color for all buffers (LaTeX and others)?

Best regards,

[1] A friend of mine, in fact...

Sebastien Vauban

reply via email to

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