help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Dir-Locals + Editorconfig Changes in Emacs 26


From: Eli Zaretskii
Subject: Re: Dir-Locals + Editorconfig Changes in Emacs 26
Date: Tue, 03 Oct 2017 18:39:15 +0300

> From: Jay Kamat <address@hidden>
> Date: Mon, 02 Oct 2017 13:55:33 -0400
> 
> However, since emacs 26, this is reversed, where dir-locals is applied
> first, rather than last, and so editorconfig overrides dir-locals. I
> have filed a bug report to the project here to document it:
> https://github.com/editorconfig/editorconfig-emacs/issues/141
> 
> The reason that this is significant is that editorconfig not only lets
> you configure on a per-project basis, but recursively on a per machine
> basis as well, so if you have a editorconfig file in your home directory
> (as many people do) those settings will apply for every file on your
> system, overwriting dir-locals settings. Since dir-locals is more
> powerful and project-specific, I would much prefer dir-locals to
> override editorconfig.
> 
> Editorconfig seems to apply on the 'after-change-major-mode' hook, as
> shown below:

Could it be that the major mode hook is now called twice, and
Editorconfig fails to notice that one of these calls is to turn the
mode off?



reply via email to

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