From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Jan_B=F6cker?= Subject: Re: org file containing different local variables Date: Fri, 22 Jan 2010 21:19:22 +0100 Message-ID: <4B5A084A.9090800@jboecker.de> References: <877hraqfll.fsf@online.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NYPzT-0007kx-3J for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 15:20:23 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NYPzO-0007hh-Rt for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 15:20:22 -0500 Received: from [199.232.76.173] (port=38615 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYPzO-0007hb-PE for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 15:20:18 -0500 Received: from mail7.worldserver.net ([217.13.200.27]:56322) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NYPzO-00041O-2m for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 15:20:18 -0500 In-Reply-To: <877hraqfll.fsf@online.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: henry atting Cc: emacs-orgmode@gnu.org On 22.01.2010 17:17, henry atting wrote: > > An org file (it contains an explanation on using emacs distraction free > for writing) lists on some places LaTeX Local Variables, eg: > > %%% Local Variables: > %%% mode: latex > %%% TeX-master: t > %%% End: > > From then on Emacs does not open this file in org-mode but in > latex-mode. > Neiter setting Local Variables at the end to org (mode) does not change this > behaviour nor if set at the beginning of the file. How about changing the "Local Variables:" line such that it looks slightly different to emacs, but means the same to LaTeX? Would changing that line to %%% Local\ Variables: solve your problem? HTH, Jan