有没有人使用 iPython 和 emacs 23? emacs wiki 上的文档有点困惑,我很想听听任何使用 emacs 进行 Python 开发的人的意见。你使用下载的python-mode和ipython.el吗?你有什么推荐的?
最佳答案
我让它在 emacs 23 上运行得很好。唯一 Unresolved 问题是焦点在将缓冲区发送到 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)
关于python - Emacs 23 和 iPython,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/304049/