coq: Improve emacs buffer handling

This commit is contained in:
Shea Levy 2016-11-13 14:01:01 -05:00
parent feb8a692a1
commit 2ded9f3f7b
1 changed files with 3 additions and 3 deletions

View File

@ -72,9 +72,9 @@ stdenv.mkDerivation {
(when (fboundp 'get-coq-library-directory) (when (fboundp 'get-coq-library-directory)
(inherit-local-permanent coq-library-directory (get-coq-library-directory)) (inherit-local-permanent coq-library-directory (get-coq-library-directory))
(coq-prog-args)) (coq-prog-args))
; Pass proof-general's coq flags to flycheck command (pretty ugly, should probably be part of PG) (mapc (lambda (arg)
(inherit-local-permanent flycheck-command-wrapper-function (lambda (cmd) (when (file-directory-p (concat arg "/lib/coq/${coq-version}/user-contrib"))
(append (funcall (default-value 'flycheck-command-wrapper-function) cmd) (coq-coqtop-prog-args coq-load-path)))) (setenv "COQPATH" (concat (getenv "COQPATH") ":" arg "/lib/coq/${coq-version}/user-contrib")))) '(${stdenv.lib.concatStringsSep " " (map (pkg: "\"${pkg}\"") pkgs)}))
''; '';
}; };