From 1508d027c421f12dca8b65e1cdabda352a8d6c0b Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Mon, 27 Jul 2026 19:44:01 +0200 Subject: Emacs: pet: Find `pylsp` executable via pet --- dot.emacs.d/init.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dot.emacs.d/init.el b/dot.emacs.d/init.el index afb2839..5671701 100644 --- a/dot.emacs.d/init.el +++ b/dot.emacs.d/init.el @@ -113,7 +113,11 @@ :hook ((python-mode python-ts-mode) . lsp)) (use-package pet :init - (add-hook 'python-base-mode-hook 'pet-mode -10)) + (add-hook 'python-base-mode-hook 'pet-mode -10) + (add-hook + 'python-base-mode-hook + (defun qsx-python-pet-hook () + (setq-local lsp-pylsp-server-command (list (pet-executable-find "pylsp")))))) (use-package highlight-indentation :hook python-base-mode) -- cgit v1.2.3