python: Use use-package's hook section instead of config

This commit is contained in:
finga 2024-09-04 11:37:11 +02:00
parent 3a773626c3
commit 19b5305e23

View file

@ -3,5 +3,5 @@
(use-package flycheck-mypy
:ensure t
:config
(add-hook 'python-mode-hook 'flycheck-mode))
:hook
(python-mode . flycheck-mode))