I am using emacs with elpy as mode for working with python code. I have also installed Jedi for, mainly, two things: go to definition functionality it provides and autocompletion.
However, I have run into the following problems with this setup:
C-M-i
.Is there any way to setup things so that i will have autocompletion from a single source with jedi backend and jedi's go to definition?
This is how i currently setup jedi in my init.el
:
(add-hook 'python-mode-hook 'jedi:setup)
(setq jedi:complete-on-dot t)
According to the document of elpy, you just need to install elpy package. Then use the config below
(elpy-enable) (setq elpy-rpc-backend "jedi")
That's all. You can visit https://github.com/jorgenschaefer/elpy for more information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With