Add and configure the cape package

This commit is contained in:
Gergely Polonkai 2023-10-20 11:56:24 +02:00
parent 5b0156d951
commit 60307f6432
No known key found for this signature in database
GPG Key ID: 2D2885533B869ED4

View File

@ -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~