Refactor modules to optimize autoloads + startup
This commit is contained in:
parent
8769c3187b
commit
0a78922471
18 changed files with 103 additions and 90 deletions
|
@ -2,10 +2,10 @@
|
|||
|
||||
(use-package rust-mode
|
||||
:mode "\\.rs$"
|
||||
:init
|
||||
:init (add-hook 'rust-mode-hook 'flycheck-mode)
|
||||
:config
|
||||
(def-builder! rust-mode "cargo run" "Cargo.toml")
|
||||
(def-builder! toml-mode "cargo run" "Cargo.toml")
|
||||
(add-hook 'rust-mode-hook 'flycheck-mode))
|
||||
(def-builder! toml-mode "cargo run" "Cargo.toml"))
|
||||
|
||||
(use-package flycheck-rust :after rust-mode)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue