Install jedi-mode in emacs

Today, I have went through rather complicated process of installing jedi-mode in emacs. I post here what worked for me. First of all, make sure you run recent emacs (24+) and then follow:
[bash]
# install python-virtualenv
sudo apt-get install python-virtualenv

# run emacs, enable MELPA repository, refresh packages and install jedi-mode
emacs
M-: (add-to-list ‘package-archives'("melpa" . "http://melpa.org/packages/") t)
M-x package-refresh-contents [RET]
M-x package-install [RET] jedi [RET]

# install python server
M-x jedi:install-server

# add below lines to ~/.emacs.d/init.el & restart emacs
;; Standard Jedi.el setting
(add-hook ‘python-mode-hook ‘jedi:setup)
(setq jedi:complete-on-dot t)
[/bash]

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s