2009-02-25

Emacs Erlang-mode for MacPorts

http://erlang.org/doc/apps/tools/erlang_mode_chapter.html のやつを、ちょっと改良。

;; Erlang
(setq erlang-root-dir "/opt/local/lib/erlang")
(setq exec-path (cons (concat erlang-root-dir "/bin") exec-path))
(setq load-path (cons (let ((erl-lib-base-dir (concat erlang-root-dir "/lib")))
(concat erl-lib-base-dir "/"
(file-name-completion "tools-" erl-lib-base-dir )
"emacs"))
load-path))
(require 'erlang-start)

0 コメント: