* Override comment face in one mode only
@ 2013-07-05 10:30 Sebastien Vauban
0 siblings, 0 replies; only message in thread
From: Sebastien Vauban @ 2013-07-05 10:30 UTC (permalink / raw)
To: help-gnu-emacs-mXXj517/zsQ
Hello,
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,
Seb
[1] A friend of mine, in fact...
--
Sebastien Vauban
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-07-05 10:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-05 10:30 Override comment face in one mode only Sebastien Vauban
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.