Skip to main content

An emacs mode for rope refactoring library

Project description

Using rope in emacs. You should install rope library before using ropemacs.

New Features

Just got started!

Setting Up

You can get Pymacs from http://www.iro.umontreal.ca/~pinard/pymacs/. But version 0.22 does not work with Python 2.5 because of the lack of file encoding declarations. A simple patch is included: docs/pymacs_python25.patch.

After installing pymacs, add these lines to your ~/.emacs file:

(load-library "pymacs")
(pymacs-load "ropemacs" "rope-")
(rope-init)

Keybinding

Uses almost the same keybinding as rope.

Key

Action

C-x p o

rope-open-project

C-x p k

rope-close-project

C-x p u

rope-undo-refactoring

C-x p r

rope-redo-refactoring

C-c r r

rope-rename

C-c r l

rope-extract-variable

C-c r m

rope-extract-method

C-c r i

rope-inline

C-c r v

rope-move

C-c r 1 r

rope-rename-current-module

C-c r 1 v

rope-move-current-module

C-c r 1 p

rope-module-to-package

C-c g

rope-goto-definition

C-c C-d

rope-show-doc

C-c i o

rope-organize-imports

Project details


Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page