简体   繁体   中英

Drop-Down Autocompletion in Emacs' Python-Mode

I have installed python-mode and have auto-complete working with M-Tab , but when I execute it, the possible completions end up in my other open frame. Is there a way to get emacs to,

  1. Use a dropdown menu to show me potential completions (or a Vim-style quick-fix frame)
  2. Automatically fill in potential completions as I press M-tab over and over?

EDIT: After a bit of surfing I've realized that auto-complete is the plugin I'm looking for (at least with respect to drop-down menus), but I'm still not sure how to get python-mode 's candidate detection into auto-complete. I tried ac-python , but it seems like it was freezing emacs...

https://github.com/auto-complete的作者之一也在创建emacs-jedi ,它基本上是Emacs中Python的自动完成(它使用Jedi自动完成库)。

M-TAB does complete, not auto-complete. "Auto" means no key is needed. Auto-completion is delivered by several environments, mostly either based on company-mode or auto-complete.el

http://gabrielelanaro.github.com/emacs-for-python , the latter

https://github.com/pdee/pdee , Pymacs/company based

or via bazaar, also Pymacs/company based

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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