On 08/24/2018 02:38 AM, Markus Armbruster wrote:
Marc-André Lureau <[email protected]> writes:
Some time ago, I proposed to use an (eval) in .dir-locals.el to set
the mode for all json files and Makefile. Unfortunately, this isn't
safe, and emacs will prompt the user, which isn't very friendly.
Fortunately, editorconfig provides a special config key which does
allow to set the emacs mode. Add a few missing entries and set the
emacs mode.
Please mention editorconfig requires a plugin to work. Without that,
the reader is left to wonder why we keep the "redundant" Emacs file
local variables.
Is it also worth a (separate) patch to .editorconfig to add a comment
up-front about needing plugins for some editors? Right now, it just has
the single comment:
# http://editorconfig.org
which, if followed, will get you to the same information, but I'm a fan
of not having to chase a URL when it is just as easy to provide a short
summary in place.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org