Skip to content

Commit 2377afc

Browse files
authored
Add Emacs 29 docs for Eglot (#188)
This is a builtin package and most likely what Emacs users are going to use. I also submitted this to Emacs mailing list (w/ static-ls as backup). This would be included in Emacs 31, making configuration not necessary (provided static-ls is in your PATH).
1 parent 288797c commit 2377afc

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,16 @@ You can technically use any LSP compliant client - for a generic one we generall
263263
:language-id "haskell"))
264264
```
265265

266+
Alternatively, if you would like to use `eglot` (a builtin package
267+
since Emacs 29), you can configure eglot like this:
268+
269+
1. Give `static-ls` higher precedence than the default
270+
`haskell-language-server-wrapper`:
271+
272+
```
273+
(add-to-list 'eglot-server-programs `(haskell-mode . ,(eglot-alternatives '("static-ls" ("haskell-language-server-wrapper" "--lsp")))))
274+
```
275+
266276
### Helix
267277
Modify your `languages.toml` config file to add the following:
268278

0 commit comments

Comments
 (0)