From: John Turner Date: Fri, 7 Oct 2022 07:17:37 +0000 (-0400) Subject: moved dir-locals out of the init dir X-Git-Url: https://jturnerusa.dev/gitweb/?a=commitdiff_plain;h=9b4283e142006014d90ca4d34029be0b761c3816;p=emacs.d moved dir-locals out of the init dir --- diff --git a/.gitignore b/.gitignore index 5a5c333..28844e3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,8 @@ /* !/.gitignore !/init.el -!/load-config.el -!/load-lisp.el !/custom.el !/themes !/init -!/lisp \ No newline at end of file +!/lisp +!/dir-locals \ No newline at end of file diff --git a/dir-locals/eglot-dir-locals.el b/dir-locals/eglot-dir-locals.el new file mode 100644 index 0000000..9fff9e8 --- /dev/null +++ b/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"))))) diff --git a/init/dir-locals/eglot-dir-locals.el b/init/dir-locals/eglot-dir-locals.el deleted file mode 100644 index 9fff9e8..0000000 --- a/init/dir-locals/eglot-dir-locals.el +++ /dev/null @@ -1,6 +0,0 @@ -((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")))))