Emacs-for-python 增强计划
最新一直在使用这个emacs-for-python的包: gabrielelanaro/emacs-for-python - GitHub - https://github.com/gabrielelanaro/emacs-for-python
它集成了很多功能:
- Ropemacs (Custom) : A refactoring library
- Auto Completion with rope (Custom) : Tested to work well with Rope
- Flymake + pyflakes (Custom): Highlight errors on the fly, improved from the standard version
- Virtualenv : Original, In-development tool for using virtualenv in emacs.
- Custom Yasnippet Snippets
- Cython Mode: a mode for highlighting cython files
但我使用中我觉得还有必要添加一些东西,比如:
- 文件内代码浏览
- highlight-indentation
- 方法、函数跳转
- anything-imenu/anything-browse-code
- 代码折叠
- hideshowvis/hideshow-fringe
- outline配置一下python下的outline-regexp
- 代码静态检查: pep8/pylint/pyflakes/pychecker (epy已经支持pep8/pyflakes/pylint的flymake模式了)
- 代码补全
- ropemacs放在auto-complete里面太慢了,增加一个开关,缺省关闭。反正ropemacs也支持用按键触发补全
- yasnippets也增加一个开关? django单独支持?
- 集成我的scite-api补全
- 其它补全方式还有必要合进去么(py-complete, pycomplete, anything-ipython)? (参见: [emacs] Python代码补全的各种方法介绍以及对比)
- 文档查询
- eldoc-mode (但python-mode.el不支持,官方python-mode和新第三方python.el都支持)
- pylookup?
- python.chm (仅Windows,通过keyhh支持)
- Linux下有没有什么好方法? devhelp 似乎没有python
- 运行/调试
- ipython?
- pydb etc
- 其它
- eproject (目的?)
- pysmell 似乎也没有更多的吸引力
- iedit mode
另外,当前这个emacs-for-python里面改作者的个人偏好太多,比如autopair等设置,尤其是键绑定,我也想将它们挪到epy-custom.el 去。
不过,当前的主要问题是时间比较少,只能先将想法记录在这里了。