[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: How to turn off font-lock-mode with a local variable
From: |
Drew Adams |
Subject: |
RE: How to turn off font-lock-mode with a local variable |
Date: |
Mon, 9 Jul 2012 13:53:02 -0700 |
(Please use plain text for this mailing list.)
> I want to disable font-lock-mode using Local Variables,
> and the obvious way does not work.
>
>> The following when at the end of a file does not turn off
>> font-lock-mode when visiting a file:
>>
>> ;; Local Variables:
>> ;; eval: (lisp-mode)
>> ;; eval: (font-lock-mode -1)
>> ;; End:
FWIW, what you tried works for me, in Emacs 24.1. What is your Emacs version?
Try also this (same as what you tried, except for the major-mode part):
;; Local Variables:
;; mode: lisp
;; eval: (font-lock-mode -1)
;; End:
See (emacs) `Specifying File Variables'.
But neither form seems to work in Emacs 22.3 or 23.3. Perhaps someone else has
a suggestion.