Skip to content

Commit 91288a5

Browse files
berrangeMichael Tokarev
authored and
Michael Tokarev
committed
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 <[email protected]> Reviewed-by: Markus Armbruster <[email protected]> Signed-off-by: Michael Tokarev <[email protected]>
1 parent 31c9bd1 commit 91288a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.dir-locals.el

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

0 commit comments

Comments
 (0)