我尝试将%edit编辑器设置为Emacs有一段时间了,但进展非常缓慢。
IPython 0.13文档不清楚如何实际配置它。它告诉我通过添加
c = get_config()
c.InteractiveShell.editor = 'emacsclient'
到我的ipython文件夹中的配置。
但是,我找不到这样的文件夹。我花了很长时间到处寻找如何设置IPython环境变量,只找到了相关的片段。使用什么代码。启动脚本的.py和.ipy文件之间的区别。等等
我正在使用Ubuntu12.10。我应该把IPython 0.13的配置文件放在哪里?
我有
c.TerminalInteractiveShell.editor = 'emacsclient'
在~/.config/ipython/profile_default/ipython_config.py
中,它工作正常。如果找不到配置位置,请使用
ipython locate profile
命令: http://ipython.org/ipython-doc/rel-0.13/whatsnew/version0.13.html#new-top-level-locate-command但我认为设置编辑器的最简单方法是在您的shell设置中使用类似于
export EDITOR=emacsclient
的内容(例如~/.bashrc
)。相关问题 更多 >
编程相关推荐