speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Add basic Emacs file for coding style


From: Boris Dušek
Subject: [PATCH] Add basic Emacs file for coding style
Date: Sat, 28 Jul 2012 12:38:00 +0200

From: Boris Dus?ek <address@hidden>
To: address@hidden

Speech Dispatcher has agreed on a basic coding style. Especially
important is the usage of TABs for indentation.

This patch adds a small file that Emacs will read whenever it visits a
file  in this directory or any of its subdirectories and applies style
information contained in it. This makes sure people using Emacs
automatically get some behavior from the coding style for free.

Right now I just copied what Hynek Hanke suggested in his email from
Dec 20th, 2010 and tested the TABs work as expected.

Emacs warns about some variables being unsafe and asks a question
whether to apply it or not - for me it worked to answer "!" and Emacs
remembered the answer globally (seems for any files, not just Speech
Dispatcher ones).
---
 .dir-locals.el |    9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 .dir-locals.el

diff --git a/.dir-locals.el b/.dir-locals.el
new file mode 100644
index 0000000..132ac55
--- /dev/null
+++ b/.dir-locals.el
@@ -0,0 +1,9 @@
+;;; Directory Local Variables
+;;; See Info node `(emacs) Directory Variables' for more information.
+
+((c-mode
+  (c-basic-offset . 4)
+  (indent-tabs-mode f)
+  (c-file-style . "K&R")))
+
+
-- 
1.7.9.6 (Apple Git-31.1)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]