From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: How to turn off font-lock-mode with a local variable Date: Mon, 9 Jul 2012 13:23:44 -0700 Message-ID: <87B9834B6B2943F58A1FA57B81C775EF@us.oracle.com> References: <1341859701.89430.YahooMailNeo@web163105.mail.bf1.yahoo.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1341865440 27405 80.91.229.3 (9 Jul 2012 20:24:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Jul 2012 20:24:00 +0000 (UTC) To: "'Enda'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 09 22:24:00 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SoKUw-0004Zf-2K for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jul 2012 22:23:58 +0200 Original-Received: from localhost ([::1]:59760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoKUu-0000KR-V2 for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jul 2012 16:23:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoKUq-0000KI-81 for help-gnu-emacs@gnu.org; Mon, 09 Jul 2012 16:23:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SoKUo-0003Cq-GD for help-gnu-emacs@gnu.org; Mon, 09 Jul 2012 16:23:51 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:44865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoKUo-0003Cc-9T for help-gnu-emacs@gnu.org; Mon, 09 Jul 2012 16:23:50 -0400 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q69KNljI018744 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 9 Jul 2012 20:23:47 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q69KNk4l027393 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 9 Jul 2012 20:23:46 GMT Original-Received: from abhmt101.oracle.com (abhmt101.oracle.com [141.146.116.53]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q69KNkMk016038; Mon, 9 Jul 2012 15:23:46 -0500 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 09 Jul 2012 13:23:45 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <1341859701.89430.YahooMailNeo@web163105.mail.bf1.yahoo.com> Thread-Index: Ac1eA2/3SDYSbFRtTMGIoOJ5rpikNwADPR1g X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85747 Archived-At: > 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'.