add tip about indentation for emacs users

Signed-off-by: Arnaud Bailly <arnaud.oqube@gmail.com>
This commit is contained in:
Arnaud Bailly 2014-11-01 08:56:12 +01:00 committed by Joey Hess
parent ca3dff2566
commit ab7efe2cd0
1 changed files with 11 additions and 0 deletions

View File

@ -30,6 +30,17 @@ each indented with a tab.
foo = ... foo = ...
bar = ... 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 Where clauses for instance definitions and modules tend to appear at the end
of a line, rather than on a separate line. of a line, rather than on a separate line.