From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org file opened in latex mode when ending file w/ latex emacs signature Date: Wed, 14 Sep 2016 09:50:50 -0400 Message-ID: <87a8fa1tfp.fsf@gmail.com> References: <027092d2-3658-0cd9-88ad-44727c7b8423@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkAf0-0004sN-0A for emacs-orgmode@gnu.org; Wed, 14 Sep 2016 09:55:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkAes-00024r-Dz for emacs-orgmode@gnu.org; Wed, 14 Sep 2016 09:55:32 -0400 Received: from [195.159.176.226] (port=56660 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkAes-00023j-6l for emacs-orgmode@gnu.org; Wed, 14 Sep 2016 09:55:26 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bkAeZ-00016r-AP for emacs-orgmode@gnu.org; Wed, 14 Sep 2016 15:55:07 +0200 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" To: emacs-orgmode@gnu.org Giacomo M writes: > Dear all, > > I tried to put at the end of an org document > > * eof :ignore: > > #+BEGIN_LaTeX > %%% Local Variables: > %%% mode: latex > %%% TeX-master: t > %%% End: > #+END_LaTeX > > to have it at the end of the latex export so that if I open the tex > (e.g. for debugging) I can compile it directly (w/o the question on who > is the master). > > Oddly, when doing so, the org file is not anymore opened in org mode but > in latex mode instead. > > Why is that? Is it an expected behavior? > Yes: see (info "(emacs) Specifying file variables") -- Nick