diff --git a/.emacs.d/config/dev.el b/.emacs.d/config/dev.el index 22d8025..b433477 100644 --- a/.emacs.d/config/dev.el +++ b/.emacs.d/config/dev.el @@ -39,5 +39,6 @@ (use-package lsp-mode :ensure t :hook + (python-mode . lsp-deferred) (rust-mode . lsp-deferred) (toml-mode . lsp-deferred)) diff --git a/.emacs.d/config/python.el b/.emacs.d/config/python.el new file mode 100644 index 0000000..2c06c33 --- /dev/null +++ b/.emacs.d/config/python.el @@ -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)) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 4bf246b..889edb3 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -68,6 +68,7 @@ symbols, which are converted to strings, and suffixed with \".el\"." man org pass + python ripgrep rust wl diff --git a/.gitignore.d/emacs b/.gitignore.d/emacs index 2cc5380..7366421 100644 --- a/.gitignore.d/emacs +++ b/.gitignore.d/emacs @@ -10,6 +10,7 @@ !/.emacs.d/config/man.el !/.emacs.d/config/org.el !/.emacs.d/config/pass.el +!/.emacs.d/config/python.el !/.emacs.d/config/ripgrep.el !/.emacs.d/config/rust.el !/.emacs.d/config/tramp.el