Skip to content

Commit f7626f7

Browse files
committed
usage: Erlang mode
1 parent 6770ead commit f7626f7

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

content/en/modes/erlang.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: Erlang
3+
---
4+
5+
`erlang-mode` supports:
6+
7+
- syntax highlighting
8+
- REPL: `M-x run-erlang`
9+
- once started, it uses its own `run-erlang-mode` major mode.
10+
- send and eval region (async): `C-c C-r` aka `M-x erlang-eval-region`.
11+
- LSP support
12+
13+
14+
## Configuration
15+
16+
Erlang mode will connect to your local ELP [Erlang Language Platform](https://github.com/WhatsApp/erlang-language-platform) installation.
17+
18+
Configure the ELP binary's location by setting `*lsp-elang-elp-server-path*`:
19+
20+
21+
```lisp
22+
(defvar lem-erlang-mode::*lsp-erlang-elp-server-path*
23+
(uiop:native-namestring "/usr/local/bin/elp")
24+
"Adapt to your system's ELP path.")
25+
```
26+
27+
Currently, Erlang mode does not add any LSP features on its own. The integration is experimental with the purpose of figuring out how to use the existing Lem/LSP features and how to add Erlang specific features.

0 commit comments

Comments
 (0)