-
Notifications
You must be signed in to change notification settings - Fork 4
/
.dir-locals.el
34 lines (33 loc) · 2.13 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
30
31
32
33
34
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
((nil
(eval . (setq-local gud-gdb-command-name
(string-join `("gdb" "-i=mi"
"-ex 'handle SIGPIPE nostop noprint pass'"
,(concat "--args weechat -a -P 'alias,buflist,exec,irc' -r '/plugin load "
(expand-file-name "xmpp.so" (projectile-project-root))
"'; /debug tags"))
" "))))
(c++-mode
(eval . (setq-local flycheck-clang-include-path
(list (expand-file-name "libstrophe" (projectile-project-root))
(expand-file-name "json-c" (projectile-project-root))
(string-trim-right
(substring
(shell-command-to-string "xml2-config --cflags") 2))
(string-trim-right
(substring
(shell-command-to-string "pkg-config --cflags libsignal-protocol-c") 2))
"/usr/include/libxml2/" "/usr/include/signal"
(expand-file-name "deps/fmt/include" (projectile-project-root))
(expand-file-name "deps/optional/include" (projectile-project-root))
(expand-file-name "deps/range-v3/include" (projectile-project-root)))))
(eval . (setq-local company-clang-arguments
(list (concat "-I" (expand-file-name "libstrophe" (projectile-project-root)))
(concat "-I" (expand-file-name "json-c" (projectile-project-root))))))
(eval . (setq-local tags-table-list (expand-file-name ".git/tags" (projectile-project-root))))
(flycheck-clang-warnings . ("all" "extra" "error-implicit-function-declaration" "no-missing-field-initializers"))
(flycheck-clang-language-standard . "c++20")
;(flycheck-checker . c/c++-clang)
(flycheck-checker . lsp)
(projectile-project-compilation-cmd . "bear -- make -j8")))