summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/ledger-mode.texi5
-rw-r--r--lisp/ledger-mode.el1
2 files changed, 6 insertions, 0 deletions
diff --git a/doc/ledger-mode.texi b/doc/ledger-mode.texi
index c8af96cb..e81045c6 100644
--- a/doc/ledger-mode.texi
+++ b/doc/ledger-mode.texi
@@ -175,6 +175,11 @@ typing a close match to the payee. Ledger-mode will call @command{ledger
xact} with the data you enter and place the transaction in the proper
chronological place in the ledger.
+To complete just the part of the transaction where your cursor is at,
+Ledger-mode supports Emacs' universal @command{completion-at-point}
+command. You may bind this command to @kbd{C-M-i} since this is the
+default for Emacs programming modes.
+
@node Reconciliation, Reports, Quick Add, Quick Demo
@subsection Reconciliation
@kindex C-c C-r
diff --git a/lisp/ledger-mode.el b/lisp/ledger-mode.el
index 209f970e..0d683168 100644
--- a/lisp/ledger-mode.el
+++ b/lisp/ledger-mode.el
@@ -325,6 +325,7 @@ With a prefix argument, remove the effective date. "
'ledger-parse-arguments)
(set (make-local-variable 'pcomplete-command-completion-function)
'ledger-complete-at-point)
+ (add-to-list 'completion-at-point-functions 'pcomplete-completions-at-point)
(add-hook 'post-command-hook 'ledger-highlight-xact-under-point nil t)
(add-hook 'before-revert-hook 'ledger-occur-remove-all-overlays nil t)