Commits

Ali Gholami Rudi  committed 347f979

ropemacs: adding python-mode-hook after loading interface

  • Participants
  • Parent commits 13ea168

Comments (0)

Files changed (2)

File ropecommon/interface.py

             if kind == 'hook':
                 hook = getattr(attr, 'hook', None)
                 lisp.add_hook(lisp[hook], lisp[_lisp_name(attr.name)])
-        lisp.add_hook(lisp['python-mode-hook'], lisp['ropemacs-mode'])
 
     def _prepare_refactorings(self):
         for name in dir(refactor):
 _register_functions(_interface)
 _interface.init()
 lisp(MINOR_MODE)
+lisp.add_hook(lisp['python-mode-hook'], lisp['ropemacs-mode'])