From: Randy Taylor <dev@rjt.dev>
To: 60137@debbugs.gnu.org
Subject: bug#60137: [PATCH] ; Put built-in modes first for eglot-server-programs
Date: Sat, 17 Dec 2022 02:48:19 +0000 [thread overview]
Message-ID: <VpNwqXHqLAgNxd78BhlDhV1Ifz8ndIKY1hv3Sq7wSJJh6fG8kcqfqeNJ9gEQM-gdaM34pGZqmWrORmcBkxxdSfuyUwNPmbBm9EzRjd3bl78=@rjt.dev> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 24 bytes --]
Per Stefan's suggestion.
[-- Attachment #1.2: Type: text/html, Size: 460 bytes --]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Put-built-in-modes-first-for-eglot-server-programs.patch --]
[-- Type: text/x-patch; name=0001-Put-built-in-modes-first-for-eglot-server-programs.patch, Size: 3136 bytes --]
From a6b50cadc091f7d684331211bbe140bde3d42ffd Mon Sep 17 00:00:00 2001
From: Randy Taylor <dev@rjt.dev>
Date: Fri, 16 Dec 2022 21:32:40 -0500
Subject: [PATCH] ; Put built-in modes first for eglot-server-programs
* lisp/progmodes/eglot.el (eglot-server-programs): Put built-in modes first.
---
lisp/progmodes/eglot.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index 20534cfa1c..a9dd794fa6 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -183,12 +183,12 @@ eglot-alternatives
finally (funcall err)))))))
(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives '("rust-analyzer" "rls")))
- ((cmake-mode cmake-ts-mode) . ("cmake-language-server"))
+ ((cmake-ts-mode cmake-mode) . ("cmake-language-server"))
(vimrc-mode . ("vim-language-server" "--stdio"))
((python-mode python-ts-mode)
. ,(eglot-alternatives
'("pylsp" "pyls" ("pyright-langserver" "--stdio") "jedi-language-server")))
- ((js-json-mode json-mode json-ts-mode)
+ ((js-json-mode json-ts-mode json-mode)
. ,(eglot-alternatives '(("vscode-json-language-server" "--stdio")
("json-languageserver" "--stdio"))))
((js-mode js-ts-mode tsx-ts-mode typescript-ts-mode typescript-mode)
@@ -211,7 +211,7 @@ eglot-server-programs
(elm-mode . ("elm-language-server"))
(mint-mode . ("mint" "ls"))
(kotlin-mode . ("kotlin-language-server"))
- ((go-mode go-dot-mod-mode go-dot-work-mode go-ts-mode go-mod-ts-mode)
+ ((go-ts-mode go-mod-ts-mode go-mode go-dot-mod-mode go-dot-work-mode)
. ("gopls"))
((R-mode ess-r-mode) . ("R" "--slave" "-e"
"languageserver::run()"))
@@ -237,7 +237,7 @@ eglot-server-programs
. ,(eglot-alternatives '(("vscode-css-language-server" "--stdio")
("css-languageserver" "--stdio"))))
(html-mode . ,(eglot-alternatives '(("vscode-html-language-server" "--stdio") ("html-languageserver" "--stdio"))))
- ((dockerfile-mode dockerfile-ts-mode) . ("docker-langserver" "--stdio"))
+ ((dockerfile-ts-mode dockerfile-mode) . ("docker-langserver" "--stdio"))
((clojure-mode clojurescript-mode clojurec-mode)
. ("clojure-lsp"))
((csharp-mode csharp-ts-mode)
--
2.39.0
next reply other threads:[~2022-12-17 2:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-17 2:48 Randy Taylor [this message]
2022-12-17 23:44 ` bug#60137: [PATCH] ; Put built-in modes first for eglot-server-programs Yuan Fu
2022-12-18 1:56 ` Randy Taylor
2022-12-18 4:13 ` João Távora
2022-12-18 8:22 ` Yuan Fu
2022-12-18 18:46 ` Randy Taylor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='VpNwqXHqLAgNxd78BhlDhV1Ifz8ndIKY1hv3Sq7wSJJh6fG8kcqfqeNJ9gEQM-gdaM34pGZqmWrORmcBkxxdSfuyUwNPmbBm9EzRjd3bl78=@rjt.dev' \
--to=dev@rjt.dev \
--cc=60137@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.