Victor Toso <victort...@redhat.com> writes:
> Similar to f7160f3218 "schemas: Add vim modeline" > > Signed-off-by: Victor Toso <victort...@redhat.com> > --- > qapi/audio.json | 1 + > qapi/compat.json | 1 + > qapi/replay.json | 1 + > qapi/trace.json | 1 + > 4 files changed, 4 insertions(+) > > diff --git a/qapi/audio.json b/qapi/audio.json > index 9cba0df8a4..fe3b506ec3 100644 > --- a/qapi/audio.json > +++ b/qapi/audio.json > @@ -1,4 +1,5 @@ > # -*- mode: python -*- > +# vim: filetype=python I realise we have Emacs mode annotations here as well and I'm not going to start a holy war but I thought we used .editorconfig to avoid messing directly with the individual files. So something like: [*.json] indent_style = space emacs_mode = python vim_filetype = python should also do the job. > # > # Copyright (C) 2015-2019 Zoltán Kővágó <dirty.ice...@gmail.com> > # > diff --git a/qapi/compat.json b/qapi/compat.json > index dd7261ae2a..c53b69fe3f 100644 > --- a/qapi/compat.json > +++ b/qapi/compat.json > @@ -1,4 +1,5 @@ > # -*- Mode: Python -*- > +# vim: filetype=python > > ## > # = Compatibility policy > diff --git a/qapi/replay.json b/qapi/replay.json > index bfd83d7591..b4d1ba253b 100644 > --- a/qapi/replay.json > +++ b/qapi/replay.json > @@ -1,4 +1,5 @@ > # -*- Mode: Python -*- > +# vim: filetype=python > # > > ## > diff --git a/qapi/trace.json b/qapi/trace.json > index eedfded512..119509f565 100644 > --- a/qapi/trace.json > +++ b/qapi/trace.json > @@ -1,4 +1,5 @@ > # -*- mode: python -*- > +# vim: filetype=python > # > # Copyright (C) 2011-2016 Lluís Vilanova <vilan...@ac.upc.edu> > # -- Alex Bennée