coq: Improve emacs buffer handling
This commit is contained in:
parent
feb8a692a1
commit
2ded9f3f7b
|
@ -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)}))
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue