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

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

Re: disallow font-lock-mode for a given buffer


From: Kai Großjohann
Subject: Re: disallow font-lock-mode for a given buffer
Date: Thu, 29 May 2003 10:27:06 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

"James H. Cloos Jr." <address@hidden> writes:

> 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))

You need a function that turns off font-lock-mode:

(defun jhc-turn-off-font-lock ()
  (font-lock-mode -1))

Then, add the function to the hooks:

(add-hook 'gnus-article-edit-mode-hook 'jhc-turn-off-font-lock)

Note that the article *display* is not done with font-lock.
-- 
This line is not blank.


reply via email to

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