Skip to content

Commit

Permalink
docs: add emacs instructions for eglot (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
wkirschbaum authored Jun 24, 2023
1 parent 7165ed2 commit a34a872
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,29 @@ Still in heavy development, currently supporting the following features:
<ul>
<li>Neovim: <a href="https://github.com/elixir-tools/elixir-tools.nvim">elixir-tools.nvim</a></li>
<li>VSCode: <a href="https://github.com/elixir-tools/elixir-tools.vscode">elixir-tools.vscode</a></li>
<li>
<details>
<summary>Emacs</summary>

Using eglot:

```elisp
(require 'eglot)
(add-to-list 'exec-path "path/to/next-ls/bin/")
(with-eval-after-load 'eglot
(add-to-list 'eglot-server-programs
`((elixir-ts-mode heex-ts-mode elixir-mode) .
("nextls" "--stdio=true"))))
(add-hook 'elixir-mode-hook 'eglot-ensure)
(add-hook 'elixir-ts-mode-hook 'eglot-ensure)
(add-hook 'heex-ts-mode-hook 'eglot-ensure)
```

</details>
</li>
</ul>

## Installation
Expand Down

0 comments on commit a34a872

Please sign in to comment.