Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

Commit a34a872

Browse files
authored
docs: add emacs instructions for eglot (#29)
1 parent 7165ed2 commit a34a872

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,29 @@ Still in heavy development, currently supporting the following features:
1616
<ul>
1717
<li>Neovim: <a href="https://github.com/elixir-tools/elixir-tools.nvim">elixir-tools.nvim</a></li>
1818
<li>VSCode: <a href="https://github.com/elixir-tools/elixir-tools.vscode">elixir-tools.vscode</a></li>
19+
<li>
20+
<details>
21+
<summary>Emacs</summary>
22+
23+
Using eglot:
24+
25+
```elisp
26+
(require 'eglot)
27+
28+
(add-to-list 'exec-path "path/to/next-ls/bin/")
29+
30+
(with-eval-after-load 'eglot
31+
(add-to-list 'eglot-server-programs
32+
`((elixir-ts-mode heex-ts-mode elixir-mode) .
33+
("nextls" "--stdio=true"))))
34+
35+
(add-hook 'elixir-mode-hook 'eglot-ensure)
36+
(add-hook 'elixir-ts-mode-hook 'eglot-ensure)
37+
(add-hook 'heex-ts-mode-hook 'eglot-ensure)
38+
```
39+
40+
</details>
41+
</li>
1942
</ul>
2043

2144
## Installation

0 commit comments

Comments
 (0)