win7下erlang开发环境EmacsW32+Distel

1.下载软件
· EmacsW32 http://www.ourcomments.org/cgi-bin/emacsw32-dl-latest.pl下载页面 选择 Download latest EmacsW32+Emacs patched ~
· Distel http://sourceforge.net/projects/distel/下载页面
· Erlang OTP http://www.erlang.org/download.html下载页面
2.安装
emacs解压 Distel解压到emacs下的lib Erlang 安装最好路径不要空格
配置:系统盘下:\\Users\你的用户名\AppData\Roaming下的.emacs,加入以下內容
其中的路径与版本需要修改

;; Erlang mode
(setq load-path (cons "C:/erl5.8.5/lib/tools-2.6.6.5/emacs" load-path))
(setq erlang-root-dir "C:/erl5.8.5")
(setq exec-path (cons "C:/erl5.8.5/bin" exec-path))
(require 'erlang-start)



;; Distel
(let ((distel-dir "C:/erl5.8.5/lib/distel-4.03/elisp"))
(unless (member distel-dir load-path)
(setq load-path (append load-path (list distel-dir)))))
(require 'distel)
(distel-setup)



;; Some Erlang customizations
(add-hook 'erlang-mode-hook
(lambda ()
;; when starting an Erlang shell in Emacs, default in the node name
(setq inferior-erlang-machine-options '("-sname" "emacs"))
;; add Erlang functions to an imenu menu
(imenu-add-to-menubar "imenu")))
;; A number of the erlang-extended-mode key bindings are useful in the shell too
(defconst distel-shell-keys
'(("/C-/M-i" erl-complete)
("/M-?" erl-complete)
("/M-." erl-find-source-under-point)
("/M-," erl-find-source-unwind)
("/M-*" erl-find-source-unwind)
)
"Additional keys to bind when in Erlang shell.")
(add-hook 'erlang-shell-mode-hook
(lambda ()
;; add some Distel bindings to the Erlang shell
(dolist (spec distel-shell-keys)
(define-key erlang-shell-mode-map (car spec) (cadr spec)))))


3.然后打开emacs,打开erl文件,菜单栏多了Erlang可以编译调试了
copy程序试试
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值