Created
September 30, 2013 16:25
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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