summaryrefslogtreecommitdiffstats
path: root/.dir-locals.el
diff options
context:
space:
mode:
authorDaniel P. Berrange2015-06-04 15:30:07 +0200
committerMichael Tokarev2015-10-08 18:46:01 +0200
commit91288a58a550be4dc80628456d5e1d2e91424827 (patch)
treebb227789d8eb84b5b4c55866284281f84e03a80c /.dir-locals.el
parentMerge remote-tracking branch 'remotes/rth/tags/pull-tcg-20151007' into staging (diff)
downloadqemu-91288a58a550be4dc80628456d5e1d2e91424827.tar.gz
qemu-91288a58a550be4dc80628456d5e1d2e91424827.tar.xz
qemu-91288a58a550be4dc80628456d5e1d2e91424827.zip
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 <berrange@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to '.dir-locals.el')
-rw-r--r--.dir-locals.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
new file mode 100644
index 0000000000..3ac0cfc6f0
--- /dev/null
+++ b/.dir-locals.el
@@ -0,0 +1,2 @@
+((c-mode . ((c-file-style . "stroustrup")
+ (indent-tabs-mode . nil))))