[Nbd] [PATCH] maint: Let emacs know our preferred style
- To: nbd-general@lists.sourceforge.net
- Subject: [Nbd] [PATCH] maint: Let emacs know our preferred style
- From: Eric Blake <eblake@...696...>
- Date: Thu, 20 Oct 2016 09:22:06 -0500
- Message-id: <1476973326-8661-1-git-send-email-eblake@...696...>
Teach emacs that this entire source tree uses Linux style
indentation (8-space indents, but with hard TAB character
instead of spaces). Without this hint, the default emacs
C style tries to use 2-space indentation, making it a pain
to edit correctly when automatic formatting is enabled.
Signed-off-by: Eric Blake <eblake@...696...>
---
.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..046e004
--- /dev/null
+++ b/.dir-locals.el
@@ -0,0 +1,2 @@
+((c-mode . ((c-file-style . "linux")
+ (indent-tabs-mode . t))))
--
2.7.4
Reply to: