all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Dir-Locals + Editorconfig Changes in Emacs 26
Date: Tue, 03 Oct 2017 18:39:15 +0300	[thread overview]
Message-ID: <83d1641brw.fsf@gnu.org> (raw)
In-Reply-To: <873771wi22.fsf@gmail.com> (message from Jay Kamat on Mon, 02 Oct 2017 13:55:33 -0400)

> From: Jay Kamat <jaygkamat@gmail.com>
> 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	other threads:[~2017-10-03 15:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-02 17:55 Dir-Locals + Editorconfig Changes in Emacs 26 Jay Kamat
2017-10-03 15:39 ` Eli Zaretskii [this message]
2017-10-04 15:45   ` Jay Kamat
2017-10-04 17:00     ` Eli Zaretskii

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=83d1641brw.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@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.