Friday, February 5, 2010

Setting Up Emacs for Erlang

Here is what you need to add to you .emacs file in you home dir to get emacs to do syntax highlighting and compiling.

(setq load-path (cons "/lib/erlang/lib/tools-2.6.5/emacs" load-path))
(setq erlang-root-dir "")
(setq exec-path (cons "/bin" exec-path))
(require 'erlang-start)
(custom-set-variables '(transient-mark-mode t))
(setq font-lock-maximum-decoration t)
(global-font-lock-mode 1)

In case you need a cheat sheet for emacs.
http://www.rgrjr.com/emacs/emacs_cheat.html