all repos — nixfiles @ e314ff32e87451b9574b4b762986e37b42f0fd24

System and user configuration, managed by nix and home-manager

Emacs: remove ledger-mode configuration
Alan Pearce alan@alanpearce.eu
Wed, 30 Aug 2023 07:02:13 +0200
commit

e314ff32e87451b9574b4b762986e37b42f0fd24

parent

efb3202e34e9a3b6fde26918d9e18706f5559dec

1 files changed, 0 insertions(+), 28 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -376,7 +376,6 @@ (setq-default evil-shift-width 2)             (setq evil-mode-line-format nil)
             (evil-set-undo-system 'undo-redo)
             (add-to-list 'evil-emacs-state-modes 'eshell-mode)
-            (add-to-list 'evil-emacs-state-modes 'ledger-reconcile-mode)
             (evil-mode +1))
   :general
   (:states 'motion
@@ -827,33 +826,6 @@ :defer t) 
 (use-package kubel-evil
   :ghook 'kubel-mode-hook)
-
-;;;; ledger
-
-(use-package ledger-mode
-  :gfhook '(ledger-flymake-enable ws-butler-mode)
-  :defer t
-  :config (progn
-            (setq ledger-reconcile-default-commodity "€"
-                  ledger-narrow-on-reconcile t
-                  ledger-clear-whole-transactions t
-                  ledger-reports `(("Monthly Expenses" "ledger -f %(ledger-file) reg -M \\^Expenses --real -X EUR -l \"payee != 'Opening Balances'\"")
-                                   ("Total Expenses:This Month" "ledger -f %(ledger-file) bal \\^Expenses -p \"this month\"")
-                                   ("Total Expenses:Past 90 Days" ,(concat "ledger -f %(ledger-file) balance ^Expenses -b "
-                                                                           (format-time-string "%Y-%m-%d" (time-add (current-time) (days-to-time -90)))))
-                                   ("Total Expenses:Past 180 Days" ,(concat "ledger -f %(ledger-file) balance ^Expenses -b "
-                                                                            (format-time-string "%Y-%m-%d" (time-add (current-time) (days-to-time -180)))))
-                                   ("Expenses:This Month" "ledger -f %(ledger-file) register \\^Expenses -p \"this month\"")
-                                   ("Expenses:Past 90 Days (monthly)" ,(concat "ledger -f %(ledger-file) register --monthly ^Expenses -b "
-                                                                               (format-time-string "%Y-%m-%d" (time-add (current-time) (days-to-time -90)))))
-                                   ("Expenses:Past 180 Days (monthly)" ,(concat "ledger -f %(ledger-file) register --monthly ^Expenses -b "
-                                                                                (format-time-string "%Y-%m-%d" (time-add (current-time) (days-to-time -180)))))
-                                   ("All Account Balances" "ledger -f %(ledger-file) bal --current -R \\^Assets \\^Liabilities")))))
-
-
-(use-package evil-ledger
-  :after ledger-mode
-  :ghook '(ledger-mode-hook))
 
 ;;;; org