From 27d8c4f592bf79558c9cba91e967b2df80b6d42b Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Mon, 28 Dec 2020 11:42:09 +0100 Subject: rust: Let eglot handle formatting --- lisp/init-rust.el | 7 ------- 1 file changed, 7 deletions(-) (limited to 'lisp/init-rust.el') diff --git a/lisp/init-rust.el b/lisp/init-rust.el index 0391cb7..d56d37b 100644 --- a/lisp/init-rust.el +++ b/lisp/init-rust.el @@ -5,15 +5,8 @@ (use-package rust-mode :ensure t - :init - (when (executable-find "rustfmt") - (setq rust-format-on-save t)) - :hook (rust-mode . rust-mode-buffer-local-variables) - :bind (:map rust-mode-map - ;; C-c f runs rustfmt on the buffer - ("C-c f" . rust-format-buffer) ("C-c l" . rust-clippy) ("C-c t" . rust-test) ("C-c R" . rust-run))) -- cgit v1.2.3