about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--modules/workstation/emacs/init.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/workstation/emacs/init.el b/modules/workstation/emacs/init.el
index 5ae67daa7d11..0ed7e4151e17 100644
--- a/modules/workstation/emacs/init.el
+++ b/modules/workstation/emacs/init.el
@@ -99,6 +99,10 @@
   (define-key eglot-mode-map (kbd "C-c e a") #'eglot-code-actions)
   (define-key eglot-mode-map (kbd "C-c e r") #'eglot-rename))
 
+;; Tell rust-analyzer not to allow colons inside Rust import.
+(setq-default eglot-workspace-configuration
+	      '((:rust-analyzer . (:assist (:importMergeBehaviour "last")))))
+
 ;;; Environment ;;;
 
 ;; Provide a way to turn paging back on for modes like terminal emulators.