dev: Run rust-fmt when saving a rust file
When saving a rust file, run rust-fmt.
This commit is contained in:
parent
a5e147329b
commit
2ae2500575
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue