changeset 475:f08193904d93

emacs: enable rustfmt on save
author Augie Fackler <raf@durin42.com>
date Fri, 01 Feb 2019 22:54:46 -0500
parents e71b87fa8ea1
children 6bc014966731
files .elisp/settings/99.rust.el
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.elisp/settings/99.rust.el
+++ b/.elisp/settings/99.rust.el
@@ -2,6 +2,7 @@
              :config (add-hook 'rust-mode-hook
           (lambda ()
             (local-set-key (kbd "C-c <tab>") #'rust-format-buffer))))
+(setq rust-format-on-save t)
 
 (use-package cargo
              :config (add-hook 'rust-mode-hook 'cargo-minor-mode))