diff options
Diffstat (limited to 'emacs.d/modules')
-rw-r--r-- | emacs.d/modules/module-rust.el | 4 |
1 files changed, 3 insertions, 1 deletions
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. |