Emacs 23和iPython [英] Emacs 23 and iPython

查看:126
本文介绍了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-nameipython)

defadvice py-execute-buffer(围绕python-keep-focus激活)
返回焦点到python代码缓冲区
(save-excursion ad-do-it))

(setenvPYMACS_PYTHONpython2.5)
(require'pymacs)

(pymacs-loadropemacsrope-)

蟒蛇-PRO克隆)


Is there anyone out there using iPython with emacs 23? The documents on the emacs wiki are a bit of a muddle and I would be interested in hearing from anyone using emacs for Python development. Do you use the download python-mode and ipython.el? What do you recommend?

解决方案

I got it working quite well with emacs 23. The only open issue is the focus not returning to the python buffer after sending the buffer to the iPython interpreter.

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)

这篇关于Emacs 23和iPython的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆