summaryrefslogtreecommitdiff
path: root/lisp/ldg-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/ldg-mode.el')
-rw-r--r--lisp/ldg-mode.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ldg-mode.el b/lisp/ldg-mode.el
index 4754e423..a2c87048 100644
--- a/lisp/ldg-mode.el
+++ b/lisp/ldg-mode.el
@@ -60,6 +60,9 @@ customizable to ease retro-entry.")
'ledger-complete-at-point)
(set (make-local-variable 'pcomplete-termination-string) "")
+ (add-hook 'post-command-hook 'ledger-highlight-xact-under-point nil t)
+ (make-variable-buffer-local 'highlight-overlay)
+
(let ((map (current-local-map)))
(define-key map [(control ?c) (control ?a)] 'ledger-add-entry)
(define-key map [(control ?c) (control ?d)] 'ledger-delete-current-entry)
@@ -98,6 +101,9 @@ customizable to ease retro-entry.")
(define-key map [sep5] '(menu-item "--"))
(define-key map [set-month] '(menu-item "Set Month" ledger-set-month :enable ledger-works))
(define-key map [set-year] '(menu-item "Set Year" ledger-set-year :enable ledger-works))
+ (define-key map [cust] '(menu-item "Customize Ledger Mode" (lambda ()
+ (interactive)
+ (customize-group 'ledger))))
(define-key map [sep1] '("--"))
(define-key map [sort-buff] '(menu-item "Sort Buffer" ledger-sort-buffer))
(define-key map [sort-reg] '(menu-item "Sort Region" ledger-sort-region :enable mark-active))
@@ -111,8 +117,7 @@ customizable to ease retro-entry.")
(define-key map [add-xact] '(menu-item "Add Entry" ledger-add-entry :enable ledger-works))
(define-key map [sep3] '(menu-item "--"))
(define-key map [reconcile] '(menu-item "Reconcile Account" ledger-reconcile :enable ledger-works))
- (define-key map [reconcile] '(menu-item "Hide Xacts" ledger-occur))
- ))
+ (define-key map [reconcile] '(menu-item "Hide Xacts" ledger-occur))))
(defun ledger-time-less-p (t1 t2)
"Say whether time value T1 is less than time value T2."