Skip to content

Commit

Permalink
fix(cape): hook capfs the right way
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jun 12, 2023
1 parent 5cdab26 commit 31c733d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/me-completion.el
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@
:after minemacs-loaded
:demand t
:config
(dolist (fn '(cape-file cape-elisp-block cape-keyword cape-symbol))
(add-hook 'completion-at-point-functions fn))
(+add-hook! 'completion-at-point-functions '(cape-file cape-elisp-block cape-keyword cape-dict))

(+add-hook! (emacs-lisp-mode git-commit-mode)
(add-hook 'completion-at-point-functions #'cape-symbol nil t))

(+add-hook! (TeX-mode LaTeX-mode)
(add-hook 'completion-at-point-functions #'cape-tex nil t))

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

0 comments on commit 31c733d

Please sign in to comment.