Skip to content

Commit 3d34065

Browse files
jacgcocreature
authored andcommitted
Add eglot instruction to Emacs section of README (#169)
1 parent 23ff249 commit 3d34065

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,17 @@ marketplace](https://marketplace.visualstudio.com/items?itemName=DigitalAssetHol
7272

7373
### Using with Emacs
7474

75-
If you don't already have [MELPA](https://melpa.org/#/) package installation configured, visit MELPA [getting started](https://melpa.org/#/getting-started) page to get set up. Then, install [`use-package`](https://melpa.org/#/use-package). Finally, add the following lines to your `.emacs`.
75+
If you don't already have [MELPA](https://melpa.org/#/) package installation configured, visit MELPA [getting started](https://melpa.org/#/getting-started) page to get set up. Then, install [`use-package`](https://melpa.org/#/use-package).
76+
77+
Now you have a choice of two different Emacs packages which can be used to communicate with the `ghcide` LSP server:
78+
79+
+ `lsp-ui`
80+
+ `eglot`
81+
82+
In each case, you can enable support by adding the shown lines to your `.emacs`:
83+
84+
#### lsp-ui
85+
7686
```elisp
7787
;; LSP
7888
(use-package flycheck
@@ -98,6 +108,15 @@ If you don't already have [MELPA](https://melpa.org/#/) package installation con
98108
)
99109
```
100110

111+
#### eglot
112+
113+
````elisp
114+
(use-package eglot
115+
:ensure t
116+
:config
117+
(add-to-list 'eglot-server-programs '(haskell-mode . ("ghcide" "--lsp"))))
118+
````
119+
101120
### Using with Vim/Neovim
102121

103122
#### LanguageClient-neovim

0 commit comments

Comments
 (0)