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

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

Re: font-lock problems


From: rgb
Subject: Re: font-lock problems
Date: 19 Sep 2005 15:39:13 -0700
User-agent: G2/0.2

> I am trying to get font-lock to color some words
> ...
> This is part of a major mode, I am writing.

Generally in a major mode you would use something like

(setq font-lock-defaults
  '((inducks-keywords 0 'inducks-keyword-face)
    ...))

rather than font-lock-add-keywords.
I usually only see font-lock-add-keywords used in in
customzation functions such as something put on a mode
hook or in a derived mode.

I didn't look too close at your syntax though.



reply via email to

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