summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2021-05-17 13:40:58 +0200
committerAlan Pearce2021-05-17 13:40:58 +0200
commit40b8dcfb3e88c766ff3d4346f1c1fef03bc0305f (patch)
treeebd55046edd25154639a3f736a0b693e63f3bf25
parent0cece245719f8cfe1faf5840dd5c44d9bcbeeb5c (diff)
downloadnixfiles-40b8dcfb3e88c766ff3d4346f1c1fef03bc0305f.tar.lz
nixfiles-40b8dcfb3e88c766ff3d4346f1c1fef03bc0305f.tar.zst
nixfiles-40b8dcfb3e88c766ff3d4346f1c1fef03bc0305f.zip
Emacs: lazy-load rustic-mode
-rw-r--r--user/emacs/init.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 7358df65..dbf12186 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -721,6 +721,7 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
 
 ;;;; rust
 (use-package rustic
+  :mode (("\\.rs\\'" . rustic-mode))
   :config (progn
             (setq rustic-format-on-save t
                   lsp-rust-analyzer-display-inlay-hints t