From cd18b9f67aa64a0c56c7f2b680c5a179793b927d Mon Sep 17 00:00:00 2001 From: Protesilaos Date: Fri, 4 Sep 2026 15:57:37 +0300 Subject: [PATCH] emacs: make prot-emacs-completion-in-buffer also support corfu + completion-preview-mode option --- emacs/.emacs.d/init.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 45d6e30b..3be1f531 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -53,7 +53,8 @@ These include the packages `marginalia', `consult', `corfu', "Front-end for text completion in the buffer. When the value is either `corfu' or `company', use the package of the given name. When the value is `completion-preview' use the built-in -`completion-preview-mode'. +`completion-preview-mode'. When the value is `corfu-completion-preview', +then use the `corfu' package and `completion-preview-mode' in tandem. Use the generic completions buffer if any other value is set." :group 'prot-emacs @@ -62,7 +63,8 @@ Use the generic completions buffer if any other value is set." (const :tag "Generic completions buffer" t) (const :tag "The `corfu' package" corfu) (const :tag "The `company' package" company) - (const :tag "The built-in `completion-preview-mode'" completion-preview))) + (const :tag "The built-in `completion-preview-mode'" completion-preview) + (const :tag "Corfu and `completion-preview-mode'" corfu-completion-preview))) (setq make-backup-files nil) (setq backup-inhibited nil) ; Not sure if needed, given `make-backup-files'