finga
3fb43d5a5b
Ensure that the toml-mode is installed and enable it (needs taplo, `cargo install taplo-cli --features lsp`).
14 lines
299 B
EmacsLisp
14 lines
299 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)
|
|
(use-package toml-mode :ensure t)
|