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

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

disallow font-lock-mode for a given buffer


From: James H. Cloos Jr.
Subject: disallow font-lock-mode for a given buffer
Date: 28 May 2003 20:49:48 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

When I edit an article in gnus, font-lock-mode gets turned on in the
*Article* buffer.  I suspect this is due to having (global-font-lock-
mode t) in ~/.emacs.  This overrides gnus’ faces.  And doesn’t look
very good doing so….

I tried the probably naïve:

   (add-hook 'gnus-article-mode-hook '(font-lock-mode -1))
   (add-hook 'gnus-article-edit-mode-hook '(font-lock-mode -1))

but that gave an error.

Do I have to put it in a defun to work in a hook?

Or is '() just the wrong syntax?

It’s been too long since I’ve spent any time hacking elisp; I seem to
have forgotton most of the details…. ☹

-JimC





reply via email to

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