[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Add file-locals and dir-locals
From: |
Juri Linkov |
Subject: |
Re: Add file-locals and dir-locals |
Date: |
Sat, 18 Jul 2009 02:06:29 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) |
> Wouldn't it be easier if any file variables in the .dir-locals file
> would count as dir-local? Then copying them around would be much more
> natural. Obvious disadvantages:
>
> a) if different line prefixes are used in different files, when
> combining them, one has to massage them.
>
> b) file-locals for the .dir-locals.el file are not feasible.
Generally would be good, but a stopper is the need to add mode names
to subsets of mode-specific file-locals. Currently .dir-locals.el
groups them by modes like:
((c-mode . ((c-file-style . "GNU")))
(change-log-mode . ((add-log-time-zone-rule . t)
(fill-column . 74))))
I already proposed the following format for the dir-locals file
syntactically compatible with the file-locals format:
-*- mode: c -*-
Local variables:
c-file-style: "GNU"
End:
-*- mode: change-log -*-
Local variables:
add-log-time-zone-rule: t
fill-column: 74
End:
But this syntax is not Lispish.
--
Juri Linkov
http://www.jurta.org/emacs/
- Re: Add file-locals and dir-locals, (continued)
- Re: Add file-locals and dir-locals, martin rudalics, 2009/07/17
- Re: Add file-locals and dir-locals, Juri Linkov, 2009/07/17
- Re: Add file-locals and dir-locals, martin rudalics, 2009/07/18
- Re: Add file-locals and dir-locals, Juri Linkov, 2009/07/18
- Re: Add file-locals and dir-locals, martin rudalics, 2009/07/19
- Re: Add file-locals and dir-locals, Juri Linkov, 2009/07/19
- Re: Add file-locals and dir-locals, Leo, 2009/07/20
- Re: Add file-locals and dir-locals, Juri Linkov, 2009/07/21
- Re: Add file-locals and dir-locals, Leo, 2009/07/21
- Re: Add file-locals and dir-locals, David Kastrup, 2009/07/17
- Re: Add file-locals and dir-locals,
Juri Linkov <=
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Chong Yidong, 2009/07/12
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Alan Mackenzie, 2009/07/12
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Lennart Borgman, 2009/07/12
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Alan Mackenzie, 2009/07/12
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Lennart Borgman, 2009/07/12
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Stephen J. Turnbull, 2009/07/12
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Lennart Borgman, 2009/07/12
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, tomas, 2009/07/13
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Giorgos Keramidas, 2009/07/12
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Alan Mackenzie, 2009/07/13