From ba45c60611f0f41b3138c11b6059bb68b7c9743d Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Wed, 29 Jan 2020 21:39:25 +0100 Subject: Fix env in emacs runnables support --- editors/emacs/rust-analyzer.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editors/emacs/rust-analyzer.el b/editors/emacs/rust-analyzer.el index 06db4f15f..bcd1b5c67 100644 --- a/editors/emacs/rust-analyzer.el +++ b/editors/emacs/rust-analyzer.el @@ -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... -- cgit v1.2.3