qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Add .dir-locals.el file to configure emacs coding style
@ 2015-06-02 15:26 Daniel P. Berrange
  2015-06-02 16:02 ` Eric Blake
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Daniel P. Berrange @ 2015-06-02 15:26 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial

The default emacs setup indents 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>
---
 .dir-locals.el | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 .dir-locals.el

diff --git a/.dir-locals.el b/.dir-locals.el
new file mode 100644
index 0000000..ddb2fae
--- /dev/null
+++ b/.dir-locals.el
@@ -0,0 +1,8 @@
+(
+ (c-mode . (
+            (c-file-style . "K&R")
+            (indent-tabs-mode . nil)
+            (c-indent-level . 4)
+            (c-basic-offset . 4)
+            ))
+)
-- 
2.4.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-06-18  9:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-02 15:26 [Qemu-devel] [PATCH] Add .dir-locals.el file to configure emacs coding style Daniel P. Berrange
2015-06-02 16:02 ` Eric Blake
2015-06-02 19:08   ` John Snow
2015-06-03  7:47 ` Markus Armbruster
2015-06-04 13:30   ` Daniel P. Berrange
2015-06-04 17:45     ` [Qemu-devel] [Qemu-trivial] " Don Slutz
2015-06-04 17:46     ` Don Slutz
2015-06-17 19:42 ` [Qemu-devel] " Michael Tokarev
2015-06-18  8:36   ` Markus Armbruster
2015-06-18  9:05     ` Michael Tokarev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).