Emacs: jedi package

This article will describe using jedi package which provides auto complete for python.

1 Install jedi package

After installing auto-complete package, install jedi package with M-x package-list-packages.

jedi  0.2.5  installed  a Python auto-completion for Emacs

2 Install virtualenv

Install virtualenv with pip.

$ sudo pip install virtualenv

3 Install jediserver

Install jediserver to python library.

$ sudo pip install --upgrade ~/.emacs.d/elpa/jedi-core-0.2.5

4 ${HOME}/.emacs

Load jedi with require. Add jedi to python-mode-hook.

(require 'jedi)
(add-hook 'python-mode-hook
             (setq jedi:complete-on-dot t)
             (local-set-key (kbd "M-TAB") 'jedi:complete)))

5 Execution result

Enable auto complete with M-TAB.