]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Add .dir-locals.el file to configure emacs coding style
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 4 Jun 2015 13:30:07 +0000 (14:30 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 8 Oct 2015 16:46:01 +0000 (19:46 +0300)
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 <berrange@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
.dir-locals.el [new file with mode: 0644]

diff --git a/.dir-locals.el b/.dir-locals.el
new file mode 100644 (file)
index 0000000..3ac0cfc
--- /dev/null
@@ -0,0 +1,2 @@
+((c-mode . ((c-file-style . "stroustrup")
+           (indent-tabs-mode . nil))))