unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How add Font Lock keywords & not clash with other modes?
@ 2008-12-18 23:23 seberino
  0 siblings, 0 replies; only message in thread
From: seberino @ 2008-12-18 23:23 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-12-18 23:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-18 23:23 How add Font Lock keywords & not clash with other modes? seberino

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).