emacs: fix error with cape setup

This commit is contained in:
Protesilaos 2026-06-17 17:37:14 +03:00
parent c464b61796
commit 9e0e54711c
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
2 changed files with 4 additions and 4 deletions

View file

@ -276,7 +276,7 @@ Development continues on GitHub with GitLab as a mirror."))
(prot-emacs-configure
(prot-emacs-install cape)
(defun prot/cape-super-set-local (&rest capfs)
(defun prot/cape-super-set-local (capfs)
"Set `completion-at-point-functions' to current value plus CAPFs."
(let* ((all (append completion-at-point-functions capfs))
(all-minus-global (delq t all))
@ -293,7 +293,7 @@ Development continues on GitHub with GitLab as a mirror."))
"Set up Cape for prose."
(prot/cape-super-set-local '(cape-file cape-dabbrev cape-dict)))
(add-hook 'prog-mode-hook #'prot/cape-text-setup)))
(add-hook 'text-mode-hook #'prot/cape-text-setup)))
(when (eq prot-emacs-completion-in-buffer 'company)
(prot-emacs-configure

View file

@ -4830,7 +4830,7 @@ just as good in my experience ([[#h:6d3e2d44-9b1e-4092-8287-5062e4f29da4][The =p
(prot-emacs-configure
(prot-emacs-install cape)
(defun prot/cape-super-set-local (&rest capfs)
(defun prot/cape-super-set-local (capfs)
"Set `completion-at-point-functions' to current value plus CAPFs."
(let* ((all (append completion-at-point-functions capfs))
(all-minus-global (delq t all))
@ -4847,7 +4847,7 @@ just as good in my experience ([[#h:6d3e2d44-9b1e-4092-8287-5062e4f29da4][The =p
"Set up Cape for prose."
(prot/cape-super-set-local '(cape-file cape-dabbrev cape-dict)))
(add-hook 'prog-mode-hook #'prot/cape-text-setup)))
(add-hook 'text-mode-hook #'prot/cape-text-setup)))
#+end_src
*** The =prot-emacs-completion.el= about the in-buffer completion popup (~company~)