Skip to content

Commit

Permalink
chore: Expand Emacs settings
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Kurbatov <[email protected]>
  • Loading branch information
Alexander Kurbatov authored and Alexander Kurbatov committed Jul 18, 2021
1 parent 4ca1e6e commit 458c17c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
12 changes: 10 additions & 2 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")

((c++-mode . ((flycheck-cppcheck-standards . "c++14")
(flycheck-clang-language-standard . "c++14"))))
((nil
(eval . (let ((root (projectile-project-root)))
(setq-local flycheck-cppcheck-standards "c++14")
(setq-local flycheck-clang-language-standard "c++14")
(setq-local flycheck-clang-include-path
(list (concat root "src")
(concat root "contrib/cpp-sc2/include")
(concat root "contrib/cpp-sc2/contrib/protobuf/src")
(concat root "contrib/cpp-sc2/generated")
(concat root "build/contrib/cpp-sc2/generated")))))))
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
*.SC2Replay

# Build sandbox.
build
build/

# IDE - VSCode
.vscode/*
!.vscode/launch.json
!.vscode/tasks.json
.vscode/
.#*

# Google linter
cpplint.py
2 changes: 2 additions & 0 deletions .projectile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-/build
-/contrib/cpp-sc2/contrib

0 comments on commit 458c17c

Please sign in to comment.