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

2018-08-20 Thread Markus Armbruster
Marc-André Lureau writes: > Hi > > On Mon, Aug 20, 2018 at 9:55 PM Eric Blake wrote: >> >> On 08/20/2018 01:00 PM, Peter Maydell wrote: >> > On 20 August 2018 at 18:43, Marc-André Lureau >> > wrote: >> >> Some time ago, I proposed to use an (eval) in .dir-locals.el to set >> >> the mode for all

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

2018-08-20 Thread Marc-André Lureau
Hi On Mon, Aug 20, 2018 at 9:55 PM Eric Blake wrote: > > On 08/20/2018 01:00 PM, Peter Maydell wrote: > > On 20 August 2018 at 18:43, Marc-André Lureau > > 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

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

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

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

2018-08-20 Thread Peter Maydell
On 20 August 2018 at 18:43, Marc-André Lureau 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

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

2018-08-20 Thread Marc-André Lureau
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. S