Skip to content

Instantly share code, notes, and snippets.

@alexmoore
Created Sep 30, 2013
Embed
What would you like to do?
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