From 5da8304c4620d3b38c4bd6eb61366a83a89c0427 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 1 Jul 2024 03:34:23 -0400 Subject: [PATCH] fix(python): wrong-number-of-args error for eglot users eglot-server-initialized-hook passes one argument to its hooks. Amend: d14ddbf69426 Ref: #7823 --- modules/lang/python/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lang/python/config.el b/modules/lang/python/config.el index d31a9d735..373f580b6 100644 --- a/modules/lang/python/config.el +++ b/modules/lang/python/config.el @@ -106,7 +106,7 @@ (anaconda-mode +1)))) (add-hook! 'eglot-server-initialized-hook - (defun +python-disable-anaconda-mode-h () + (defun +python-disable-anaconda-mode-h (&rest _) "Ensure `anaconda-mode' doesn't interfere with `eglot'." (when (bound-and-true-p anaconda-mode) (anaconda-mode -1))))