From 60307f6432a9b03966889fe96d5e1b91ab1c645b Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 20 Oct 2023 11:56:24 +0200 Subject: [PATCH] Add and configure the cape package --- configuration.org | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/configuration.org b/configuration.org index 6761d04..1488229 100644 --- a/configuration.org +++ b/configuration.org @@ -2095,6 +2095,25 @@ It also provides some nice commands to navigate between change sets. (corfu-separator ?\s)) #+end_src +** ~cape~ + +#+begin_src emacs-lisp +(defvar gpolonkai/completion-at-point-map (make-sparse-keymap) + "Map for traspose functions.") +(define-prefix-command 'gpolonkai/completion-at-point-map) + +(use-package cape + :bind (:map gpolonkai/completion-at-point-map + ("p" . completion-at-point) + :map gpolonkai/pers-map + ("p" . gpolonkai/completion-at-point-map)) + :init + (add-to-list 'completion-at-point-functions #'cape-dabbrev) + (add-to-list 'completion-at-point-functions #'cape-file) + (add-to-list 'completion-at-point-functions #'cape-elisp-block) + (add-to-list 'completion-at-point-functions #'cape-elisp-symbol)) +#+end_src + * Org mode ** ~outline~