all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Directory-local variables?
Date: Wed, 07 Jan 2009 02:45:42 +0200	[thread overview]
Message-ID: <87eizgeyfd.fsf@jurta.org> (raw)
In-Reply-To: <874p0h6wtf.fsf@jurta.org> (Juri Linkov's message of "Sat, 03 Jan 2009 02:46:20 +0200")

> Two different formats for the same feature is a bad thing.  It requires
> complete rewriting of these settings when moving file local variables
> to the directory-wide file and back.  This is very inconvenient.
>
> While it is not too late, I think we should use the same easy to write
> format as in a Local Variables: section with keeping already implemented
> features of directory-wide file variables (specifying multiply mode
> settings in the same file).

How about the following format for the directory-wide local variables file?
It is based on the standard Emacs format for Local Variables.  The first
section applies to any mode, and subsequent sections begin with the
`-*-...-*-' line and specify either a mode or a subdirectory:

Local variables:
indent-tabs-mode: maybe
tab-width: 8
fill-column: 70
End:

-*- mode: c -*-
Local variables:
c-file-style: "GNU"
End:

-*- mode: change-log -*-
Local variables:
add-log-time-zone-rule: t
fill-column: 74
End:

-*- default-directory: "src/imported" -*-
Local variables:
change-log-default-name: "ChangeLog.local"
End:

-- 
Juri Linkov
http://www.jurta.org/emacs/




  reply	other threads:[~2009-01-07  0:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-28 17:29 Directory-local variables? Richard M Stallman
2008-12-28 19:35 ` Eli Zaretskii
2008-12-29  0:30   ` Juri Linkov
2008-12-29  4:06     ` Eli Zaretskii
2008-12-29 22:09     ` Richard M Stallman
2008-12-29 22:19       ` Lennart Borgman
2008-12-30  0:05       ` Juri Linkov
2008-12-29 22:09   ` Richard M Stallman
2008-12-30 20:19 ` Stefan Monnier
2008-12-31 12:29   ` Juri Linkov
2009-01-03  0:46     ` Juri Linkov
2009-01-07  0:45       ` Juri Linkov [this message]
2009-01-12 18:21         ` Stefan Monnier

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=87eizgeyfd.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rms@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.