Now Playing Tracks

Emacs + Rope for Python Development

screenshot

Disclaimer: This is more of a note for myself than a proper tutorial or howto, so I make no promises that this will work for you. The setup used through this post was a Mac OS laptop upgraded to the very latest version of the OS.

Ever since I started doing Python development using Emacs, I have unsuccessfully tried to configure Rope, "a python refactoring library"… until last Friday. Turns out I wasn’t too far off the mark during the many iterations I went through to get it done, but the following post was tremendously helpful to me: http://www.saltycrane.com/blog/2010/05/my-emacs-python-environment/

Here’s what worked for me:

Now configure Emacs by adding the following lines to your init.el file:

(require ‘pymacs)
(pymacs-load “ropemacs” “rope-“)
(setq ropemacs-enable-autoimport t)

Finally, start up Emacs and make sure to read this document for some examples on how to use Rope.

blog comments powered by Disqus
To Tumblr, Love Pixel Union