Function: hywiki-word-add-completion-at-point
hywiki-word-add-completion-at-point is a byte-compiled function
defined in hywiki.el.
Signature
(hywiki-word-add-completion-at-point)
Documentation
Add HyWiki refs in-buffer completion to completion-at-point-functions.
Completion requires typing at least the two first characters of the
completion or no completion candidates are returned.
If using company-mode, you must use the company-capf backend for HyWiki
completion to work properly.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hywiki.el
(defun hywiki-word-add-completion-at-point ()
"Add HyWiki refs in-buffer completion to `completion-at-point-functions'.
Completion requires typing at least the two first characters of the
completion or no completion candidates are returned.
If using `company-mode', you must use the `company-capf' backend for HyWiki
completion to work properly."
;; Make `indent-for-tab-command' by default bound to {TAB} complete HyWiki
;; references.
(setq tab-always-indent 'complete)
(add-hook 'completion-at-point-functions #'hywiki-completion-at-point -90 t)
(cond ((bound-and-true-p corfu-mode)) ;; Uses :exit-function in hywiki-c-a-p
((bound-and-true-p company-mode)
(add-hook 'company-completion-finished-hook
#'hywiki-completion-exit-function)
(add-hook 'company-completion-cancelled-hook
#'hywiki-completion-exit-function))
;; Default Emacs completion
(t (advice-add 'completion--insert :after #'hywiki-completion-exit-function))))