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

[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:23:44 -0700

> 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:
> 
> How do I turn off font-lock-mode per file then?
>       
> This doesn't work either (even though I do not want to turn
> off font-lock globally, just for the file that I am visiting):
>
> ;; Local Variables:
> ;; eval: (lisp-mode)
> ;; eval: (global-font-lock-mode -1)
> ;; End:

See the Emacs manual, node `Font Lock'.




reply via email to

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