From: Phil Sainty <psainty@orcon.net.nz>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: dir-local vs major-mode setting
Date: Thu, 15 Nov 2018 10:58:29 +1300 [thread overview]
Message-ID: <768a1a8509311e0e5308ef87c53875a0@webmail.orcon.net.nz> (raw)
In-Reply-To: <jwvr2fnzf8g.fsf-monnier+emacs@gnu.org>
On 2018-11-15 07:30, Stefan Monnier wrote:
> If we have a dir-locals.el that says:
>
> ((nil . ((indent-tabs-mode . t))))
>
> I think it would make sense to give this setting "lower priority"
> than the setting of indent-tabs-mode that might be imposed by the
> major mode.
The current priority order is sensible to me.
I use the major mode hooks to set my preferred behaviour for each
mode, and dir-local settings to override them in cases where I should
*not* be using the defaults (e.g. to enforce a particular project's
coding standards).
-Phil
next prev parent reply other threads:[~2018-11-14 21:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-14 18:30 dir-local vs major-mode setting Stefan Monnier
2018-11-14 21:58 ` Phil Sainty [this message]
2018-11-14 22:19 ` Stefan Monnier
2018-11-15 1:18 ` Phil Sainty
2018-11-15 3:00 ` Stefan Monnier
2018-11-15 3:12 ` Phil Sainty
2018-11-15 3:27 ` Stefan Monnier
2018-11-16 9:36 ` Phil Sainty
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=768a1a8509311e0e5308ef87c53875a0@webmail.orcon.net.nz \
--to=psainty@orcon.net.nz \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).