Skip to content

Commit

Permalink
Merge pull request ledger#459 from atheriel/ledger-binary-format-spec…
Browse files Browse the repository at this point in the history
…ifier

Adds a "binary" format specifier to ledger-report.

I should have done this years ago.  Thank you.
  • Loading branch information
enderw88 authored Jul 16, 2016
2 parents 6dcb144 + 755cdfc commit 19e638b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lisp/ledger-report.el
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
:group 'ledger)

(defcustom ledger-reports
'(("bal" "ledger -f %(ledger-file) bal")
("reg" "ledger -f %(ledger-file) reg")
("payee" "ledger -f %(ledger-file) reg @%(payee)")
("account" "ledger -f %(ledger-file) reg %(account)"))
'(("bal" "%(binary) -f %(ledger-file) bal")
("reg" "%(binary) -f %(ledger-file) reg")
("payee" "%(binary) -f %(ledger-file) reg @%(payee)")
("account" "%(binary) -f %(ledger-file) reg %(account)"))
"Definition of reports to run.
Each element has the form (NAME CMDLINE). The command line can
Expand All @@ -60,6 +60,7 @@ specifier."

(defcustom ledger-report-format-specifiers
'(("ledger-file" . ledger-report-ledger-file-format-specifier)
("binary" . (lambda () ledger-binary-path))
("payee" . ledger-report-payee-format-specifier)
("account" . ledger-report-account-format-specifier)
("tagname" . ledger-report-tagname-format-specifier)
Expand Down

0 comments on commit 19e638b

Please sign in to comment.