[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:
Aaron Zeng 2022-11-16 10:46:36 -05:00 committed by GitHub
parent 266b5b6379
commit 2f190e5ae7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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