forked from flame/blis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.dir-locals.el
32 lines (28 loc) · 941 Bytes
/
.dir-locals.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
;; Emacs formatting for the BLIS layout requirements.
(
;; Recognize *.mk files as Makefile fragments
(auto-mode-alist . (("\\.mk\\'" . makefile-mode)) )
;; Makefiles require tabs and are almost always width 8
(makefile-mode . (
(indent-tabs-mode . t)
(tab-width . 8)
)
)
;; C code formatting roughly according to docs/CodingConventions.md
(c-mode . (
(c-file-style . "bsd")
(c-basic-offset . 4)
(comment-start . "// ")
(comment-end . "")
(parens-require-spaces . nil)
)
)
;; Default formatting for all source files not overriden above
(prog-mode . (
(indent-tabs-mode . nil)
(tab-width . 4)
(require-final-newline . t)
(eval add-hook `before-save-hook `delete-trailing-whitespace)
)
)
)