On 08/20/2018 01:00 PM, Peter Maydell wrote:
On 20 August 2018 at 18:43, Marc-André Lureau
<marcandre.lur...@redhat.com> wrote:
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. Set the emacs mode for JSON, GLSL and
extra makefiles that are not yet covered. Drop modeline from JSON
files.

Does emacs apply info from the the editorconfig file by default, though?

Per https://editorconfig.org/, no, you have to first install an emacs plugin to get editorconfig files to have any effect. So this patch is a non-starter unless distros start patching emacs to install that plugin by default.

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Reply via email to