diff --git a/config-linux.el b/config-linux.el index 026b666..d612cde 100644 --- a/config-linux.el +++ b/config-linux.el @@ -9,10 +9,12 @@ ;; checkouts in unusual places) belong in config-local.el, which is ;; gitignored -- see config-local.example.el. -;; Elixir language server. The shared config.el used to point eglot at a -;; macOS path (/Users/willem/.elixir-ls/...), which was silently dead here. -;; Prefer `expert' if it is installed, else any elixir-ls on PATH, else -;; leave eglot alone rather than configuring a server that cannot start. +;; Elixir language server. The shared config.el deliberately does not +;; configure this: a single value cannot be right on both machines, and +;; pointing eglot at a binary that may not exist is worse than leaving it at +;; Emacs' default. So each OS file owns it. Here: prefer `expert' if it is +;; installed, else any elixir-ls on PATH, else leave eglot alone rather than +;; configuring a server that cannot start. (with-eval-after-load 'eglot (let ((server (cond ((executable-find "expert") '("expert" "--stdio")) diff --git a/config.el b/config.el index af75d50..3eb0a27 100644 --- a/config.el +++ b/config.el @@ -65,12 +65,6 @@ '((elixir-mode . elixir-ts-mode))) ) -(with-eval-after-load 'eglot - (setf (alist-get '(elixir-mode elixir-ts-mode heex-ts-mode) - eglot-server-programs - nil nil #'equal) - '("expert" "--stdio"))) - (use-package elixir-ts-mode :hook (elixir-ts-mode . eglot-ensure)