summaryrefslogtreecommitdiff
path: root/.dir-locals.el
blob: 484f45346b8bb499821704ea4661bb2172f16ca9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")

((c-mode
  .
  ((eval .
         (let ((project-path
                (locate-dominating-file default-directory ".dir-locals.el")))
           (setq-local flycheck-clangcheck-build-path
                       (concat project-path "build"))))))
 (c++-mode
  .
  ((eval .
         (let ((project-path
                (locate-dominating-file default-directory ".dir-locals.el")))
           (setq-local flycheck-clangcheck-build-path
                       (concat project-path "build")))))))