dev: Run rust-fmt when saving a rust file

When saving a rust file, run rust-fmt.
This commit is contained in:
finga 2023-09-13 16:10:09 +02:00
parent a5e147329b
commit 2ae2500575

View file

@ -31,6 +31,9 @@
;; start cargo ;; start cargo
(add-hook 'rust-mode-hook 'cargo-minor-mode) (add-hook 'rust-mode-hook 'cargo-minor-mode)
;; format code when saving
(setq rust-format-on-save t)
;; yaml ;; yaml
(use-package yaml-mode :ensure t) (use-package yaml-mode :ensure t)
(use-package flycheck-yamllint :ensure t) (use-package flycheck-yamllint :ensure t)