diff options
Diffstat (limited to '.dir-locals.el.in')
-rw-r--r-- | .dir-locals.el.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.dir-locals.el.in b/.dir-locals.el.in new file mode 100644 index 000000000..6153af754 --- /dev/null +++ b/.dir-locals.el.in @@ -0,0 +1,5 @@ +((coq-mode . ((eval . (let* ((project-root (locate-dominating-file buffer-file-name "_CoqProject")) + (coqprime-folder (expand-file-name "@COQPRIME@" project-root)) + (coq-path (split-string (or (getenv "COQPATH") "") ":" t))) + (unless (memql coqprime-folder coq-path) + (setenv "COQPATH" (mapconcat #'identity (cons coqprime-folder coq-path) ":")))))))) |