mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-07 20:59:37 +00:00
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'.
This commit is contained in:
parent
bd0c758971
commit
d386a8aa43
1 changed files with 5 additions and 5 deletions
|
@ -1085,7 +1085,7 @@ To apply this to Eglot, and assuming you chose the
|
||||||
:fuzzy t)
|
:fuzzy t)
|
||||||
:pylint (:enabled :json-false)))
|
:pylint (:enabled :json-false)))
|
||||||
:gopls (:usePlaceholders t)))))
|
:gopls (:usePlaceholders t)))))
|
||||||
(python-mode . ((indent-tabs-mode . nil)))
|
(python-base-mode . ((indent-tabs-mode . nil)))
|
||||||
(go-mode . ((indent-tabs-mode . t))))
|
(go-mode . ((indent-tabs-mode . t))))
|
||||||
@end lisp
|
@end lisp
|
||||||
|
|
||||||
|
@ -1101,7 +1101,7 @@ plists are used inside the value of
|
||||||
This following form may also be used:
|
This following form may also be used:
|
||||||
|
|
||||||
@lisp
|
@lisp
|
||||||
((python-mode
|
((python-base-mode
|
||||||
. ((eglot-workspace-configuration
|
. ((eglot-workspace-configuration
|
||||||
. (:pylsp (:plugins (:jedi_completion (:include_params t
|
. (:pylsp (:plugins (:jedi_completion (:include_params t
|
||||||
:fuzzy t)
|
:fuzzy t)
|
||||||
|
@ -1116,7 +1116,7 @@ This following form may also be used:
|
||||||
@noindent
|
@noindent
|
||||||
This sets up the value of @code{eglot-workspace-configuration}
|
This sets up the value of @code{eglot-workspace-configuration}
|
||||||
separately depending on the major mode of each of that project's
|
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
|
@code{(:pylsp (:plugins ...))}. @code{go-mode} buffers will have the
|
||||||
variable set to @code{(:gopls (:usePlaceholders t))}.
|
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:
|
may use something like:
|
||||||
|
|
||||||
@lisp
|
@lisp
|
||||||
((python-mode
|
((python-base-mode
|
||||||
. ((eglot-workspace-configuration
|
. ((eglot-workspace-configuration
|
||||||
. (:pylsp (:plugins (:jedi_completion (:include_params t
|
. (:pylsp (:plugins (:jedi_completion (:include_params t
|
||||||
:fuzzy t)
|
:fuzzy t)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue