From ef895eba48e6f91d145088fd220d54f8856ebd77 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 10 Dec 2019 14:03:12 -0800 Subject: [PATCH] [Emacs] Format rust on save --- dotfiles/emacs.d/README.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 48472e07..18433ce9 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -2784,7 +2784,8 @@ The following is taken from [[https://github.com/syl20bnr/spacemacs/blob/a650877 :hook (rust-mode . lsp) :preface (progn - (defun imalison:rust-mode-hook ())) + (defun imalison:rust-mode-hook () + (setq rust-format-on-save t))) :config (progn (use-package toml-mode)