1. Vedang Manerikar
  2. ropemacs

Commits

Ali Gholami Rudi  committed 494ad85

ropemacs: adding python-mode-hook after loading interface

  • Participants
  • Parent commits 5665043
  • Branches default

Comments (0)

Files changed (2)

File ropecommon/interface.py

View file
             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):

File ropemacs.py

View file
 _register_functions(_interface)
 _interface.init()
 lisp(MINOR_MODE)
+lisp.add_hook(lisp['python-mode-hook'], lisp['ropemacs-mode'])