;;; config-linux.el --- Linux-specific configuration -*- lexical-binding: t; -*- ;; Loaded from config.el on GNU/Linux machines only; config-mac.el is the ;; macOS counterpart. Anything with a Linux path, a Linux binary, or a ;; backend that only exists on this box belongs here rather than in the ;; shared config.el. ;; ;; Machine-specific settings that should not be committed at all (API keys, ;; 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. (with-eval-after-load 'eglot (let ((server (cond ((executable-find "expert") '("expert" "--stdio")) ((executable-find "language_server.sh") (list (or (executable-find "bash") "sh") (executable-find "language_server.sh")))))) (when server (setf (alist-get '(elixir-mode elixir-ts-mode heex-ts-mode) eglot-server-programs nil nil #'equal) server)))) ;;; config-linux.el ends here