diff options
author | Jason Gross <jgross@mit.edu> | 2017-04-24 13:09:06 -0400 |
---|---|---|
committer | Jason Gross <jgross@mit.edu> | 2017-04-24 13:09:06 -0400 |
commit | f0e6e8559ab4950e3629f771ed2eaa166636dcd6 (patch) | |
tree | 19b36c1429105ffa73705cd0c693b4146657ed25 /.dir-locals.el | |
parent | 74d9b4dd9e50be882571e7344885fc0365fe674a (diff) |
Track .dir-locals.el rather than generating it
Since we're only using one version of coqprime, we no longer need to
generate .dir-locals.el
Diffstat (limited to '.dir-locals.el')
-rw-r--r-- | .dir-locals.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.dir-locals.el b/.dir-locals.el new file mode 100644 index 000000000..5b1fb274b --- /dev/null +++ b/.dir-locals.el @@ -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) ":")))))))) |