[Top][All Lists]

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

Re: Background colors in font-lock-keywords

From: Oliver Scholz
Subject: Re: Background colors in font-lock-keywords
Date: Wed, 28 May 2003 00:43:39 +0200
User-agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (windows-nt)

Oliver Scholz <address@hidden> writes:

> Unfortunately there isn't a way to do this. The thing that comes
> closest to this is something like:
> (set (make-local-variable 'default-text-properties)
>      '(face example-l-word-face))
> The disadvantages are obvious.

I forgot to add: you can also do something like:

(overlay-put (make-overlay (point-min)

Still not exactly what you want and not a canonical thing to do in a
major mode. But you don't have to add `prepend' keywords to all your
font-lock directives.

9 Prairial an 211 de la Révolution
Liberté, Egalité, Fraternité!

reply via email to

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