From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: How to turn off font-lock-mode per file Date: Wed, 27 Jun 2012 13:03:49 -0400 Message-ID: <9385.1340816629@alphaville> References: <1340812912.63095.YahooMailNeo@web163103.mail.bf1.yahoo.com> <8822.1340815403@alphaville> <1340816172.26577.YahooMailNeo@web163102.mail.bf1.yahoo.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sjvep-0001hf-0N for emacs-orgmode@gnu.org; Wed, 27 Jun 2012 13:04:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sjvej-0004jl-Cg for emacs-orgmode@gnu.org; Wed, 27 Jun 2012 13:03:58 -0400 Received: from g1t0028.austin.hp.com ([15.216.28.35]:32542) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sjvej-0004iV-5e for emacs-orgmode@gnu.org; Wed, 27 Jun 2012 13:03:53 -0400 In-Reply-To: Message from Enda of "Wed, 27 Jun 2012 09:56:12 PDT." <1340816172.26577.YahooMailNeo@web163102.mail.bf1.yahoo.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Enda Cc: "emacs-orgmode@gnu.org" Enda wrote: > Thanks, I already read that section of the manual. > > I know I can turn on font-lock-mode for any file with > # -*- mode: font-lock; -*- > even though it is the default, the manual does not specify how to turn off a mode. > > (I know C-u -1 M-x font-lock-mode always disables font lock mode, but I do not know how do this in > the file.) > Then you must not have read this portion: ,---- | Do not use the `mode' keyword for minor modes. To enable or disable | a minor mode in a local variables list, use the `eval' keyword with a | Lisp expression that runs the mode command (*note Minor Modes::). For | example, the following local variables list enables Eldoc mode (*note | Lisp Doc::) by calling `eldoc-mode' with no argument (calling it with | an argument of 1 would do the same), and disables Font Lock mode (*note | Font Lock::) by calling `font-lock-mode' with an argument of -1. | | ;; Local Variables: | ;; eval: (eldoc-mode) | ;; eval: (font-lock-mode -1) | ;; End: `---- Nick > Best wishes, > > Enda > > ---------------------------------------------------------------------------------------------------- > From: Nick Dokos > To: Enda > Cc: "emacs-orgmode@gnu.org" > Sent: Wednesday, June 27, 2012 5:43 PM > Subject: Re: [O] How to turn off font-lock-mode per file > > Enda wrote: > > > How do you turn off font-lock-mode per file (an org file)? > > > > A lot of your questions are emacs questions and you could find the > answers in the emacs manual, e.g. this exact question is answered in > sec.48.2.4.1, "Specifying File Variables", of the emacs manual: > > (info "(emacs) Specifying File Variables") > > Nick > > > ---------------------------------------------------- > Alternatives: > > ----------------------------------------------------