qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] editorconfig: set emacs mode


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH] editorconfig: set emacs mode
Date: Mon, 20 Aug 2018 14:51:03 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 08/20/2018 01:00 PM, Peter Maydell wrote:
On 20 August 2018 at 18:43, Marc-André Lureau
<address@hidden> 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

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