Make sure the keymaps are set for ledger-mode.

Found in some cases that the major mode leader bindings were not set
until switching to holy mode and back.  This hook makes sure that isn't
necessary.
This commit is contained in:
Travis B. Hartwell 2016-01-04 07:17:07 -07:00 committed by syl20bnr
parent cacc893c1d
commit 7fc743d255

View file

@ -45,6 +45,10 @@
"t" 'ledger-insert-effective-date
"y" 'ledger-set-year
"RET" 'ledger-set-month)
;; temporary hack to work-around an issue with evil-define-key
;; more info: https://bitbucket.org/lyro/evil/issues/301/evil-define-key-for-minor-mode-does-not
;; TODO remove this hack if the limitation is removed upstream
(add-hook 'ledger-mode-hook 'evil-normalize-keymaps)
(evilified-state-evilify ledger-report-mode ledger-report-mode-map))))
(when (configuration-layer/layer-usedp 'auto-completion)