From 42ea381cb5a181248d3959319935898b0960e147 Mon Sep 17 00:00:00 2001 From: David Florness Date: Sun, 8 Nov 2020 13:44:03 -0500 Subject: [PATCH] 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. --- lisp/python.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/python.el b/lisp/python.el index a960ac8..b0e33bd 100644 --- a/lisp/python.el +++ b/lisp/python.el @@ -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)) -- 2.38.4