Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

emacs python code completion [duplicate]

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.

like image 535
Steinthor.palsson Avatar asked Jul 09 '11 00:07

Steinthor.palsson


1 Answers

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

like image 140
kusut Avatar answered Sep 30 '22 06:09

kusut