A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://lists.gnu.org/archive/html/emacs-devel/2022-11/msg00565.html below:

Re: Making `eglot-server-programs' a custom variable?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] From: Arash Esbati Subject: Re: Making `eglot-server-programs' a custom variable? Date: Thu, 10 Nov 2022 10:18:43 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50
Eli Zaretskii <eliz@gnu.org> writes:

> The intent is for this variable to include enough servers to make it
> unnecessary to add to the list.

Ok, that's a different story.  Would it then make sense to add a comment
to the manual about each server and if they work on the platforms Emacs
runs?  Currently, "digestif" doesn't run on Windows, "texlab" (see
below) does.  I know, this is work and possibly out of Eglot's scope,
but it could give users some direction.

> Is the LSP server you needed to add still missing from the database
> currently on master?  If so, please suggest the addition(s).

The addition would look like this:

--8<---------------cut here---------------start------------->8---
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index 2eaa396386..f69d392b46 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -217,7 +217,7 @@ eglot-server-programs
                                 (scala-mode . ("metals-emacs"))
                                 (racket-mode . ("racket" "-l" 
"racket-langserver"))
                                 ((tex-mode context-mode texinfo-mode 
bibtex-mode)
-                                 . ("digestif"))
+                                 . ,(eglot-alternatives '("digestif" 
"texlab")))
                                 (erlang-mode . ("erlang_ls" "--transport" 
"stdio"))
                                 (yaml-mode . ("yaml-language-server" 
"--stdio"))
                                 (nix-mode . ,(eglot-alternatives '("nil" 
"rnix-lsp")))
--8<---------------cut here---------------end--------------->8---

Best, Arash



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4