diff options
author | Franck Cuny <franck.cuny@gmail.com> | 2018-04-17 09:13:14 -0700 |
---|---|---|
committer | Franck Cuny <franck.cuny@gmail.com> | 2018-04-17 09:13:14 -0700 |
commit | bd655980f01446fac10baafcc5d1eb095680192a (patch) | |
tree | 009939503f907d8138ee67a11cc5f7f7a9e6721b /emacs.d/modules | |
parent | [emacs] some more hydra stuff. (diff) | |
download | emacs.d-bd655980f01446fac10baafcc5d1eb095680192a.tar.gz |
[emacs] Add a few more settings for rust.
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. |