summary refs log tree commit diff
path: root/emacs.d/modules
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2018-04-17 09:13:14 -0700
committerFranck Cuny <franck.cuny@gmail.com>2018-04-17 09:13:14 -0700
commitbd655980f01446fac10baafcc5d1eb095680192a (patch)
tree009939503f907d8138ee67a11cc5f7f7a9e6721b /emacs.d/modules
parent[emacs] some more hydra stuff. (diff)
downloademacs.d-bd655980f01446fac10baafcc5d1eb095680192a.tar.gz
[emacs] Add a few more settings for rust.
Diffstat (limited to '')
-rw-r--r--emacs.d/modules/module-rust.el4
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.