From: Stefan Kangas Date: Fri, 22 Dec 2023 21:36:37 +0000 (+0100) Subject: Recommend customizing eglot for python-base-mode X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d386a8aa43f;p=emacs.git 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'. --- 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)