Skip to content

Commit

Permalink
tweak(cape): better integration with pcomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jun 10, 2023
1 parent c292c96 commit 0cad15f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/me-completion.el
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@
:demand t
:config
(dolist (fn '(cape-file cape-elisp-block cape-keyword cape-symbol))
(add-to-list 'completion-at-point-functions fn)))
(add-hook 'completion-at-point-functions fn))

;; Silence the pcomplete capf, no errors or messages! Important for corfu!
(advice-add 'pcomplete-completions-at-point :around #'cape-wrap-silent)

(when (< emacs-major-version 29)
(advice-add 'pcomplete-completions-at-point :around #'cape-wrap-purify)))

(use-package corfu
:straight t
Expand Down

0 comments on commit 0cad15f

Please sign in to comment.