summaryrefslogtreecommitdiff
path: root/doc/coding_style.mdwn
diff options
context:
space:
mode:
authorArnaud Bailly2014-11-01 08:56:12 +0100
committerJoey Hess2014-11-01 13:32:42 -0400
commitab7efe2cd0f3bd6508b164e458329b41b313a852 (patch)
tree7c4469c7b2eb2f8fe8569f48ee24fd99b578898b /doc/coding_style.mdwn
parentca3dff2566a36245fdede353a445b35aaf5765b4 (diff)
add tip about indentation for emacs users
Signed-off-by: Arnaud Bailly <arnaud.oqube@gmail.com>
Diffstat (limited to 'doc/coding_style.mdwn')
-rw-r--r--doc/coding_style.mdwn11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/coding_style.mdwn b/doc/coding_style.mdwn
index 10b98328..d2dbaf2f 100644
--- a/doc/coding_style.mdwn
+++ b/doc/coding_style.mdwn
@@ -30,6 +30,17 @@ each indented with a tab.
foo = ...
bar = ...
+Note for emacs users: You can put the following snippet into a file called
+`.dir-locals.el` at root of propellor's source tree to ensure these indentation
+rules are enforced:
+
+ ((nil . ((indent-tabs-mode . t)
+ (tab-width . 4)
+ (fill-column . 80)))
+ ;; Warn about spaces used for indentation:
+ (haskell-mode . ((eval . (highlight-regexp "^ *")))))
+
+
Where clauses for instance definitions and modules tend to appear at the end
of a line, rather than on a separate line.