diff options
| author | Eli Zaretskii | 2024-10-12 05:53:27 -0400 |
|---|---|---|
| committer | Eli Zaretskii | 2024-10-12 05:53:27 -0400 |
| commit | bb5b25181ea7a4393f019dc641a981bdb6687c62 (patch) | |
| tree | 678a5f622075e4cb031764d67af0ec620276fd5d /doc/misc | |
| parent | 16e835171a8ce388e581174925e47263e864727d (diff) | |
| parent | 0f8f0773183a07a229b23d3f970723ceb9585aef (diff) | |
| download | emacs-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.texi | 28 |
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 |
| 124 | Select and install a language server. | 124 | Select and install a language server. |
| 125 | 125 | ||
| 126 | Eglot comes pre-configured with many popular language servers, see the | 126 | Eglot comes pre-configured for many popular language servers, see the |
| 127 | value of @code{eglot-server-programs}. If the server(s) mentioned | 127 | value of @code{eglot-server-programs}. If the server(s) mentioned there |
| 128 | there satisfy your needs for the programming language(s) with which | 128 | satisfy your needs for the programming language(s) with which you want |
| 129 | you want to use Eglot, you just need to make sure those servers are | 129 | to use Eglot, you just need to make sure those servers are installed on |
| 130 | installed on your system. Alternatively, install one or more servers | 130 | your system and Eglot can find them. |
| 131 | of your choice and add them to the value of | 131 | |
| 132 | Alternatively, install one or more servers of your choice and tell Eglot | ||
| 133 | where 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 |
| 133 | Servers}. | 135 | Servers} or have Eglot prompt you about it (@pxref{Eglot Commands}). |
| 134 | 136 | ||
| 135 | @item | 137 | @item |
| 136 | Turn on Eglot for your project. | 138 | Turn on Eglot for your project. |
| @@ -197,7 +199,7 @@ particular server(s) you want to install. | |||
| 197 | 199 | ||
| 198 | To use a language server, Eglot must know how to start it and which | 200 | To use a language server, Eglot must know how to start it and which |
| 199 | programming languages each server supports. This information is | 201 | programming languages each server supports. This information is |
| 200 | provided by the variable @code{eglot-server-programs}. | 202 | commonly provided by the variable @code{eglot-server-programs}. |
| 201 | 203 | ||
| 202 | @defvar eglot-server-programs | 204 | @defvar eglot-server-programs |
| 203 | This variable associates major modes with names and command-line | 205 | This 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 |
| 942 | A hook run after the server object is successfully initialized. | 944 | A hook run after the server object is successfully initialized (which |
| 945 | includes launching the process) but before any LSP communication is | ||
| 946 | attempted. Each function receives a @code{eglot-lsp-server} instance as | ||
| 947 | argument. | ||
| 943 | 948 | ||
| 944 | @vindex eglot-connect-hook | 949 | @vindex eglot-connect-hook |
| 945 | @item eglot-connect-hook | 950 | @item eglot-connect-hook |
| 946 | A hook run after connection to the server is successfully | 951 | A hook run after the LSP connection to the server is successfully |
| 947 | established. @xref{Starting Eglot}. | 952 | established. Each function receives a @code{eglot-lsp-server} instance |
| 953 | as argument. @xref{Starting Eglot}. | ||
| 948 | 954 | ||
| 949 | @item eglot-managed-mode-hook | 955 | @item eglot-managed-mode-hook |
| 950 | A hook run after Eglot started or stopped managing a buffer. | 956 | A hook run after Eglot started or stopped managing a buffer. |