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

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

Re: Help with font-lock-add-keywords


From: Michael Heerdegen
Subject: Re: Help with font-lock-add-keywords
Date: Fri, 13 Mar 2015 04:47:30 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Marcin Borkowski <address@hidden> writes:

> (font-lock-add-keywords nil '(("foo" . italic)))

According to the doc of `font-lock-keywords', the FACENAME is actually
an expression that gets evaluated.  So you must probably quote `italic',
or define a variable that is bound to 'italic.  There are lots of
variables in Emacs named xxx-face that are bound to face names.

Michael.




reply via email to

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