emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dir-local vs major-mode setting


From: Phil Sainty
Subject: Re: dir-local vs major-mode setting
Date: Thu, 15 Nov 2018 10:58:29 +1300
User-agent: Orcon Webmail

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]