Skip to content

Commit a640a0b

Browse files
Alexander KurbatovAlexander Kurbatov
Alexander Kurbatov
authored and
Alexander Kurbatov
committed
chore: Refine local Emacs config
* Drop settings which were moved to default values of my configs. * Add gcc settings. * Better syntax. Signed-off-by: Alexander Kurbatov <Alexander.Kurbatov@acronis.com>
1 parent 1505e2d commit a640a0b

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

.dir-locals.el

+14-15
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
;;; Directory Local Variables
2-
;;; For more information see (info "(emacs) Directory Variables")
3-
4-
((nil
5-
(eval . (let ((root (projectile-project-root)))
6-
(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))
7-
(setq-local flycheck-cppcheck-standards "c++14")
8-
(setq-local flycheck-clang-language-standard "c++14")
9-
(setq-local flycheck-clang-include-path
10-
(list (concat root "build")
11-
(concat root "src")
12-
(concat root "contrib/cpp-sc2/include")
13-
(concat root "contrib/cpp-sc2/contrib/protobuf/src")
14-
(concat root "contrib/cpp-sc2/generated")
15-
(concat root "build/contrib/cpp-sc2/generated")))))))
1+
((c++-mode
2+
(flycheck-cppcheck-standards . "c++14")
3+
(flycheck-clang-language-standard . "c++14")
4+
(flycheck-gcc-language-standard . "c++14")
5+
(eval progn (let
6+
((local-include-paths
7+
(list (concat (projectile-project-root) "build")
8+
(concat (projectile-project-root) "src")
9+
(concat (projectile-project-root) "contrib/cpp-sc2/include")
10+
(concat (projectile-project-root) "contrib/cpp-sc2/contrib/protobuf/src")
11+
(concat (projectile-project-root) "contrib/cpp-sc2/generated")
12+
(concat (projectile-project-root) "build/contrib/cpp-sc2/generated"))))
13+
(setq flycheck-clang-include-path local-include-paths)
14+
(setq flycheck-gcc-include-path local-include-paths)))))

0 commit comments

Comments
 (0)