diff options
author | 2016-07-20 21:33:38 -0400 | |
---|---|---|
committer | 2016-07-20 21:33:38 -0400 | |
commit | 568b0e125741695e254ab0e56b26ae47466a8869 (patch) | |
tree | cc0ab431517fe22f56dfe1ab9b430f20dafc024f /.dir-locals.el.in | |
parent | 980c92a3b46897b4e1b1d72bc552d3a48e27c673 (diff) | |
parent | 22f5069791d4c201441f553c756e32e18b88ffac (diff) |
Merge pull request #33 from JasonGross/dir-locals
Add target for .dir-locals.el
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) ":")))))))) |