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

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

Re: problem understanding font-lock-defaults structure


From: Nikolaj Schumacher
Subject: Re: problem understanding font-lock-defaults structure
Date: Wed, 08 Oct 2008 23:22:55 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin)

Xah <xahlee@gmail.com> wrote:

> 2008-01-13
??

> After i evaluate the lisp code, i expect, the Sin should be syntax
> highlighted but is not.

>From the doc: "Defaults for Font Lock mode specified by the major mode."

Setting this variable only works when you define a new major mode.  To
add keywords afterwards, use `font-lock-add-keywords'

> I'm not sure how many level of list is required, or if the nesting is
> optional...

Using multiple keywords is optional, i.e. you may leave out the two nils
and one level of parentheses.  Your nesting and quoting is correct.

You might also want to use "\\<Sin\\>" instead of "Sin", etc.

regards,
Nikolaj Schumacher




reply via email to

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