From fc4547b412e28164af1bf8981234c6af959ccc0b Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 13 Jun 2023 10:07:16 +0200 Subject: WIP --- .dir-locals.el | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .dir-locals.el (limited to '.dir-locals.el') diff --git a/.dir-locals.el b/.dir-locals.el new file mode 100644 index 0000000..484f453 --- /dev/null +++ b/.dir-locals.el @@ -0,0 +1,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"))))))) -- cgit v1.2.3-70-g09d2