about summary refs log tree commit diff
path: root/modules/workstation/emacs/init.el
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-02-25 16:46:12 +0000
committerAlyssa Ross <hi@alyssa.is>2021-02-25 16:46:12 +0000
commitcb4e571d0f73238b34359694a4960e9d2ee03b9b (patch)
tree46d3ee493047a115e1b362ea4e41196b36bea30e /modules/workstation/emacs/init.el
parentad14d2b98fac752a267bc41483d1d8accacdceab (diff)
downloadnixlib-cb4e571d0f73238b34359694a4960e9d2ee03b9b.tar
nixlib-cb4e571d0f73238b34359694a4960e9d2ee03b9b.tar.gz
nixlib-cb4e571d0f73238b34359694a4960e9d2ee03b9b.tar.bz2
nixlib-cb4e571d0f73238b34359694a4960e9d2ee03b9b.tar.lz
nixlib-cb4e571d0f73238b34359694a4960e9d2ee03b9b.tar.xz
nixlib-cb4e571d0f73238b34359694a4960e9d2ee03b9b.tar.zst
nixlib-cb4e571d0f73238b34359694a4960e9d2ee03b9b.zip
modules/emacs: set rust-analyzer "use" style
Diffstat (limited to 'modules/workstation/emacs/init.el')
-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.