[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How in .dir-locals.el make association between file extension and Em
From: |
Kevin Rodgers |
Subject: |
Re: How in .dir-locals.el make association between file extension and Emacs mode? |
Date: |
Tue, 04 Jan 2011 00:40:03 -0700 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 |
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
- Re: How in .dir-locals.el make association between file extension and Emacs mode?,
Kevin Rodgers <=