I would like to change the syntax highlighting in my
lua-mode.el without affecting other major modes.
Just as an example, I would like "key words" like
else to be in bold and blue typeface when in
lua-mode (instead of the default pink) without having the same highlighting style while editing a
.tex file with AUCTeX.
So far I have tried to put the following code in my
.emacs and then also in my
(custom-set-faces '(font-lock-builtin-face ((t (:foreground "maroon3")))) '(font-lock-comment-face ((t (:foreground "green4")))) '(font-lock-keyword-face ((t (:foreground "dark blue" :weight bold)))) '(font-lock-string-face ((t (:foreground "dark cyan")))))
but this way I get the same syntax highlighting for every mode I work with.
This question might be related: Change syntax highlighting without changing major mode?
Is there a (hopefully simple and general) way to do this?