13 lines
265 B
EmacsLisp
13 lines
265 B
EmacsLisp
(use-package cargo
|
|
:ensure t
|
|
:config
|
|
;; enable cargo keybindings
|
|
(add-hook 'rust-mode-hook 'cargo-minor-mode))
|
|
|
|
(use-package rust-mode
|
|
:ensure t
|
|
:config
|
|
;; format code when saving
|
|
(setq rust-format-on-save t))
|
|
|
|
(use-package flycheck-rust :ensure t)
|