Moved and updated ledger-mode to contain better reports

This commit is contained in:
Jaden Provost Maxwell-Comfort 2024-04-09 15:36:23 -07:00
parent 284a9e0a57
commit cef48794df
2 changed files with 17 additions and 12 deletions

View File

@ -416,6 +416,23 @@ The Emacs dashboard package provides a nice dashboard when first starting up ema
(dashboard-setup-startup-hook)) (dashboard-setup-startup-hook))
#+end_src #+end_src
** Ledger
Ledger is a Unix program that implements a finance tracking system or /ledger/. To implement this into emacs, you can install the ~ledger-mode~ emacs package.
#+begin_src emacs-lisp
(use-package ledger-mode
:mode ("\\.ledger\\'")
:config
(setq ledger-report-use-strict t
ledger-master-file (file-truename "~/Dropbox/Ledger/toc.ledger")
ledger-accounts-file (file-truename "~/Dropbox/Ledger/accounts.ledger"))
(setq ledger-reports `(("balance" ,(format "%%(binary) -f %s bal" ledger-master-file))
("budget" ,(format "%%(binary) -f %s --budget -p 'this month' bal Expenses" ledger-master-file))
("account" ,(format "%%(binary) -f %s reg %%(account)" ledger-master-file))
("relative balance" "%(binary) -f %(ledger-file) bal"))))
#+end_src
** MacOS Environment Fix ** MacOS Environment Fix
When using emacs on MacOS, the environment variables are not synced properly and therefore require a separate package to fix this. In this case, this package is the ~exec-path-from-shell~. When using emacs on MacOS, the environment variables are not synced properly and therefore require a separate package to fix this. In this case, this package is the ~exec-path-from-shell~.

View File

@ -195,18 +195,6 @@ To install the corresponding LSP, you need to install ~yls~. Using the command ~
:hook (lsp-literate-mode . lsp-deferred)) :hook (lsp-literate-mode . lsp-deferred))
#+end_src #+end_src
** Ledger
Ledger is a Unix program that implements a finance tracking system or /ledger/. To implement this into emacs, you can install the ~ledger-mode~ emacs package.
#+begin_src emacs-lisp
(use-package ledger-mode
:mode ("\\.ledger\\'")
:config
(setq ledger-report-use-strict t
ledger-accounts-file (file-truename "~/Dropbox/Ledger/accounts.ledger")))
#+end_src
** Ebuild ** Ebuild
Ebuild is the language used for Gentoo packages installed with the ~emerge~ utility. As this package is Gentoo specific, you will have to install it the command below: Ebuild is the language used for Gentoo packages installed with the ~emerge~ utility. As this package is Gentoo specific, you will have to install it the command below: