现在的位置: 首页 > 综合 > 正文

emacs for Python

2011年01月19日 ⁄ 综合 ⁄ 共 618字 ⁄ 字号 评论关闭

1. YASnippet

2. AutoComplete

3. rope

pip install rope

4. pymacs

(1) make install
(2) 然后将编译出来的pymacs.el拷贝到load path中
(3)或者字节编译它:
启动 emacs, 执行
M-x byte-compile-file RET pymacs.el RET
此命令将生成 pymacs.elc 文件。
可以通过如下方法检验是否安装正确.
启动 emacs, 执行
M-x load-library RET pymacs RET

5. pycomplete

(1). 拷贝 python-mode.el and pycomplete.el 到Emacs的load_path中。

(2). 拷贝 pycomplete.pyPYTHONPATH (比如: c:/python25/Lib/site-packages)

(3). .emacs中添加:

(require 'pycomplete)
(setq auto-mode-alist (cons '("\\.py$" . python-mode) auto-mode-alist))
(autoload 'python-mode "python-mode" "Python editing mode." t)
(setq interpreter-mode-alist(cons '("python" . python-mode)
                           interpreter-mode-alist))

抱歉!评论已关闭.