whompmacs/lib/thwap-py.el

14 lines
379 B
EmacsLisp
Raw Normal View History

2024-07-06 17:49:17 +00:00
(when thwap-dev-enable-python
(add-hook 'python-mode-hook (lambda ()
(setq-local tab-width 2)))
(add-hook 'python-mode-hook #'lsp-deferred)
(when (executable-find "pylsp")
(add-hook 'python-mode-hook 'eglot-ensure))
(use-package python-black
:demand t
:straight t
:after python
:hook (python-mode . python-black-on-save-mode)))
(provide 'thwap-py)