Install Emacs Erlang Editor/IDE

Install Emacs Erlang Editor/IDE

Currently I personally use Emacs for programming in Erlang. There is an Erlang editing mode in Emacs. Well, I can help you to install Emacs and set Erlang mode in Emacs. So, let’s do it!

Install Emacs
Run commands below to install Emacs:

1
2
sudo apt-add-repository ppa:cassou/emacs
sudo apt-get install emacs24 emacs24-el emacs24-common-non-dfsg

Set Erlang Mode in Emacs
To set Erlang mode in Emacs add the following codes to file ~/.emacs:

.emacs
1
2
3
4
5
(defun my-erlang-mode-hook ()
  (setq inferior-erlang-machine-options '("-sname" "emacs"))
  (imenu-add-to-menubar "imenu")
)
(add-hook 'erlang-mode-hook 'my-erlang-mode-hook)

So far so good, hope the article could helped you. see ya! :)