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

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

Re: font-lock-add-keywords turning off font-lock-mode


From: Tassilo Horn
Subject: Re: font-lock-add-keywords turning off font-lock-mode
Date: Thu, 20 May 2010 17:13:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Nathaniel Flath <flat0103@gmail.com> writes:

Hi Nathaniel,

> I have a piece of lisp in my configuration:
>
> (add-hook 'java-mode-hook
>   (lambda ()
>    (font-lock-add-keywords nil
>     '(("\\<\\(FIXME\\):" 1 font-lock-warning-face prepend)))))
>
> When this is run, font-lock mode is turned off whenever I open a java
> file.  Turning font-lock-mode back on works, sans the highlighting of
> FIXME.  Executing the body of the lambda in a buffer works fine.  Does
> anyone know what the problem is?

Not really, but I've suffered from a similar problem using emacs 24 from
the bzr repo.  But since I updated my copy yesterday, it works again.

Bye,
Tassilo




reply via email to

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