Erlang モード on Meadow

MeadowErlang 用のメジャーモードをインストールします.

OTP を C:\Program Files\erlX.Y.Z にインストールしたと仮定します.Emacs 用のツール群が C:\Program Files\erlX.Y.Z\lib\tools-x.y.z\emacs の中にあります.コマンドプロンプトでそのディレクトリに cd し,中にある二つの Emacs Lisp ファイルをバイトコンパイルしましょう.お分かりかと思いますが,X,Y,Z,x,y,z はそれぞれバージョン番号の数字が入りますので,皆さんの環境に置き換えてください.

C:\Windows\system32> cd "\Program Files\erlX.Y.Z\lib\tools-x.y.z\emacs"
C:\Program Files\erlX.Y.Z\lib\tools-x.y.z\emacs> meadow.exe -batch -q --no-site-file -eval "(byte-compile-file \"erlang.el\")"
C:\Program Files\erlX.Y.Z\lib\tools-x.y.z\emacs> meadow.exe -batch -q --no-site-file -eval "(byte-compile-file \"erlang-start.el\")"

続いて,みなさんの .emacs に次を付け加えてください.

;;; Erlang
(setq erlang-root-dir "C:/Program Files/erlX.Y.Z")
(setq load-path (cons (concat erlang-root-dir "/lib/tools-x.y.z/emacs")
                      load-path))
(setq exec-path (cons (concat erlang-root-dir "/bin")
                      exec-path))
(require 'erlang-start)