[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." <cloos@jhcloos.com> 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.