From 4a2dccd6a68625914ae6fa4b0bbb002f5ea079db Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 24 Mar 2023 21:37:11 +0300 Subject: [PATCH] Fix invocation of elixir LSP server on MS-Windows * lisp/progmodes/eglot.el (eglot-server-programs): Invoke the elixir-ls LSP via a batch file if using an MS-Windows shell. (Bug#62407) --- lisp/progmodes/eglot.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 806e498c38c..cc9c8115b08 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -222,7 +222,10 @@ chosen (interactively or automatically)." (dart-mode . ("dart" "language-server" "--client-id" "emacs.eglot-dart")) ((elixir-mode elixir-ts-mode heex-ts-mode) - . ("language_server.sh")) + . ,(if (and (fboundp 'w32-shell-dos-semantics) + (w32-shell-dos-semantics)) + '("language_server.bat") + '("language_server.sh"))) (ada-mode . ("ada_language_server")) (scala-mode . ,(eglot-alternatives '("metals" "metals-emacs"))) -- 2.39.2