emacs python code completion

Possible Duplicate:
Emacs - tab-completion of local Python variables

Ok I am getting very confused about this.

What I want is code completion for:

  • The current file (even all open buffers)
  • Any module that is imported in the current file
  • Standard libraries
  • (yes I have been spoiled by intelli-sense)

    What do I need to achieve this?

    I'm just really confused as there seem to be countless plugins for code completion, just have no idea which ones I need/want.

    Please don't suggest another editor/ide. I know a lot of them have this out of the box, but I really like emacs.

    Thanks in advance.


    Update : I strictly use melpa package manager now, I install auto-complete from there. It is easier. I do not use this method below anymore.


    I use autocomplete (docs, installation instruction)

    You can install it via make (I used this), or by executing install.el , or manual installation (byte compiling)

    You'll be required to add something to your init.el

    ;;load the auto complete path here, if you havent done it
    (add-to-list 'ac-dictionary-directories "~/.emacs.d/ac-dict")
    (require 'auto-complete-config)
    (ac-config-default)
    

    I dont know if there's any tool beside this, but so far this is good enough for me.

    Note: this is for auto completion only. If you want a full blown IDE capability you can try those links on comment posted by huitseeker

    链接地址: http://www.djcxy.com/p/53622.html

    上一篇: Python hash()不能处理长整数?

    下一篇: emacs python代码完成