MacでErlang modeを使えるようにする。
以下の説明の3.4の内容を.emacsに記述する。(ErlangをインストールしていればEmacsのerlang modeは一緒に入っているっぽい)
Erlang -- The Erlang mode for Emacs
私のMacの場合は「/opt/local/lib/erlang/lib/tools-2.6.6.2/emacs」ここにインストールされていたので、以下のように記述した。
(setq load-path (cons "/opt/local/lib/erlang/lib/tools-2.6.6.2/emacs" load-path)) (setq erlang-root-dir "/opt/local/lib/erlang") (setq exec-path (cons "/opt/local/lib/erlang/bin" exec-path)) (require 'erlang-start)
あとは、.erlファイルを開くか、M-x erlang-modeとすればOK。
使い方も以下のページにまとまっているね。
Erlang -- Erlang mode for Emacs