Friday 5 December 2014

Installing Erlang on Ubuntu & Emacs

This was quite simple.

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.