ela
Contents

ManualEditors

Emacs

In the terminalela --spec emacs

This setup is written from the manual of eglot, Emacs's language-server client, and not tested.

Emacs has no mode for ela, so init.el makes one, gives it *.ela and scripts that run ela, and tells eglot to start ela --lsp for it. eglot names the language ela after the mode:

(define-derived-mode ela-mode prog-mode "ela"  "Major mode for ela scripts."  (setq-local comment-start "# "))(add-to-list 'auto-mode-alist '("\\.ela\\'" . ela-mode))(add-to-list 'interpreter-mode-alist '("ela" . ela-mode))(with-eval-after-load 'eglot  (add-to-list 'eglot-server-programs '(ela-mode . ("ela" "--lsp"))))(add-hook 'ela-mode-hook #'eglot-ensure)

The mode colours nothing itself. Where eglot has eglot-semantic-tokens-mode, turning it on colours the buffer from the server.