From 3f09c1edfb8624ed8208dfa10c2d3524a8f856ba Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Sat, 14 Sep 2024 00:07:43 -0700 Subject: [PATCH] Add cape --- thoom-emacs/modules/thoom-completion.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/thoom-emacs/modules/thoom-completion.el b/thoom-emacs/modules/thoom-completion.el index ed06705..3892906 100644 --- a/thoom-emacs/modules/thoom-completion.el +++ b/thoom-emacs/modules/thoom-completion.el @@ -103,3 +103,11 @@ (("C-'" . completion-at-point)) :init (global-corfu-mode)) + +(use-package cape + :ensure t + ;; Bind prefix keymap providing all Cape commands under a mnemonic key. + :bind ("C-c p" . cape-prefix-map) ;; Alternative keys: M-p, M-+, ... + :init + (add-hook 'completion-at-point-functions #'cape-file) + (add-hook 'completion-at-point-functions #'cape-elisp-block))