[Top][All Lists]

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

font-lock-add-keywords in outline-mode

From: Sebastian Tennant
Subject: font-lock-add-keywords in outline-mode
Date: Tue, 09 Oct 2007 07:56:05 +0300
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Hi all,

When I eval

 (font-lock-add-keywords nil '("<regexp>" . font-lock-variable-name-face))

in a buffer in outline mode, the pattern matched by the <regexp> is
highlighted as intended, but outline-mode's headers; for example:

** test data 

are no longer highlighted.

Presumably this is because the <regexp> I've added somehow overides
the regexp for the outline headers ("^\\*.*" maybe).

Is there an easy way to avoid this and still use the handy
font-lock-add-keyowrds function?


reply via email to

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