Commits

Anonymous committed 94f981c

bind the shortcuts only when ropemacs-enable-shortcuts is set

Reported by Yu-Xi Lim.

  • Participants
  • Parent commits 9295083

Comments (0)

Files changed (1)

File ropemacs/__init__.py

     _interface.init()
     lisp(MINOR_MODE)
 
-    for key, command in shortcuts:
-        LispUtils()._bind_local(command, key)
+    if _interface.get('enable_shortcuts'):
+        for key, command in shortcuts:
+            LispUtils()._bind_local(command, key)
 
     lisp.add_hook(lisp['python-mode-hook'], lisp['ropemacs-mode'])