Now Playing Tracks

Emacs + Rope for Python Development


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:

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

1 note

  1. myqflee reblogged this from ogmaciel
  2. ogmaciel posted this
We make Tumblr themes