diff options
author | Jason Gross <jagro@google.com> | 2016-07-20 15:26:26 -0700 |
---|---|---|
committer | Jason Gross <jagro@google.com> | 2016-07-20 15:27:51 -0700 |
commit | 22f5069791d4c201441f553c756e32e18b88ffac (patch) | |
tree | d2ddf774a2cf26c63f1db046ce6e0a694aa6c9a5 /.dir-locals.el.in | |
parent | 476f078855a221a2ec47a63e7efdceaa35acd488 (diff) |
Add target for .dir-locals.el
This fixes #31
Thanks @cpitclaudel!
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) ":")))))))) |