aboutsummaryrefslogtreecommitdiffstats
path: root/.dir-locals.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2021-07-22 01:09:45 -0700
committerGravatar Tom Willemse2021-07-22 01:09:45 -0700
commit79c1056553e5150cbdb12e52a19603fd33c3e517 (patch)
tree7aeb686de8a450d075e984bcde76f055d26f2323 /.dir-locals.el
parent50473e5ab573d85b1a555874332f6aecdd36f659 (diff)
downloadcrafting-interpreters-79c1056553e5150cbdb12e52a19603fd33c3e517.tar.gz
crafting-interpreters-79c1056553e5150cbdb12e52a19603fd33c3e517.zip
Generate the compilation database through CMake
Use an Emacs directory-local variable to specify to ccls where the compilation directory lives, tell CMake to generate the compilation database, and remove bear from the environment. Add clang to the environment for clang-format.
Diffstat (limited to '.dir-locals.el')
-rw-r--r--.dir-locals.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
new file mode 100644
index 0000000..e717202
--- /dev/null
+++ b/.dir-locals.el
@@ -0,0 +1,4 @@
+;;; Directory Local Variables
+;;; For more information see (info "(emacs) Directory Variables")
+
+((c-mode . ((ccls-args . '("--init={\"compilationDatabaseDirectory\": \"clox/_build\"}")))))