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: Enda
Subject: Re: How to turn off font-lock-mode with a local variable
Date: Mon, 9 Jul 2012 13:28:24 -0700 (PDT)

I want to disable font-lock-mode using Local Variables, and the obvious way does not work.

- Enda


From: Drew Adams <drew.adams@oracle.com>
To: 'Enda' <enda_k2@yahoo.com>; help-gnu-emacs@gnu.org
Sent: Monday, July 9, 2012 9:23 PM
Subject: RE: How to turn off font-lock-mode with a local variable

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