dotfiles-emacs/.emacs.d/config/python.el
finga d188dd4c89 lsp-mode: Move python-mode config for lsp-mode to python config
To decouple python from the dev config and contain it solely in the
python config, configure the lsp-mode for python in the python config.
2024-09-12 10:44:21 +02:00

12 lines
244 B
EmacsLisp

(add-hook 'python-mode-hook 'python-flake8)
(add-hook 'python-mode-hook 'python-pylint)
(use-package flycheck-mypy
:ensure t
:hook
(python-mode . flycheck-mode))
(use-package lsp-mode
:ensure t
:hook
(python-mode . lsp-deferred))