Skip to content

Commit

Permalink
usage: Erlang mode
Browse files Browse the repository at this point in the history
  • Loading branch information
vindarel committed Oct 18, 2024
1 parent 6770ead commit f7626f7
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions content/en/modes/erlang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: Erlang
---

`erlang-mode` supports:

- syntax highlighting
- REPL: `M-x run-erlang`
- once started, it uses its own `run-erlang-mode` major mode.
- send and eval region (async): `C-c C-r` aka `M-x erlang-eval-region`.
- LSP support


## Configuration

Erlang mode will connect to your local ELP [Erlang Language Platform](https://github.com/WhatsApp/erlang-language-platform) installation.

Configure the ELP binary's location by setting `*lsp-elang-elp-server-path*`:


```lisp
(defvar lem-erlang-mode::*lsp-erlang-elp-server-path*
(uiop:native-namestring "/usr/local/bin/elp")
"Adapt to your system's ELP path.")
```

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 comments on commit f7626f7

Please sign in to comment.