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

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

Re: Add font-lock pattern to all modes in Emacs 22.x


From: Scott Frazer
Subject: Re: Add font-lock pattern to all modes in Emacs 22.x
Date: 22 Feb 2007 13:28:11 -0800
User-agent: G2/1.0

On Feb 22, 4:13 pm, "Scott Frazer" <frazer.sc...@gmail.com> wrote:
> I'd like to add a font-lock pattern that will show up in all modes.
> It highlights TODO/FIXME strings in comments only ... here's what I
> have that works in Emacs 21.x:

Fixed it myself.  There is all sorts of crazy fontifying going on with
22.x (minibuffer, etc.) and that was breaking things.  I just wrapped
the font-lock-add-keywords in a (when comment-start (font-lock-add-
keywords ...

Scott



reply via email to

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