This commit is contained in:
John Doty 2023-05-30 13:35:30 +00:00
parent 23a1cc8a6c
commit 284dc938a7
3 changed files with 13 additions and 2 deletions

View file

@ -728,7 +728,14 @@ Or, uh, Objective C, I guess."
(add-to-list 'interpreter-mode-alist '("python" . python-mode))
(add-hook 'python-mode-hook 'my-python-mode-hook))
(autoload 'blacken-mode "blacken" "Automatically run black before saving." t)
(use-package blacken :ensure
:commands (blacken-mode)
:hook (python-mode . blacken-mode))
(use-package lsp-pyright :ensure
:hook (python-mode . (lambda ()
(require 'lsp-pyright)
(lsp)))) ; or lsp-deferred
;; =================================================================
;; Bazel Support