From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How in .dir-locals.el make association between file extension and Emacs mode?
Date: Tue, 04 Jan 2011 00:40:03 -0700 [thread overview]
Message-ID: <ifuis0$1bn$1@dough.gmane.org> (raw)
In-Reply-To: <ifdog8$ogs$2@dough.gmane.org>
On 12/28/10 3:31 PM, Oleksandr Gavenko wrote:
> How in .dir-locals.el make association between file extension and Emacs mode?
The association between file name extensions and major modes is stored in the
auto-mode-alist variable, which is not a buffer local variable and thus not
suitable to be used as a file or directory variable.
That is an abstract argument against it, there is also a practical argument:
auto-mode-alist is a global variable that is consulted by set-auto-mode, which
is run by normal-mode before it calls hack-local-variables/
hack-dir-local-variables.
What do you want to do?
--
Kevin Rodgers
Denver, Colorado, USA
next prev parent reply other threads:[~2011-01-04 7:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-28 22:31 How in .dir-locals.el make association between file extension and Emacs mode? Oleksandr Gavenko
2011-01-04 7:40 ` Kevin Rodgers [this message]
2011-01-04 12:48 ` Oleksandr Gavenko
[not found] ` <mailman.0.1294145359.16099.help-gnu-emacs@gnu.org>
2011-01-04 23:11 ` Tim X
2011-01-09 23:12 ` Oleksandr Gavenko
[not found] ` <mailman.0.1294614772.18285.help-gnu-emacs@gnu.org>
2011-01-10 0:00 ` Tim X
2011-01-10 18:23 ` Stefan Monnier
2011-01-19 20:54 ` Ted Zlatanov
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ifuis0$1bn$1@dough.gmane.org' \
--to=kevin.d.rodgers@gmail.com \
--cc=help-gnu-emacs@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.