blob: 2179191e150aaa0413ee7ed8c44b0c46ace68a5b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
(use-package rust-mode
:init
(setq rust-format-on-save t)
:bind (:map rust-mode-map
;; C-c p runs rustfmt on the buffer
("C-c p" . rust-format-buffer)))
;; configure flycheck to support cargo project layout
(use-package flycheck-rust
:commands flycheck-rust-setup
:after (flycheck rust-mode)
:hook ((flycheck-mode . flycheck-rust-setup)))
(provide 'init-rust-mode)
|