all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.