all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oleksandr Gavenko <gavenkoa@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 14:48:58 +0200	[thread overview]
Message-ID: <ifv4vu$jh5$1@dough.gmane.org> (raw)
In-Reply-To: <ifuis0$1bn$1@dough.gmane.org>

04.01.2011 9:40, Kevin Rodgers пишет:
> 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?
>
I store collected my tips under same folder with .txt extension.

Every time when I create new .txt file I forget add:

   -*- mode: outline; coding: utf-8; fill-column: 80 -*-

to header. There are nearly 120 files.

I can fix headers from time to time by script but this require
spending own time, so ugly.

I expect that Emacs already have mechanism to make this.
Per project configurations which provided by standard Emacs packages.

--
Any help welcome!




  reply	other threads:[~2011-01-04 12:48 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
2011-01-04 12:48   ` Oleksandr Gavenko [this message]
     [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='ifv4vu$jh5$1@dough.gmane.org' \
    --to=gavenkoa@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.