diff options
author | David Morgan <djm_uk@protonmail.com> | 2022-06-23 08:10:17 +0100 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2022-06-23 08:10:17 +0100 |
commit | 3833e177943b74480016107d33524842a59097c9 (patch) | |
tree | bd85baf0dc11439c0cd0e17832f31b9bbfb64fc2 /.emacs.d/lisp | |
parent | 37e29ad37fe253cbe732b56088f8fe654deb6495 (diff) | |
download | dotfiles-3833e177943b74480016107d33524842a59097c9.tar.gz |
Try cape
Diffstat (limited to '.emacs.d/lisp')
-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 |