If you prefer IDEs, but still want to edit Erlang with Emacs, the right package to install is edts.
You need:
- a working package.el, or cask
- an erlang install (guide here)
Install Gotchas
Does erl work?
Make sure $ erl
works, as edts
compiles when installing, and if your Erlang install is not active, it won't install properly.
This is a bit treacherous because kerl
installs are not active by default, and if you miss the notification in the emacs buffer you'll think edts
just doesn't work (happened to me ^^;;).
Have you got distel?
It's better if you get rid of it, as edts has its own implementation of similar functionality.
Once you've taken care of those gotchas:
M-x package-install RET edts RET
or
M-x package-list-packages
find edts
, press i
over it, and then x
Setup
Add to your .emacs
:
(add-hook 'after-init-hook 'my-after-init-hook)
(defun my-after-init-hook ()
(require 'edts-start))
Use
I'll refer you to the Readme and a talk by the author.
It auto completes, project management, code navigation and more.
Comments? Give me a shout at @lambda_cat.
To get the latest post updates subscribe to the LambdaCat newsletter.
You can support my writing on LambdaCat's Patreon.