From bd655980f01446fac10baafcc5d1eb095680192a Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 17 Apr 2018 09:13:14 -0700 Subject: [emacs] Add a few more settings for rust. --- emacs.d/modules/module-rust.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'emacs.d/modules') diff --git a/emacs.d/modules/module-rust.el b/emacs.d/modules/module-rust.el index 0dc3199..f39aacf 100644 --- a/emacs.d/modules/module-rust.el +++ b/emacs.d/modules/module-rust.el @@ -5,7 +5,9 @@ (use-package cargo :hook (rust-mode . cargo-minor-mode) :config - (setq compilation-ask-about-save nil) + (setq compilation-ask-about-save nil + rust-format-on-save t + rust-rustfmt-bin "/Users/fcuny/.cargo/bin/rustfmt") ;; Automatically re-run compilation command on manual save inside a project. ;; Will do nothing if a compilation hasn't been manually triggered ;; in the past. -- cgit 1.4.1