All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2] Add .dir-locals.el file to configure emacs coding style
@ 2015-06-04 13:30 Daniel P. Berrange
  2015-06-04 13:41 ` Peter Maydell
  0 siblings, 1 reply; 11+ messages in thread
From: Daniel P. Berrange @ 2015-06-04 13:30 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, John Snow, Markus Armbruster

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>
---
 .dir-locals.el | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 .dir-locals.el

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

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

end of thread, other threads:[~2015-09-15 17:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-04 13:30 [Qemu-devel] [PATCH v2] Add .dir-locals.el file to configure emacs coding style Daniel P. Berrange
2015-06-04 13:41 ` Peter Maydell
2015-06-04 14:15   ` Daniel P. Berrange
2015-06-18  9:28   ` Markus Armbruster
2015-06-18 12:47     ` Peter Maydell
2015-06-18 14:05       ` Markus Armbruster
2015-08-25  0:15         ` John Snow
2015-09-15 15:31           ` Eric Blake
2015-09-15 15:54             ` Daniel P. Berrange
2015-09-15 16:22               ` Markus Armbruster
2015-09-15 17:53                 ` Michael Tokarev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.