summary refs log tree commit diff stats
path: root/tag-emacs/emacs.d
diff options
context:
space:
mode:
authorAlan Pearce2016-06-25 22:51:26 +0200
committerAlan Pearce2016-06-25 22:51:26 +0200
commit32c46b315483ec2f58f14acd5cc3d9145c65c65c (patch)
tree3baba2c2827120b48d868ebd098cd65ef839ad2e /tag-emacs/emacs.d
parent6445538807f6a08316eed74fbee4c1daca188b49 (diff)
downloadnixfiles-32c46b315483ec2f58f14acd5cc3d9145c65c65c.tar.lz
nixfiles-32c46b315483ec2f58f14acd5cc3d9145c65c65c.tar.zst
nixfiles-32c46b315483ec2f58f14acd5cc3d9145c65c65c.zip
Emacs: add command to open budget
Diffstat (limited to 'tag-emacs/emacs.d')
-rw-r--r--tag-emacs/emacs.d/init.org5
1 files changed, 5 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index 18bf622c..054fe673 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -1387,6 +1387,11 @@ works really nicely.
               (defun setup-ledger-mode ()
                 (setq-local indent-tabs-mode nil))
               (add-hook 'ledger-mode-hook #'setup-ledger-mode)
+              (defun open-budget ()
+                (interactive)
+                (projectile-persp-switch-project "~/Sync")
+                (find-file (expand-file-name "ledger/my.ledger" (projectile-project-root)))
+                (ledger-report "Budget (Cumulative)" nil))
               (setq ledger-use-iso-dates t
                     ledger-post-use-completion-engine :built-in
                     ledger-reconcile-default-commodity "€"