aboutsummaryrefslogtreecommitdiff
path: root/editors/emacs/rust-analyzer.el
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2020-01-29 20:39:25 +0000
committerFlorian Diebold <[email protected]>2020-01-31 15:06:31 +0000
commitba45c60611f0f41b3138c11b6059bb68b7c9743d (patch)
tree5dc2d12895fdaccc45c3409bde2c2c4d85a18038 /editors/emacs/rust-analyzer.el
parentdc713ea21b2d5a4f02735a7f6aca21c1054e4ca6 (diff)
Fix env in emacs runnables support
Diffstat (limited to 'editors/emacs/rust-analyzer.el')
-rw-r--r--editors/emacs/rust-analyzer.el3
1 files changed, 2 insertions, 1 deletions
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 @@
143 143
144(defun rust-analyzer-run (runnable) 144(defun rust-analyzer-run (runnable)
145 (interactive (list (rust-analyzer--select-runnable))) 145 (interactive (list (rust-analyzer--select-runnable)))
146 (-let (((&hash "env" "bin" "args" "label") runnable)) 146 (-let* (((&hash "env" "bin" "args" "label") runnable)
147 (compilation-environment (-map (-lambda ((k v)) (concat k "=" v)) (ht-items env))))
147 (compilation-start 148 (compilation-start
148 (string-join (append (list bin) args '()) " ") 149 (string-join (append (list bin) args '()) " ")
149 ;; cargo-process-mode is nice, but try to work without it... 150 ;; cargo-process-mode is nice, but try to work without it...