unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* disallow font-lock-mode for a given buffer
@ 2003-05-29  0:49 James H. Cloos Jr.
  0 siblings, 0 replies; 5+ messages in thread
From: James H. Cloos Jr. @ 2003-05-29  0:49 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-05-31  9:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.6963.1054170284.21513.help-gnu-emacs@gnu.org>
2003-05-29  8:27 ` disallow font-lock-mode for a given buffer Kai Großjohann
2003-05-29 11:13   ` James H. Cloos Jr.
     [not found]   ` <mailman.6982.1054207068.21513.help-gnu-emacs@gnu.org>
2003-05-29 11:57     ` Kai Großjohann
2003-05-31  9:23 ` Tim X
2003-05-29  0:49 James H. Cloos Jr.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).