about summary refs log tree commit diff
path: root/users/grfn/emacs.d/rust.el
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2023-02-27T15·13-0500
committerclbot <clbot@tvl.fyi>2023-02-27T15·16+0000
commitc54c869778d08b863b004c372f6951ee5d1a6fbd (patch)
tree31dd2cf9424b1e834872cd173de51bcecfeebdd0 /users/grfn/emacs.d/rust.el
parent0dcbf5dfb947c9b9c9238db0021655bcebc22798 (diff)
chore(grfn/system): Upgrade emacs packages r/5859
Some interfaces changed in magit's transient, and doom switched more
emphatically to rustic mode

Change-Id: Ifb945f7fc693b0b7fb1739e25c6da70b06df96ef
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8161
Autosubmit: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
Diffstat (limited to 'users/grfn/emacs.d/rust.el')
-rw-r--r--users/grfn/emacs.d/rust.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/users/grfn/emacs.d/rust.el b/users/grfn/emacs.d/rust.el
index 176aad08043d..9988d16a5327 100644
--- a/users/grfn/emacs.d/rust.el
+++ b/users/grfn/emacs.d/rust.el
@@ -9,15 +9,16 @@
 
   (+evil-embrace-angle-bracket-modes-hook-h)
 
-  (setq lsp-rust-server 'rust-analyzer)
+  ;; (setq lsp-rust-server 'rust-analyzer)
   (setq-local whitespace-line-column 100
               fill-column 100)
-  (setq rust-format-show-buffer nil)
+  ;; (setq rust-format-show-buffer nil)
   (setq lsp-rust-analyzer-import-merge-behaviour "last"
         lsp-rust-analyzer-cargo-watch-command "clippy"
         lsp-rust-analyzer-cargo-watch-args ["--target-dir" "/home/grfn/code/readyset/readyset/target/rust-analyzer"]
+        rustic-format-trigger 'on-save
         lsp-ui-doc-enable t)
-  (rust-enable-format-on-save)
+  ;; (rust-enable-format-on-save)
   (lsp))
 
 (add-hook 'rust-mode-hook #'grfn/rust-setup)