diff options
-rw-r--r-- | .emacs.d/lisp/init-completion.el | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-completion.el b/.emacs.d/lisp/init-completion.el index 1b1c5e4..6645319 100644 --- a/.emacs.d/lisp/init-completion.el +++ b/.emacs.d/lisp/init-completion.el @@ -112,5 +112,30 @@ :config (add-hook 'corfu-mode-hook #'corfu-doc-mode)) +(use-package cape + :bind (("C-c p p" . completion-at-point) ;; capf + ("C-c p t" . complete-tag) ;; etags + ("C-c p d" . cape-dabbrev) ;; or dabbrev-completion + ("C-c p h" . cape-history) + ("C-c p f" . cape-file) + ("C-c p k" . cape-keyword) + ("C-c p s" . cape-symbol) + ("C-c p a" . cape-abbrev) + ("C-c p i" . cape-ispell) + ("C-c p l" . cape-line) + ("C-c p w" . cape-dict) + ("C-c p \\" . cape-tex) + ("C-c p _" . cape-tex) + ("C-c p ^" . cape-tex) + ("C-c p &" . cape-sgml) + ("C-c p r" . cape-rfc1345)) + :custom + (cape-dict-file "/usr/share/dict/words") + :init + (add-to-list 'completion-at-point-functions #'cape-file t) + (add-to-list 'completion-at-point-functions #'cape-dabbrev t) + (add-to-list 'completion-at-point-functions #'cape-dict t) + (add-to-list 'completion-at-point-functions #'cape-ispell t)) + (provide 'init-completion) ;;; init-completion.el ends here |