Skip to content

How to make a super cape for all completion-at-point-functions #118

Answered by minad
kiennq asked this question in Q&A
Discussion options

You must be logged in to vote

You can execute something like this in a buffer to extend the existing Capfs with dabbrev/yasnippet:

(defvar-local orig-capfs nil)
(unless orig-capfs
  (setq-local orig-capfs completion-at-point-functions))
(setq-local completion-at-point-functions
            (mapcar
             (lambda (f) (cape-capf-super f :with cape-dabbrev yasnippet-capf))
             orig-capfs))

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by minad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants