From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: How in .dir-locals.el make association between file extension and Emacs mode? Date: Mon, 10 Jan 2011 13:23:43 -0500 Organization: A noiseless patient Spider Message-ID: References: <87y670b6y5.fsf@puma.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1294685045 32319 80.91.229.12 (10 Jan 2011 18:44:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 10 Jan 2011 18:44:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 10 19:44:01 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PcMin-0003Pe-Im for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Jan 2011 19:44:01 +0100 Original-Received: from localhost ([127.0.0.1]:48429 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcMin-0003od-4a for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Jan 2011 13:44:01 -0500 Original-Path: usenet.stanford.edu!goblin1!goblin2!goblin.stu.neva.ru!xlned.com!feeder3.xlned.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Injection-Info: mx03.eternal-september.org; posting-host="8jSoPKcnI4RsJz0v4H4pBg"; logging-data="28147"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19NLqN0gOo23JpaictdRkIN" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:IITEKrq0ymkcwPMoqPJ6BMv19Ks= sha1:oZrOaxbgoYTHh1CRFjm1IBCfN6E= Original-Xref: usenet.stanford.edu gnu.emacs.help:184193 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78373 Archived-At: > I understand how set 'fill-column' via '.dir-local.el'. > But how set coding system and make association between file extension > and Emacs modes? IIUC you want to have a "directory-local" setting for auto-mode-alist, i.e. some way to specify that "files with name *.foo under this directory should use bar-mode". This sounds like an eminently reasonable request, and I don't think you can do it with .dir-locals.el currently. So please M-x report-emacs-bug and request this new feature. Stefan