~edwargix/emacs.d

42ea381cb5a181248d3959319935898b0960e147 — David Florness 4 years ago 7b66c17
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))