aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorEli Zaretskii2024-10-12 05:53:27 -0400
committerEli Zaretskii2024-10-12 05:53:27 -0400
commitbb5b25181ea7a4393f019dc641a981bdb6687c62 (patch)
tree678a5f622075e4cb031764d67af0ec620276fd5d /doc/misc
parent16e835171a8ce388e581174925e47263e864727d (diff)
parent0f8f0773183a07a229b23d3f970723ceb9585aef (diff)
downloademacs-bb5b25181ea7a4393f019dc641a981bdb6687c62.tar.gz
emacs-bb5b25181ea7a4393f019dc641a981bdb6687c62.zip
Merge from origin/emacs-30
0f8f0773183 ; * doc/emacs/search.texi (Word Search): Document 'dictio... fb155bcfb6f ; * lisp/emacs-lisp/chart.el (chart-bar-quickie): Doc fix. 6dbe4e99ac4 ; * lisp/emacs-lisp/chart.el (chart-bar-quickie): Improve... d664227f81a ; More accurate documentation of 'file-newer-than-file-p' e49b479f869 Fix c-ts-mode indentation for initializer lists (bug#73661) f520008744b Avoid segfaults in Rmail-MIME 6a5c2edd84f Eglot: use :immediate t when resolving completions (bug#7... cd36e070c24 Eglot: minor changes to doc and docstrings 1ea0d9b891b Revert "Set treesit-primary-parser for tree-sitter modes" 52746ceb625 Remove duplicate indent rules in elixir-ts-mode ed57faafc74 Set treesit-primary-parser for tree-sitter modes 37a6c859b04 ; * lisp/emacs-lisp/cl-macs.el (cl-once-only): Fix capita... 2d4d6dc43a4 Delete XIE X extension from TODO
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/eglot.texi28
1 files changed, 17 insertions, 11 deletions
diff --git a/doc/misc/eglot.texi b/doc/misc/eglot.texi
index fb5b618bd84..959bbfa6857 100644
--- a/doc/misc/eglot.texi
+++ b/doc/misc/eglot.texi
@@ -123,14 +123,16 @@ Here's how to start using Eglot with your programming project:
123@item 123@item
124Select and install a language server. 124Select and install a language server.
125 125
126Eglot comes pre-configured with many popular language servers, see the 126Eglot comes pre-configured for many popular language servers, see the
127value of @code{eglot-server-programs}. If the server(s) mentioned 127value of @code{eglot-server-programs}. If the server(s) mentioned there
128there satisfy your needs for the programming language(s) with which 128satisfy your needs for the programming language(s) with which you want
129you want to use Eglot, you just need to make sure those servers are 129to use Eglot, you just need to make sure those servers are installed on
130installed on your system. Alternatively, install one or more servers 130your system and Eglot can find them.
131of your choice and add them to the value of 131
132Alternatively, install one or more servers of your choice and tell Eglot
133where to find them. To do that, you may add to the value of
132@code{eglot-server-programs}, as described in @ref{Setting Up LSP 134@code{eglot-server-programs}, as described in @ref{Setting Up LSP
133Servers}. 135Servers} or have Eglot prompt you about it (@pxref{Eglot Commands}).
134 136
135@item 137@item
136Turn on Eglot for your project. 138Turn on Eglot for your project.
@@ -197,7 +199,7 @@ particular server(s) you want to install.
197 199
198To use a language server, Eglot must know how to start it and which 200To use a language server, Eglot must know how to start it and which
199programming languages each server supports. This information is 201programming languages each server supports. This information is
200provided by the variable @code{eglot-server-programs}. 202commonly provided by the variable @code{eglot-server-programs}.
201 203
202@defvar eglot-server-programs 204@defvar eglot-server-programs
203This variable associates major modes with names and command-line 205This variable associates major modes with names and command-line
@@ -939,12 +941,16 @@ to @w{@code{(disallow-non-standard-keys enforce-required-keys)}}.
939 941
940@vindex eglot-server-initialized-hook 942@vindex eglot-server-initialized-hook
941@item eglot-server-initialized-hook 943@item eglot-server-initialized-hook
942A hook run after the server object is successfully initialized. 944A hook run after the server object is successfully initialized (which
945includes launching the process) but before any LSP communication is
946attempted. Each function receives a @code{eglot-lsp-server} instance as
947argument.
943 948
944@vindex eglot-connect-hook 949@vindex eglot-connect-hook
945@item eglot-connect-hook 950@item eglot-connect-hook
946A hook run after connection to the server is successfully 951A hook run after the LSP connection to the server is successfully
947established. @xref{Starting Eglot}. 952established. Each function receives a @code{eglot-lsp-server} instance
953as argument. @xref{Starting Eglot}.
948 954
949@item eglot-managed-mode-hook 955@item eglot-managed-mode-hook
950A hook run after Eglot started or stopped managing a buffer. 956A hook run after Eglot started or stopped managing a buffer.