summaryrefslogtreecommitdiff
path: root/lisp/ledger.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-11 20:36:33 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-11 20:36:33 -0400
commitb9a96e9c0da9acd33967e4b6282af7aa5d9469f9 (patch)
treef521c76189dbd5c5c1db79ccb2247eebbae0c05a /lisp/ledger.el
parente446b0077e00e4e90e1b28d61c9e1e9315525584 (diff)
downloadledger-b9a96e9c0da9acd33967e4b6282af7aa5d9469f9.tar.gz
ledger-b9a96e9c0da9acd33967e4b6282af7aa5d9469f9.tar.bz2
ledger-b9a96e9c0da9acd33967e4b6282af7aa5d9469f9.zip
Allow the use of days of the week to "entry", e.g: "thu kfc 11".
Diffstat (limited to 'lisp/ledger.el')
-rw-r--r--lisp/ledger.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/ledger.el b/lisp/ledger.el
index 7021c7df..d5b04712 100644
--- a/lisp/ledger.el
+++ b/lisp/ledger.el
@@ -1080,6 +1080,9 @@ the default."
((looking-at "^\\s-+\\([*!]\\s-+\\)?[[(]?\\(.\\)")
(goto-char (match-beginning 2))
'transaction)
+ ((looking-at "^\\(sun\\|mon\\|tue\\|wed\\|thu\\|fri\\|sat\\)\\s-+")
+ (goto-char (match-end 0))
+ 'entry)
(t
(ignore (goto-char here))))))