Skip to content

Instantly share code, notes, and snippets.

@alexmoore
Created September 30, 2013 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexmoore/6766333 to your computer and use it in GitHub Desktop.
Save alexmoore/6766333 to your computer and use it in GitHub Desktop.
Add this to your .emacs file to autoload the tools for the current erlang with https://github.com/alexmoore/erls
;; setup erlang mode
(setq erlang-root-dir "/Users/alex/erlangs/current")
(setq erlang-lib-dir (concat erlang-root-dir "/lib/erlang/lib"))
(setq load-path
(cons (concat erlang-lib-dir
"/"
(car (directory-files erlang-lib-dir nil "^tools\-"))
"/emacs" )
load-path))
(setq exec-path (cons (concat erlang-root-dir "/" "bin") exec-path))
(require 'erlang-start)
(require 'erlang-flymake)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment