forked from ROCm/rocBLAS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.dir-locals.el
28 lines (27 loc) · 837 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
;; This causes emacs to abide by formatting rules: No tab characters, except
;; in Makefiles; BSD-style indendation, with a 4-character indentation offset
;; (8 in assembly code and Makefiles); no whitespace at the end of lines; and
;; a newline at the end of file.
(
(prog-mode . (
(require-final-newline . t)
(indent-tabs-mode . nil)
(tab-width . 4)
(c-basic-offset . 4)
(c-file-style . "bsd")
(eval add-hook 'before-save-hook 'delete-trailing-whitespace)
(eval add-hook 'before-save-hook (lambda () (untabify (point-min) (point-max))))
) )
(asm-mode . (
(tab-width . 8)
) )
(makefile-mode . (
(indent-tabs-mode . t)
(tab-width . 8)
(eval remove-hook `before-save-hook (lambda () (untabify (point-min) (point-max))))
) )
(fundamental-mode . (
(eval require 'yaml-mode)
(eval set-auto-mode t)
) )
)