summaryrefslogtreecommitdiff
path: root/lisp/ldg-occur.el
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2013-04-06 23:13:49 -0700
committerCraig Earls <enderw88@gmail.com>2013-04-06 23:13:49 -0700
commit4df990014fede0c7b0c23396f32b1f2c7c636426 (patch)
treeec695fcacfffd67a6cb8e052830f433fdb8cd1b7 /lisp/ldg-occur.el
parent2f3053401a043495860d6d6ee1febe48c3b537aa (diff)
downloadfork-ledger-4df990014fede0c7b0c23396f32b1f2c7c636426.tar.gz
fork-ledger-4df990014fede0c7b0c23396f32b1f2c7c636426.tar.bz2
fork-ledger-4df990014fede0c7b0c23396f32b1f2c7c636426.zip
Fixed reconciliation initialization. Now prompts with only account, not status and amount
Moved context function to leg-context, from leg-report. Cleaned up many regex in ldg-context.
Diffstat (limited to 'lisp/ldg-occur.el')
-rw-r--r--lisp/ldg-occur.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/ldg-occur.el b/lisp/ldg-occur.el
index a2e53cb0..1e1308d0 100644
--- a/lisp/ldg-occur.el
+++ b/lisp/ldg-occur.el
@@ -59,6 +59,11 @@
"A list of currently active overlays to the ledger buffer.")
(make-variable-buffer-local 'ledger-occur-overlay-list)
+(defun ledger-remove-all-overlays ()
+ "Remove all overlays from the ledger buffer."
+ (interactive)
+ (remove-overlays))
+
(defun ledger-occur-mode (regex buffer)
"Highlight transactions that match REGEX in BUFFER, hiding others.