summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2022-10-07 02:27:36 -0400
committerJohn Turner <jturner.usa@gmail.com>2022-10-07 02:27:36 -0400
commitceaa741cfb13938aa359f33f926ccdcb2689f303 (patch)
tree68d2e2d6b2cd802b1d0dcb36655a503eaeb9a7e1
parentd314fe16f72fc758639c83848a16e4d2ed7efa9e (diff)
downloademacs.d-ceaa741cfb13938aa359f33f926ccdcb2689f303.tar.gz
added a directory to store dir-locals files in git
-rw-r--r--config/dir-locals/eglot-dir-locals.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/dir-locals/eglot-dir-locals.el b/config/dir-locals/eglot-dir-locals.el
new file mode 100644
index 0000000..9fff9e8
--- /dev/null
+++ b/config/dir-locals/eglot-dir-locals.el
@@ -0,0 +1,6 @@
+((rust-mode . ((eval . (eglot-ensure))
+ (eglot-workspace-configuration . ((:rust-analyzer . (:checkOnSave
+ (:command "clippy")))))
+ (rust-format-on-save . t)
+ (rust-format-goto-problem . t)
+ (rust-rustfmt-switches . ("--edition" "2021")))))