简体   繁体   English

Emacs python自动完成

[英]Emacs python autocompletion

I've installed python-mode, pymacs and pycomplete+ from el-get on emacs24. 我在emacs24上安装了el-get的python-mode,pymacs和pycomplete +。 But i am not able to get auto-completion for python in emacs. 但我无法在emacs中获得python的自动完成功能。

I'd recommend you to try emacs-jedi . 我建议你试试emacs-jedi The author is really trying to bring the best Python autocompletion experience to Emacs. 作者真的试图为Emacs带来最好的Python自动完成体验。 (It uses the Jedi autocompletion library). (它使用Jedi自动完成库)。

There are ways to hook ropemacs up as an auto-complete source, but as far as I know it's not provided "by default" in any of these packages. 有一些方法可以将ropemacs挂钩作为自动完成源,但据我所知,在任何这些包中都没有提供“默认”。 You might try this in your .emacs , this is a snippet I've used successfully 您可以在.emacs尝试这个, 这是我成功使用的一个片段

From what I'm reading this package completion that's more simple to configure. 我正在阅读的这个包完成,更简单的配置。

bzr branch lp:python-mode/components-python-mode bzr branch lp:python-mode / components-python-mode

ie the development branch of python-mode.el delivering an inlined Pymacs provides auto-completion right out of the box for me 即python-mode.el的开发分支,提供内联的Pymacs,为我提供开箱即用的自动完成功能

Might conflict with an already installed Pymacs though 可能与已安装的Pymacs发生冲突

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM