python: Add config for python

This commit is contained in:
finga 2024-08-13 14:25:56 +02:00
parent dd9c1d80d3
commit 7f78d9a9a3
4 changed files with 10 additions and 0 deletions

View file

@ -39,5 +39,6 @@
(use-package lsp-mode (use-package lsp-mode
:ensure t :ensure t
:hook :hook
(python-mode . lsp-deferred)
(rust-mode . lsp-deferred) (rust-mode . lsp-deferred)
(toml-mode . lsp-deferred)) (toml-mode . lsp-deferred))

View file

@ -0,0 +1,7 @@
(add-hook 'python-mode-hook 'python-flake8)
(add-hook 'python-mode-hook 'python-pylint)
(use-package flycheck-mypy
:ensure t
:config
(add-hook 'python-mode-hook 'flycheck-mode))

View file

@ -68,6 +68,7 @@ symbols, which are converted to strings, and suffixed with \".el\"."
man man
org org
pass pass
python
ripgrep ripgrep
rust rust
wl wl

View file

@ -10,6 +10,7 @@
!/.emacs.d/config/man.el !/.emacs.d/config/man.el
!/.emacs.d/config/org.el !/.emacs.d/config/org.el
!/.emacs.d/config/pass.el !/.emacs.d/config/pass.el
!/.emacs.d/config/python.el
!/.emacs.d/config/ripgrep.el !/.emacs.d/config/ripgrep.el
!/.emacs.d/config/rust.el !/.emacs.d/config/rust.el
!/.emacs.d/config/tramp.el !/.emacs.d/config/tramp.el