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

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

How add Font Lock keywords & not clash with other modes?


From: address@hidden
Subject: How add Font Lock keywords & not clash with other modes?
Date: Thu, 18 Dec 2008 15:23:32 -0800 (PST)
User-agent: G2/1.0

I wrote a very simple mode that simply adds one keyword of 2 regexs to
the Font Lock mode keywords list...

(("\t+"                    0 'highlight)      ; Highlight
TABs.
 ("^.\\{79\\}\\(.*\\)" 1 'highlight))    ; Highlight chars beyond
column 79

I noticed it doesn't work right in HTML mode.

Is there a way to add custom keywords so that they don't clash with
language modes?

(I saw some code where they added their keywords to the *end* of the
keywords list.  Is that the answer?)

Chris


reply via email to

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