From https://www.erlang-solutions.com/downloads/download-erlang-otp:
wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update
sudo apt-get install erlang erlang-doc erlang-manpages
The page says erlang-mode also needs to be installed separately but it seemed to be installed already (or it was included in the erlang package).
After this all I needed to do in Emacs was to add this to .emacs:
(setq load-path (cons "/usr/lib/erlang/lib/tools-2.7/emacs" load-path))
(setq erlang-root-dir "/usr/lib/erlang")
(setq exec-path (cons "/usr/lib/erlang/" exec-path))
(require 'erlang-start)Now I need to figure out how to tell flycheck of all the directories it needs & set up TAGS.
No comments:
Post a Comment