Commits

Ali Gholami Rudi  committed fcd21a7

ropemacs: moved keybindings to ropemacs module

  • Participants
  • Parent commits a457bb0

Comments (0)

Files changed (1)

File rope/contrib/ropemacs.py

 
     def init(self):
         """Initialize rope mode"""
-        #lisp.global_set_key(lisp.kbd('C-c r r'), lisp.rope_rename)
         lisp.add_hook(lisp.before_save_hook,
                       lisp.rope_before_save_actions)
         lisp.add_hook(lisp.after_save_hook,
                       lisp.rope_after_save_actions)
         lisp.add_hook(lisp.kill_emacs_hook,
                       lisp.rope_exiting_actions)
+        lisp.global_set_key('\x03g', lisp.rope_goto_definition)
+        lisp.global_set_key('\x03rr', lisp.rope_rename)
+        lisp.global_set_key('\x03rl', lisp.rope_extract_variable)
+        lisp.global_set_key('\x03rm', lisp.rope_extract_method)
+        lisp.global_set_key('\x03ri', lisp.rope_inline)
 
     def before_save_actions(self):
         if self.project is not None:
 exiting_actions = interface.exiting_actions
 
 goto_definition = interface.goto_definition
+