From: Jostein Kjønigsen Date: Fri, 14 Apr 2023 21:11:02 +0000 (+0200) Subject: Add to Eglot support for additional language-servers. X-Git-Tag: emacs-29.0.91~141 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=adf9c956c28106f83f06bd150d01bced9b19c1c1;p=emacs.git Add to Eglot support for additional language-servers. * lisp/progmodes/eglot.el (eglot-server-programs): Add 'vscode-markdown-language-server' for Markdown and 'dot-language-server' for GraphViz. (Bug#62844) --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index a0581126b28..4943b44107a 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -249,7 +249,11 @@ chosen (interactively or automatically)." ("csharp-ls")))) (purescript-mode . ("purescript-language-server" "--stdio")) ((perl-mode cperl-mode) . ("perl" "-MPerl::LanguageServer" "-e" "Perl::LanguageServer::run")) - (markdown-mode . ("marksman" "server"))) + (markdown-mode + . ,(eglot-alternatives + '(("marksman" "server") + ("vscode-markdown-language-server" "--stdio")))) + (graphviz-dot-mode . ("dot-language-server" "--stdio"))) "How the command `eglot' guesses the server to start. An association list of (MAJOR-MODE . CONTACT) pairs. MAJOR-MODE identifies the buffers that are to be managed by a specific