From: Eli Zaretskii Date: Fri, 24 Mar 2023 18:37:11 +0000 (+0300) Subject: Fix invocation of elixir LSP server on MS-Windows X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4a2dccd6a68625914ae6fa4b0bbb002f5ea079db;p=emacs.git 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) --- 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")))