Re:Why Write Python in Visual Studio?
by S4M on Monday August 03, 2015 @05:08PM
(#9999826)
I use emacs with jedi too, but the auto-completion is not so good. For example, if my code is:
And I get two auto-completion choices: variable1 and variable2, while only variable2 is logical.
[ Parent
| on HN ]
I just tried this example, since anaconda-mode + company (which uses jedi) has been really good for me, it doesn't show variable1 for me.
I used to use the auto-complete package instead, which in some configs (with ac-source-words-in-buffer or ac-source-words-in-same-mode-buffers in the source list) basically tokenize the buffer and provide autocomplete on all words.
Thank you, I gonna check my settings. This bad autocomplete thing has been a mild annoyance for a while.
Yea, the switch from auto-complete to company mode was annoying to get done right, but was well worth it in terms of accuracy. It also provides function signatures which my old setup didn't. I also switched to using virtualenv mode as well.
I can probably try and dig up the relevant part of my config, but since I'm using prelude as a base now it mostly just works with only a few lines of tweaking in my personal.el -- mostly just virtualenv locations and enabling virtualenv mode with a hook.