日期:2014-05-17  浏览次数:20846 次

Windows下Erlang开发环境--EmacsW32+Distel - [Erlang]【转】

2008-09-30

Tag:Erlang Emacs EmacsW32 Distel

版权声明 :转载时请以超链接形式标明文章原始出处和作者信息及本声明
http://andykwok.blogbus.com/logs/29779281.html

当前可以选择的Erlang IDE不多,以下有几个可供选择:
·?Erlide - Eclipse插件
·?Erlybird - Netbeans插件
·?Ultraedit - win32 文本编辑器 + 语法高亮
·?Emacs? Erlang mode -功能比较全面
??? 可能是因为主版本号都是0,前两者仍未算是成型产品。而Ultraedit并非IDE,只可以算是一个支持ERLANG语法高亮的文本编辑器。Emacs是当前功能最全的,但不竟是*NIX中的玩意,所以学习起来还是需要点时间.
??? 本文主要描述的是在Windows中安装Emacs Erlang mode,其它IDE请Google之:)

?


??? 1.所需软件
·?EmacsW32 下载页面 ?选择 Download latest EmacsW32+Emacs patched ~
·?Distel 下载页面
·?Erlang OTP? 下载页面 ?
??? 2.安装与配置
·?安装Erlang和EmacsW32,解压Distel~
·?Emacs erlang mode配置,修改系统盘下:\Documents and Settings\你的用户名\Application Data下的.emacs,加入以下內容~
;; 下页为Erlang mode 配置
(setq load-path (cons? "Erlang安装目录/lib/tools<版本号>/emacs"
load-path))
(setq erlang-root-dir "Erlang安装目录")
(setq exec-path (cons "Erlang安装目录/bin" exec-path))
(require 'erlang-start)
·?配置Distel
;; Distel 配置所需
(let ((distel-dir "Distel所在目录/elisp"))
? (unless (member distel-dir load-path)
;; 加入distel-dir 到load-path的后面
(setq load-path (append load-path (list distel-dir)))))
(require 'distel)
(distel-setup)


注意,路径不是用"\"而是用"/". ?

参考文档:
·?http://bc.tech.coop/blog/070528.html ?
·?http://blog.chinaunix.net/u1/37261/showart_475957.html

1 楼 drprise 2011-11-15  
兄弟,你在xp里建环境成功了吗?
为什么我的报警告?

Warning (initialization): An error occurred while loading `c:/Documents and Settings/drprise/Application Data/.emacs':

Symbol's function definition is void: distel-setup

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the `--debug-init' option to view a complete error backtrace.