* adding font-lock rules
@ 2002-11-01 14:03 Sven Utcke
[not found] ` <utcke+news@informatik.uni-hamburg.de>
0 siblings, 1 reply; 2+ messages in thread
From: Sven Utcke @ 2002-11-01 14:03 UTC (permalink / raw)
Hi,
I would like to add my own font-look rules to an existing mode along
the lines of:
* in mode xxx, whenever you see yyy, colour it red.
* in mode xxx, whenever you see zzz, colour it blue.
etc --- that is, I do _not_ want to simply introduce new keywords,
which are than coloured with font-lock-keyword-face. I know how to
write my own mode doing this (including the keyword-face), but how do
I add this to an existing mode?
Thanks
Sven
--
_ __ The Cognitive Systems Group
| |/ /___ __ _ ___ University of Hamburg
| ' </ _ \/ _` (_-< phone: +49 (0)40 42883-2576 Vogt-Koelln-Strasse 30
|_|\_\___/\__, /__/ fax : +49 (0)40 42883-2572 D-22527 Hamburg
|___/ http://kogs-www.informatik.uni-hamburg.de/~utcke/home.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: adding font-lock rules
[not found] ` <utcke+news@informatik.uni-hamburg.de>
@ 2002-11-01 15:22 ` Peter S Galbraith
0 siblings, 0 replies; 2+ messages in thread
From: Peter S Galbraith @ 2002-11-01 15:22 UTC (permalink / raw)
Cc: help-gnu-emacs
Sven Utcke <utcke+news@informatik.uni-hamburg.de> wrote:
> I would like to add my own font-look rules to an existing mode along
> the lines of:
>
> * in mode xxx, whenever you see yyy, colour it red.
See the function font-lock-add-keywords.
Peter
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-11-01 15:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-01 14:03 adding font-lock rules Sven Utcke
[not found] ` <utcke+news@informatik.uni-hamburg.de>
2002-11-01 15:22 ` Peter S Galbraith
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.