rust: Use use-config's hook section instead of config
This commit is contained in:
parent
19b5305e23
commit
a5cd8df8f4
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
||||||
(use-package cargo
|
(use-package cargo
|
||||||
:ensure t
|
:ensure t
|
||||||
:config
|
:hook
|
||||||
;; enable cargo keybindings
|
;; enable cargo keybindings
|
||||||
(add-hook 'rust-mode-hook 'cargo-minor-mode))
|
(rust-mode . cargo-minor-mode))
|
||||||
|
|
||||||
(use-package rust-mode
|
(use-package rust-mode
|
||||||
:ensure t
|
:ensure t
|
||||||
|
|
Loading…
Reference in a new issue