[finance] Fix up evil-ledger mode initialization (#15816)
* [finance] Fix incorrectly-defined hook This was preventing evil-ledger from being automatically loaded. * [finance] Don't show evil-ledger-mode lighter in mode line
This commit is contained in:
parent
266b5b6379
commit
2f190e5ae7
1 changed files with 4 additions and 1 deletions
|
@ -45,7 +45,10 @@
|
|||
(defun finance/init-evil-ledger ()
|
||||
(use-package evil-ledger
|
||||
:defer t
|
||||
:init (add-hook 'ledger-mode 'evil-ledger-mode)))
|
||||
:init (add-hook 'ledger-mode-hook 'evil-ledger-mode)
|
||||
:config
|
||||
;; Unset evil-ledger-mode's lighter
|
||||
(setf (cadr (assoc 'evil-ledger-mode minor-mode-alist)) "")))
|
||||
|
||||
(defun finance/init-ledger-mode ()
|
||||
(use-package ledger-mode
|
||||
|
|
Reference in a new issue