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

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

Re: colorization of mode contents


From: Emanuel Berg
Subject: Re: colorization of mode contents
Date: Sun, 26 Jan 2014 00:05:36 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Haines Brown <haines@histomat.net> writes:

>   (font-lock-add-keywords '(latex-mode)
> (("citeNP\{\\(.*\\)\}" (1 'font-lock-comment-face))))

You didn't type that correctly.

'(latex-mode) should be 'latex-mode

And you forgot to quote the list (without it, that
shouldn't even evaluate).

Look below:

(font-lock-add-keywords
 'latex-mode
 '(("citeNP\{\\(.*\\)\}" (1 'font-lock-comment-face))))

It is probably easier at this stage to not mess around
with .emacs - just put the above code in a buffer, and
evaluate it, then put the buffer in latex-mode, then
type the citeNP stuff.

-- 
underground experts united:
http://user.it.uu.se/~embe8573


reply via email to

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