dotfiles-emacs/.config/emacs/config/rust.el
finga 7df5b0e507 Move config files to XDG-compatible path
Move config files to XDG-compatible path: `$HOME/.config/emacs`.
2025-03-10 17:45:24 +01:00

20 lines
385 B
EmacsLisp

(use-package cargo
:ensure t
:hook
;; enable cargo keybindings
(rust-mode . cargo-minor-mode))
(use-package rust-mode
:ensure t
:config
;; format code when saving
(setq rust-format-on-save t))
(use-package lsp-mode
:ensure t
:hook
(rust-mode . lsp-deferred)
(toml-mode . lsp-deferred))
(use-package flycheck-rust :ensure t)
(use-package toml-mode :ensure t)