erlang mode for emacs 配置
首先要安装erlang,其次要安装emacs。
我们以emacs作为erlang代码的编辑器。其可以提供很好的语法高亮,智能缩进,智能填充等功能。
首先在home目录下配置.emacs文件(如果没有需要创建),使其支持erlang mode
假设您的erlang的安装目录为/usr/lib/erlang,注意配置中涉及的目录,需要与您的安装环境相匹配。
:
;; setup erlang mode
;; add the location of the elisp files to the load-path
(setq load-path (cons “/usr/lib/erlang/lib/tools-2.5.5/emacs”
load-path))
;; set the location of the man page hierarchy
(setq erlang-root-dir “/usr/lib/erlang”)
;; add the home of the erlang binaries to the exec-path
(setq exec-path (cons “/usr/lib/bin” exec-path))
;; load and eval [...]