Add interactive function to call lsp on python-mode-hook I use this after first starting lsp in the first Python buffer of a project.
1 files changed, 4 insertions(+), 0 deletions(-) M lisp/python.el
M lisp/python.el => lisp/python.el +4 -0
@@ 11,3 11,7 @@ (use-package python-docstring :hook (python-mode . python-docstring-mode)) + +(defun activate-python-lsp-hook () + (interactive) + (add-hook 'python-mode-hook #'lsp))