summaryrefslogtreecommitdiff
path: root/lisp/ldg-mode.el
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2013-03-25 18:48:28 -0400
committerCraig Earls <enderw88@gmail.com>2013-03-25 18:48:28 -0400
commit48266d110758e54716177e5c87e33103247414a0 (patch)
treecdbcc569193ec9adb5aca4bcc5e3ed54153d1ace /lisp/ldg-mode.el
parent862a83e7927ed0d18e5d297801d28f82595bb2a5 (diff)
downloadfork-ledger-48266d110758e54716177e5c87e33103247414a0.tar.gz
fork-ledger-48266d110758e54716177e5c87e33103247414a0.tar.bz2
fork-ledger-48266d110758e54716177e5c87e33103247414a0.zip
Fix bug 928 Refix slow indent-region behavior.
Need to bing ledger-post-align-postings to indent-region-function, not indent-line-function, others it tries to align the entire region once for every line in the region.
Diffstat (limited to 'lisp/ldg-mode.el')
-rw-r--r--lisp/ldg-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ldg-mode.el b/lisp/ldg-mode.el
index b435ada2..1d587d63 100644
--- a/lisp/ldg-mode.el
+++ b/lisp/ldg-mode.el
@@ -92,7 +92,7 @@ Can be pcomplete, or align-posting"
(ledger-init-load-init-file)
- (setq indent-line-function 'ledger-post-align-postings)
+ (setq indent-region-function 'ledger-post-align-postings)
(let ((map (current-local-map)))
(define-key map [(control ?c) (control ?a)] 'ledger-add-transaction)