From 316b1b7cfefbc3d65994f518df39545ef74f6879 Mon Sep 17 00:00:00 2001 From: 4ourbit <4ourbit@gmail.com> Date: Wed, 1 Jan 2014 22:00:26 +0100 Subject: Plugging ledger pcomplete into completion-at-point. Added documentation on how to use pcomplete transparently via completion-at-point. --- lisp/ledger-mode.el | 1 + 1 file changed, 1 insertion(+) (limited to 'lisp') 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) -- cgit v1.2.3