dev, rust: Extract Rust config into separate file
Move configuration regarding Rust into its own file.
This commit is contained in:
parent
941b156a55
commit
1c0930fa65
4 changed files with 15 additions and 13 deletions
|
@ -22,18 +22,6 @@
|
|||
:ensure t
|
||||
:bind ("M-s d" . deadgrep))
|
||||
|
||||
;; rust
|
||||
(use-package cargo :ensure t)
|
||||
(use-package cargo-mode :ensure t)
|
||||
(use-package rust-mode :ensure t)
|
||||
(use-package flycheck-rust :ensure t)
|
||||
|
||||
;; start cargo
|
||||
(add-hook 'rust-mode-hook 'cargo-minor-mode)
|
||||
|
||||
;; format code when saving
|
||||
(setq rust-format-on-save t)
|
||||
|
||||
;; yaml
|
||||
(use-package yaml-mode :ensure t)
|
||||
(use-package flycheck-yamllint :ensure t)
|
||||
|
|
13
.emacs.d/config/rust.el
Normal file
13
.emacs.d/config/rust.el
Normal file
|
@ -0,0 +1,13 @@
|
|||
(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)
|
Loading…
Add table
Add a link
Reference in a new issue