rust: Use use-config's hook section instead of config

This commit is contained in:
finga 2024-09-04 16:41:40 +02:00
parent 19b5305e23
commit a5cd8df8f4

View file

@ -1,8 +1,8 @@
(use-package cargo
:ensure t
:config
:hook
;; enable cargo keybindings
(add-hook 'rust-mode-hook 'cargo-minor-mode))
(rust-mode . cargo-minor-mode))
(use-package rust-mode
:ensure t