summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2016-07-03 20:55:37 +0200
committerAlan Pearce2016-07-03 20:55:37 +0200
commit4777da182dd0ccbb36051e162e5265a8687144c0 (patch)
tree6c77cfb0a230338ea253019364878fb3dde9e5e6 /tag-emacs
parentb0cc9b365bfdb34f488e031b84482148aeb6d28a (diff)
downloaddotfiles-4777da182dd0ccbb36051e162e5265a8687144c0.tar.lz
dotfiles-4777da182dd0ccbb36051e162e5265a8687144c0.tar.zst
dotfiles-4777da182dd0ccbb36051e162e5265a8687144c0.zip
Fix open-budget command
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.org11
1 files changed, 6 insertions, 5 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index 054fe67..1718b8a 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -1383,15 +1383,16 @@ works really nicely.
 #+BEGIN_SRC emacs-lisp
   (use-package ledger-mode
     :mode ("\\.ledger\\'" . ledger-mode)
+    :init (progn
+            (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)))
     :config (progn
               (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 "€"