summaryrefslogtreecommitdiff
path: root/dir-locals/rust-dir-locals.el
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2024-03-10 15:23:23 -0400
committerJohn Turner <jturner.usa@gmail.com>2024-03-10 15:23:23 -0400
commitc668dce90be6d212067ab1c6c9f5566b2181e743 (patch)
treef640495baa5b200cbc249ffd521a65f2a11feae0 /dir-locals/rust-dir-locals.el
parent503d0b38b026daca9003b843aaeaf04fafb35767 (diff)
downloademacs.d-c668dce90be6d212067ab1c6c9f5566b2181e743.tar.gz
create rust-dir-locals.el to replace eglot-rust-dir-locals.el
Diffstat (limited to 'dir-locals/rust-dir-locals.el')
-rw-r--r--dir-locals/rust-dir-locals.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/dir-locals/rust-dir-locals.el b/dir-locals/rust-dir-locals.el
new file mode 100644
index 0000000..ef4f8fa
--- /dev/null
+++ b/dir-locals/rust-dir-locals.el
@@ -0,0 +1,4 @@
+((rust-ts-mode . ((eglot-workspace-configuration . (:rust-analyzer (:check (:command "clippy"))))
+ (fmt-executable . "rustfmt")
+ (eval . (eglot-ensure))
+ (eval . (add-hook 'before-save-hook 'fmt-current-buffer nil t)))))