From 117d9127f3ba5ae57c6841a4af60626d38217225 Mon Sep 17 00:00:00 2001 From: Jonas Jelten Date: Thu, 27 Feb 2025 16:51:51 +0100 Subject: [PATCH] fix(python): stop anaconda-eldoc-mode when lsp server launches this needed a fix in anaconda-mode to not also stop eldoc-mode in general. ref: pythonic-emacs/anaconda-mode#440 --- modules/lang/python/config.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/lang/python/config.el b/modules/lang/python/config.el index cb7dca052..107770ea8 100644 --- a/modules/lang/python/config.el +++ b/modules/lang/python/config.el @@ -107,9 +107,11 @@ (add-hook! 'eglot-server-initialized-hook (defun +python-disable-anaconda-mode-h (&rest _) - "Ensure `anaconda-mode' doesn't interfere with `eglot'." + "When `eglot' started, disable `anaconda-mode' so they don't interfere." (when (bound-and-true-p anaconda-mode) + (anaconda-eldoc-mode -1) (anaconda-mode -1)))) + :config (set-company-backend! 'anaconda-mode '(company-anaconda)) (set-lookup-handlers! 'anaconda-mode