[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: font-lock and text mode
From: |
Kai Großjohann |
Subject: |
Re: font-lock and text mode |
Date: |
Mon, 24 Feb 2003 14:46:25 +0100 |
User-agent: |
Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 |
Oliver Scholz <alkibiades@gmx.de> writes:
> I noticed that `hi-lock-mode' doesn't work properly in text mode (CVS
> Emacs): after I have added a regexp with `C-x w h', matches already
> in the buffer are highlighted, but matching text that I insert after
> that is not.
I think it works as intended.
> Also it seems to be impossible to add highlighting via
> font-lock-keywords to text mode.
>
> (font-lock-add-keywords nil
> '(("\\<lirum larum\\>" . font-lock-warning-face)))
>
> I tried a lot to find the reason for this.
I think the deeper reason is that text-mode has no font-lock support.
Maybe it is easiest to just use your derived mode.
--
A preposition is not a good thing to end a sentence with.