2014-11-29 04:59:23 +00:00
|
|
|
# Erlang/Elixir contribution layer for Spacemacs
|
|
|
|
|
2014-12-24 06:03:49 +00:00
|
|
|
![logo_erlang](img/erlang.png)
|
2014-12-12 00:55:44 +00:00
|
|
|
|
2015-01-26 06:08:33 +00:00
|
|
|
![logo_elixir](img/elixir.png) with ![logo_alchemist](img/alchemist.png)
|
2014-12-10 04:55:19 +00:00
|
|
|
|
2014-12-07 15:21:27 +00:00
|
|
|
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc/generate-toc again -->
|
|
|
|
**Table of Contents**
|
|
|
|
|
|
|
|
- [Erlang/Elixir contribution layer for Spacemacs](#erlangelixir-contribution-layer-for-spacemacs)
|
|
|
|
- [Install](#install)
|
|
|
|
- [Erlang](#erlang)
|
|
|
|
- [Enable EDTS](#enable-edts)
|
|
|
|
- [EDTS Key bindings](#edts-key-bindings)
|
|
|
|
|
|
|
|
<!-- markdown-toc end -->
|
|
|
|
|
2014-11-29 04:59:23 +00:00
|
|
|
## Install
|
|
|
|
|
|
|
|
To use this contribution add it to your `~/.spacemacs`
|
|
|
|
|
|
|
|
```elisp
|
2015-02-18 03:36:12 +00:00
|
|
|
(setq-default dotspacemacs-configuration-layers '(erlang-elixir))
|
2014-11-29 04:59:23 +00:00
|
|
|
```
|
|
|
|
|
2014-12-07 15:21:27 +00:00
|
|
|
## Erlang
|
|
|
|
|
|
|
|
### Enable EDTS
|
|
|
|
|
|
|
|
[EDTS][] is disabled by default, to enable it add the following snippet to
|
|
|
|
the `dotspacemacs/init` function of your `~/.spacemacs` file.
|
|
|
|
|
|
|
|
```elisp
|
|
|
|
(setq spacemacs-erlang-elixir-use-edts t)
|
|
|
|
```
|
|
|
|
|
|
|
|
Note that `EDTS` is disable on Windows.
|
2014-11-29 04:59:23 +00:00
|
|
|
|
2014-12-07 15:21:27 +00:00
|
|
|
#### EDTS Key bindings
|
2014-11-29 04:59:23 +00:00
|
|
|
|
|
|
|
Key Binding | Description
|
|
|
|
--------------------|------------------------------------------------------------
|
|
|
|
<kbd>SPC m d</kbd> | show man page documentation
|
|
|
|
<kbd>SPC m e</kbd> | go to next issue
|
|
|
|
<kbd>SPC m g</kbd> | go to definition
|
|
|
|
<kbd>SPC m G</kbd> | find a module in the current project
|
|
|
|
<kbd>SPC m h</kbd> | open the header file under point
|
|
|
|
<kbd>SPC m l</kbd> | find a function in the current module
|
|
|
|
<kbd>SPC m m</kbd> | go to the macro definition under point
|
|
|
|
<kbd>SPC m r</kbd> | go to the record definition under point
|
|
|
|
|
2014-12-07 15:21:27 +00:00
|
|
|
[EDTS]: https://github.com/tjarvstrand/edts
|