Add .dir-locals.el file to configure emacs coding style

Some default emacs setups indent by 2 spaces and uses tabs
which is counter to the QEMU coding style rules. Adding a
.dir-locals.el file in the top level of the GIT repo will
inform emacs about the QEMU coding style, and so assist
contributors in avoiding common style mistakes before
they submit patches.

Signed-off-by: Daniel P. Berrange <>
Reviewed-by: Markus Armbruster <>
Signed-off-by: Michael Tokarev <>
Daniel P. Berrange 8 years ago committed by Michael Tokarev
parent 31c9bd164d
commit 91288a58a5
  1. 2

@ -0,0 +1,2 @@
((c-mode . ((c-file-style . "stroustrup")
(indent-tabs-mode . nil))))