Emacs 23和iPython
题
有没有人使用iPython和emacs 23? emacs wiki上的文档有点混乱,我有兴趣听到任何使用emacs进行Python开发的人。你使用下载python-mode和ipython.el吗?你推荐什么?
解决方案
我使用emacs 23可以很好地工作。唯一的问题是在将缓冲区发送到iPython解释器之后,焦点不会返回到python缓冲区。
http://www.emacswiki.org/emacs/PythonMode#toc10
(setq load-path
(append (list nil
"~/.emacs.d/python-mode-1.0/"
"~/.emacs.d/pymacs/"
"~/.emacs.d/ropemacs-0.6"
)
load-path))
(setq py-shell-name "ipython")
(defadvice py-execute-buffer (around python-keep-focus activate)
"return focus to python code buffer"
(save-excursion ad-do-it))
(setenv "PYMACS_PYTHON" "python2.5")
(require 'pymacs)
(pymacs-load "ropemacs" "rope-")
(provide 'python-programming)
其他提示
我从未使用它,但我确实关注了ipython邮件列表,并且有一个主题。
也许这会有所帮助
http://lists.ipython.scipy .ORG / pipermail / IPython的用户/ 2008-九月/ 005791.html
如果遇到麻烦,它也是一个非常敏感的邮件列表。
我在python开发中使用了ipython和emacs cvs(现在已经有一段时间了)。但是,我反过来使用它:我通过$ EDITOR环境变量从ipython promt调用emacs。我反过来试了一下,但是对所有的过程缓冲区都有点厌倦了。
Emacs非常棒,但是命令行更加通用。
不隶属于 StackOverflow