Fix env in emacs runnables support

This commit is contained in:
Florian Diebold 2020-01-29 21:39:25 +01:00 committed by Florian Diebold
parent dc713ea21b
commit ba45c60611

View File

@ -143,7 +143,8 @@
(defun rust-analyzer-run (runnable)
(interactive (list (rust-analyzer--select-runnable)))
(-let (((&hash "env" "bin" "args" "label") runnable))
(-let* (((&hash "env" "bin" "args" "label") runnable)
(compilation-environment (-map (-lambda ((k v)) (concat k "=" v)) (ht-items env))))
(compilation-start
(string-join (append (list bin) args '()) " ")
;; cargo-process-mode is nice, but try to work without it...