diff --git a/emacs/.emacs.d/prot-emacs-modules/prot-emacs-completion.el b/emacs/.emacs.d/prot-emacs-modules/prot-emacs-completion.el index 4840fe0b..aaaf57e5 100644 --- a/emacs/.emacs.d/prot-emacs-modules/prot-emacs-completion.el +++ b/emacs/.emacs.d/prot-emacs-modules/prot-emacs-completion.el @@ -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 diff --git a/emacs/.emacs.d/prot-emacs.org b/emacs/.emacs.d/prot-emacs.org index 802a4503..436e2133 100644 --- a/emacs/.emacs.d/prot-emacs.org +++ b/emacs/.emacs.d/prot-emacs.org @@ -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~)