summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2011-12-21 12:44:24 -0800
committerJohn Wiegley <johnw@newartisans.com>2011-12-21 12:44:24 -0800
commitbf9ca8135472335ad6d0e2c200202d0ab19d0b54 (patch)
tree631ab2578d2b862de913e4d5d3ccfdcf116cb53d
parentdedf04aa43802155f0874d34047ffaa6aa05672b (diff)
parentef5283d7f2dbc1a9fa7228e9877bcf1fca547ef0 (diff)
downloadfork-ledger-bf9ca8135472335ad6d0e2c200202d0ab19d0b54.tar.gz
fork-ledger-bf9ca8135472335ad6d0e2c200202d0ab19d0b54.tar.bz2
fork-ledger-bf9ca8135472335ad6d0e2c200202d0ab19d0b54.zip
Merge pull request #49 from kennym/next
Add easy-menu for Emacs-mode
-rw-r--r--lisp/ledger.el18
1 files changed, 18 insertions, 0 deletions
diff --git a/lisp/ledger.el b/lisp/ledger.el
index 2d15f090..56bc33cd 100644
--- a/lisp/ledger.el
+++ b/lisp/ledger.el
@@ -1316,6 +1316,24 @@ end of a ledger file which is included in some other file."
(expand-file-name ledger-master-file)
(buffer-file-name)))
+(easy-menu-define ledger-menu ledger-mode-map
+ "Ledger menu"
+ '("Ledger"
+ ["New entry" ledger-add-entry t]
+ ["Toggle cleared status of current entry" ledger-toggle-current-entry t]
+ ["Set default year for entry" ledger-set-year t]
+ ["Set default month for entry" ledger-set-month t]
+ "--"
+ ["Reconcile uncleared entries for account" ledger-reconcile t]
+ "--"
+ "Reports"
+ ["Run a report" ledger-report t]
+ ["Go to report buffer" ledger-report-goto t]
+ ["Edit defined reports" ledger-report-edit t]
+ ["Save report definition" ledger-report-save t]
+ ["Re-run ledger report" ledger-report-redo t]
+ ["Kill report buffer" ledger-report-kill t]))
+
(provide 'ledger)
;;; ledger.el ends here