all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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
[parent not found: <mailman.6963.1054170284.21513.help-gnu-emacs@gnu.org>]

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 --
2003-05-29  0:49 disallow font-lock-mode for a given buffer James H. Cloos Jr.
     [not found] <mailman.6963.1054170284.21513.help-gnu-emacs@gnu.org>
2003-05-29  8:27 ` 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.