Source

ropemacs / ropemacs / __init__.py

The trunk branch has multiple heads

Diff from to

File ropemacs/__init__.py

     occurrences_goto()
 occurrences_next.interaction = ''
 
+def turn_on():
+    """Turn on ropemacs-mode."""
+    lisp.ropemacs_mode(True)
+turn_on.interaction = ''
+
+def turn_off():
+    """Turn off ropemacs-mode."""
+    lisp.ropemacs_mode(False)
+turn_off.interaction = ''
+
 
 DEFVARS = """\
 (defgroup ropemacs nil
         for key, command in shortcuts:
             LispUtils()._bind_local(command, key)
 
-    lisp.add_hook(lisp['python-mode-hook'], lisp['ropemacs-mode'])
+    lisp.add_hook(lisp['python-mode-hook'], lisp['rope-turn-on'])
 
 def _started_from_pymacs():
     import inspect