Commits

Takafumi Arakaki committed 1b77714 Merge

merged

Comments (0)

Files changed (1)

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