forked from stellar/stellar-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.dir-locals.el
29 lines (28 loc) · 1.53 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
29
; This file sets emacs variables that are helpful for editing stellar-core
((c-mode . ((indent-tabs-mode . nil)))
(c++-mode . ((indent-tabs-mode . nil)))
(nil . ((flycheck-clang-language-standard . "c++11")
(flycheck-clang-include-path . ("."
"src"
"lib/asio/include"
"lib/autocheck/include"
"lib/cereal/include"
"lib/util"
"lib/soci/src/core"
"lib/soci/src/backends/sqlite3"
"lib/xdrpp"
"lib/sqlite"
"lib/libsodium/src/libsodium"
"lib/libmedida/src"
))
(whitespace-style . (face tabs tab-mark trailing lines-tail empty))
(c-file-style . "stroustrup")
(eval . (add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode)))
(eval . (if (boundp 'c-offsets-alist)
(add-to-list 'c-offsets-alist '(innamespace . -))))
(eval . (setq compile-command
(concat "make"
" -wC "
(locate-dominating-file
(or buffer-file-name ".") ".dir-locals.el")
" -j $(nproc)"))))))