emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <esflists@gmail.com>
To: Alain.Cochard@unistra.fr
Cc: emacs-orgmode@gnu.org
Subject: Re: LaTeX chunk makes .org file not in Org mode
Date: Fri, 16 Nov 2018 16:32:29 +0000	[thread overview]
Message-ID: <xuu6zhu9yode.fsf@gmail.com> (raw)
In-Reply-To: <23534.47092.122698.159146@frac.u-strasbg.fr> (Alain Cochard's message of "Fri, 16 Nov 2018 13:28:36 +0100")

On Friday, 16 Nov 2018 at 13:28, Alain.Cochard@unistra.fr wrote:
>  > >   %%% Local Variables: 
>  > >   %%% mode: latex
>  > >   %%% TeX-master: t
>  > >   %%% End: 

> But it is certainly not obvious to me why the content of this chunk
> takes precedence over the file extension -- after all, the manual
> says: "Files with the ‘.org’ extension use Org mode by default."

Because local variables are set after the initial loading of the
file.  When the file is opened, the mode is initially determined by the
autoload settings but then local variables allow you to change this as
file extensions may not always reflect what you want.

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.13-894-gf79545

      reply	other threads:[~2018-11-16 16:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-14 11:54 LaTeX chunk makes .org file not in Org mode Alain.Cochard
2018-11-16  9:27 ` Eric S Fraga
2018-11-16 12:28   ` Alain.Cochard
2018-11-16 16:32     ` Eric S Fraga [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xuu6zhu9yode.fsf@gmail.com \
    --to=esflists@gmail.com \
    --cc=Alain.Cochard@unistra.fr \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).