From mboxrd@z Thu Jan 1 00:00:00 1970 From: Enda Subject: How to turn off font-lock-mode per file Date: Wed, 27 Jun 2012 09:01:52 -0700 (PDT) Message-ID: <1340812912.63095.YahooMailNeo@web163103.mail.bf1.yahoo.com> Reply-To: Enda Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="673831718-524489303-1340812912=:63095" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sjugv-0007s3-9a for emacs-orgmode@gnu.org; Wed, 27 Jun 2012 12:02:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sjugk-0005nW-6m for emacs-orgmode@gnu.org; Wed, 27 Jun 2012 12:02:04 -0400 Received: from nm38-vm5.bullet.mail.bf1.yahoo.com ([72.30.239.21]:42093) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Sjugj-0005m8-UY for emacs-orgmode@gnu.org; Wed, 27 Jun 2012 12:01:54 -0400 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: "emacs-orgmode@gnu.org" --673831718-524489303-1340812912=:63095 Content-Type: text/plain; charset=us-ascii How do you turn off font-lock-mode per file (an org file)? Best wishes, Enda --673831718-524489303-1340812912=:63095 Content-Type: text/html; charset=us-ascii
How do you turn off font-lock-mode per file (an org file)?


Best wishes,

Enda

--673831718-524489303-1340812912=:63095-- 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 12:43:23 -0400 Message-ID: <8822.1340815403@alphaville> References: <1340812912.63095.YahooMailNeo@web163103.mail.bf1.yahoo.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjvL4-00021Q-6Z for emacs-orgmode@gnu.org; Wed, 27 Jun 2012 12:43:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjvKx-0001nt-FV for emacs-orgmode@gnu.org; Wed, 27 Jun 2012 12:43:33 -0400 Received: from g5t0008.atlanta.hp.com ([15.192.0.45]:12108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjvKx-0001nD-B0 for emacs-orgmode@gnu.org; Wed, 27 Jun 2012 12:43:27 -0400 In-Reply-To: Message from Enda of "Wed, 27 Jun 2012 09:01:52 PDT." <1340812912.63095.YahooMailNeo@web163103.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: > 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darlan Cavalcante Moreira Subject: Re: How to turn off font-lock-mode per file Date: Wed, 27 Jun 2012 13:46:26 -0300 Message-ID: <4feb38e6.e325ec0a.13ca.07ca@mx.google.com> References: <1340812912.63095.YahooMailNeo@web163103.mail.bf1.yahoo.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjvO2-0003X8-K7 for emacs-orgmode@gnu.org; Wed, 27 Jun 2012 12:46:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjvNx-0003nk-Qg for emacs-orgmode@gnu.org; Wed, 27 Jun 2012 12:46:38 -0400 Received: from mail-yw0-f48.google.com ([209.85.213.48]:53506) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjvNx-0003mp-Jf for emacs-orgmode@gnu.org; Wed, 27 Jun 2012 12:46:33 -0400 Received: by yhfq46 with SMTP id q46so665348yhf.35 for ; Wed, 27 Jun 2012 09:46:31 -0700 (PDT) In-Reply-To: <1340812912.63095.YahooMailNeo@web163103.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" Add a file local variable. "M-x add-file-local-variable" Write "mode" for the variable and "font-lock-mode" for its value (without quotes). I tested this and it worked. -- Darlan At Wed, 27 Jun 2012 09:01:52 -0700 (PDT), Enda wrote: > > [1 ] > How do you turn off font-lock-mode per file (an org file)? > > > Best wishes, > > Enda > [2 ] > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Enda Subject: Re: How to turn off font-lock-mode per file Date: Wed, 27 Jun 2012 09:56:12 -0700 (PDT) Message-ID: <1340816172.26577.YahooMailNeo@web163102.mail.bf1.yahoo.com> References: <1340812912.63095.YahooMailNeo@web163103.mail.bf1.yahoo.com> <8822.1340815403@alphaville> Reply-To: Enda Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="31392086-1810523033-1340816172=:26577" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjvXQ-0007AP-GG for emacs-orgmode@gnu.org; Wed, 27 Jun 2012 12:56:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjvXK-0000mo-85 for emacs-orgmode@gnu.org; Wed, 27 Jun 2012 12:56:20 -0400 Received: from nm3-vm0.bullet.mail.bf1.yahoo.com ([98.139.212.154]:35448) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SjvXK-0000mL-0w for emacs-orgmode@gnu.org; Wed, 27 Jun 2012 12:56:14 -0400 In-Reply-To: <8822.1340815403@alphaville> 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: "nicholas.dokos@hp.com" Cc: "emacs-orgmode@gnu.org" --31392086-1810523033-1340816172=:26577 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Thanks, I already read that section of the manual.=0A=0AI know I can turn o= n font-lock-mode for any file with=0A# -*- mode: font-lock;=A0-*-=0Aeven th= ough it is the default, the manual does not specify how to turn off a mode.= =0A=0A(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.)=0A=0A=0ABest wishes,=0A=0AEnda=0A= =0A=0A________________________________=0A From: Nick Dokos =0ATo: Enda =0ACc: "emacs-orgmode@gnu.org" =0ASent: Wednesday, June 27, 2012 5:43 PM=0ASubject: Re:= [O] How to turn off font-lock-mode per file=0A =0AEnda = wrote:=0A=0A> How do you turn off font-lock-mode per file (an org file)?= =0A> =0A=0AA lot of your questions are emacs questions and you could find t= he=0Aanswers in the emacs manual, e.g. this exact question is answered in= =0Asec.48.2.4.1, "Specifying File Variables", of the emacs manual:=0A=0A(in= fo "(emacs) Specifying File Variables")=0A=0ANick --31392086-1810523033-1340816172=:26577 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks, I already read that section of the manual.

I know I can turn on font-lock-mode for any file with<= /div>
# -*- mode: font-lock; -*-
even thoug= h 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 fo= nt lock mode, but I do not know how do this in the file.)


Best wishes,

Enda

Fr= om: Nick Dokos <nicholas.dokos@hp.com>
To: Enda <enda_k2@yahoo.com>
<= b>Cc: "emacs-orgmode@gnu.org"= <emacs-orgmode@gnu.org>
S= ent: Wednesday, June 27, 2012 5:43 PM
Subject: Re: [O] How to turn off font-lock-mode per file

=0AEnda <enda_k2@yahoo.com> 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
answe= rs 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 "(emac= s) Specifying File Variables")

Nick


--31392086-1810523033-1340816172=:26577-- 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: > > ----------------------------------------------------