-
Notifications
You must be signed in to change notification settings - Fork 2
/
.dir-locals.el
28 lines (28 loc) · 1.47 KB
/
.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
;; NOTE: This assumes you have flycheck and projectile!
((c-mode . ((c-file-style . "bsd")
(indent-tabs-mode . nil)
(tab-width . 8)
(c-basic-offset . 4)
(eval . (if (fboundp 'flycheck-pkg-config)
;; only need to pkg-config SDL2_Net to get cflags
(flycheck-pkg-config "SDL2_Net")
(message "pkg-config not found")))
(eval . (let* ((paths '(""
"midiproc"
"opl"
"pcsound"
"textscreen"
"src"
"src/doom"
"src/heretic"
"src/hexen"
"src/strife"
"src/setup"))
(full-paths (mapcar
(lambda (path)
(expand-file-name path (projectile-project-root)))
paths)))
(setq-local flycheck-gcc-include-path
(append flycheck-gcc-include-path full-paths))
(setq-local flycheck-clang-include-path
(append flycheck-clang-include-path full-paths)))))))