diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-05-18 10:46:06 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-05-18 10:46:06 +0300 |
commit | fcf2fdb9a1038a698b3c8ab0f05eda2b6bb3856a (patch) | |
tree | 2f44de2b9245591877929170c1c949f064feb2f4 /emacs.d | |
parent | 02c9b8584dbd72b81d7f5890da79955583833fec (diff) | |
download | liw-dot-files-fcf2fdb9a1038a698b3c8ab0f05eda2b6bb3856a.tar.gz |
emacs: format Rust files on save
Sponsored-by: author
Diffstat (limited to 'emacs.d')
-rw-r--r-- | emacs.d/init.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el index df32465..4885662 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -118,7 +118,9 @@ :config (add-hook 'sh-mode-hook 'shfmt-on-save-mode)) -(use-package rustic) +(use-package rustic + :config + (setq rustic-format-trigger 'on-save)) (use-package lsp-mode :commands lsp |