emacs: load corfu only if vertico is loaded

This commit is contained in:
Protesilaos Stavrou 2025-12-17 16:43:26 +02:00
parent b4acab0624
commit 108a81175a
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
2 changed files with 6 additions and 2 deletions

View file

@ -388,7 +388,9 @@ Development continues on GitHub with GitLab as a mirror."))
(remove-hook 'save-some-buffers-functions #'abbrev--possibly-save))
;;; Corfu (in-buffer completion popup)
(when (and prot-emacs-completion-extras prot-display-graphic-p)
(when (and (eq prot-emacs-completion-ui 'vertico)
prot-emacs-completion-extras
prot-display-graphic-p)
(prot-emacs-configure
(prot-emacs-install corfu)

View file

@ -4830,7 +4830,9 @@ Also see [[#h:567bb00f-1d82-4746-93e5-e0f60721728a][the =prot-emacs-completion.e
#+begin_src emacs-lisp :tangle "prot-emacs-modules/prot-emacs-completion.el"
;;; Corfu (in-buffer completion popup)
(when (and prot-emacs-completion-extras prot-display-graphic-p)
(when (and (eq prot-emacs-completion-ui 'vertico)
prot-emacs-completion-extras
prot-display-graphic-p)
(prot-emacs-configure
(prot-emacs-install corfu)