From d386a8aa43f77f9317db6f52ef70f43a48237f99 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Fri, 22 Dec 2023 22:36:37 +0100 Subject: [PATCH] Recommend customizing eglot for python-base-mode * doc/misc/eglot.texi (Project-specific configuration): Recommend setting directory local variables for 'python-base-mode' instead of 'python-mode'. This makes any customizations effective also for 'python-ts-mode'. --- doc/misc/eglot.texi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/misc/eglot.texi b/doc/misc/eglot.texi index f7543193f18..bbf323a873f 100644 --- a/doc/misc/eglot.texi +++ b/doc/misc/eglot.texi @@ -1085,8 +1085,8 @@ To apply this to Eglot, and assuming you chose the :fuzzy t) :pylint (:enabled :json-false))) :gopls (:usePlaceholders t))))) - (python-mode . ((indent-tabs-mode . nil))) - (go-mode . ((indent-tabs-mode . t)))) + (python-base-mode . ((indent-tabs-mode . nil))) + (go-mode . ((indent-tabs-mode . t)))) @end lisp @noindent @@ -1101,7 +1101,7 @@ plists are used inside the value of This following form may also be used: @lisp -((python-mode +((python-base-mode . ((eglot-workspace-configuration . (:pylsp (:plugins (:jedi_completion (:include_params t :fuzzy t) @@ -1116,7 +1116,7 @@ This following form may also be used: @noindent This sets up the value of @code{eglot-workspace-configuration} separately depending on the major mode of each of that project's -buffers. @code{python-mode} buffers will have the variable set to +buffers. @code{python-base-mode} buffers will have the variable set to @code{(:pylsp (:plugins ...))}. @code{go-mode} buffers will have the variable set to @code{(:gopls (:usePlaceholders t))}. @@ -1127,7 +1127,7 @@ want to set a different option for @code{gopls.usePlaceholders} , you may use something like: @lisp -((python-mode +((python-base-mode . ((eglot-workspace-configuration . (:pylsp (:plugins (:jedi_completion (:include_params t :fuzzy t) -- 2.39.2