From 42ac28d44ac7e1f102e9ba37fa91923e822e47df Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 23 Oct 2023 04:30:50 +0100 Subject: Make root directory an include path, set #include's properly Easier to write includes now just using < with the module name, in comparison to using relative paths. --- .dir-locals.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to '.dir-locals.el') diff --git a/.dir-locals.el b/.dir-locals.el index e942583..02fbd7a 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -1,6 +1,9 @@ ;;; Directory Local Variables -*- no-byte-compile: t -*- ;;; For more information see (info "(emacs) Directory Variables") -((nil . ((projectile-project-compilation-cmd . "make") - (projectile-project-configure-cmd . "make clean") - (+license/license-choice . "GPLv2")))) +((nil . ((projectile-project-compilation-cmd . "make") + (projectile-project-configure-cmd . "make clean") + (+license/license-choice . "GPLv2"))) + (c-mode . ((flycheck-gcc-include-path . ("..")) + (flycheck-clang-include-path . ("..")) + (company-clang-arguments . ("-I.."))))) -- cgit v1.2.3-13-gbd6f