From 9b4283e142006014d90ca4d34029be0b761c3816 Mon Sep 17 00:00:00 2001 From: John Turner Date: Fri, 7 Oct 2022 03:17:37 -0400 Subject: moved dir-locals out of the init dir --- .gitignore | 5 ++--- dir-locals/eglot-dir-locals.el | 6 ++++++ init/dir-locals/eglot-dir-locals.el | 6 ------ 3 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 dir-locals/eglot-dir-locals.el delete mode 100644 init/dir-locals/eglot-dir-locals.el 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"))))) -- cgit v1.2.3