dotfiles-emacs/.emacs.d/config/rust.el
finga 3fb43d5a5b rust: Ensure toml-mode is installed
Ensure that the toml-mode is installed and enable it (needs taplo,
`cargo install taplo-cli --features lsp`).
2024-06-05 09:22:26 +02:00

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)