From 820ec85557716fe3a7a4e51847c32923f7bafd50 Mon Sep 17 00:00:00 2001 From: Szymon Szukalski Date: Mon, 13 Apr 2026 10:26:12 +1000 Subject: Add Corfu for in-buffer completion --- README.org | 3 ++- Workflow.org | 2 ++ init.el | 8 +++++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index 33ef58c..924a222 100644 --- a/README.org +++ b/README.org @@ -84,6 +84,7 @@ The minibuffer completion setup is simple and modern: - =vertico= provides the UI - =marginalia= adds annotations - =orderless= provides matching behavior +- =corfu= provides in-buffer completion-at-point popups - =consult= provides search and outline commands ** Org Workflow @@ -117,7 +118,7 @@ Restored capabilities include: - adding a new card with field-aware prompts - alias-aware minibuffer completion that inserts canonical names - Marginalia annotations in person selection prompts -- CRM completion-at-point in text and Org writing buffers +- CRM completion-at-point in text and Org writing buffers via Corfu popups - CRM-backed abbrevs in writing buffers, refreshed when the CRM changes - grouped CRM reports by role, team, manager, relationship, engagement, supplier, and location diff --git a/Workflow.org b/Workflow.org index c4b2901..cdc5a89 100644 --- a/Workflow.org +++ b/Workflow.org @@ -150,9 +150,11 @@ Reports are available through these commands: ** CRM Completion CRM completion works in text and Org writing buffers through both abbrevs and completion-at-point. +Vertico remains the minibuffer completion UI, while Corfu provides the in-buffer popup for completion at point. - CAPF inserts canonical names - aliases help find the right person +- Corfu shows the completion popup for CRM CAPF in Org and text buffers - Marginalia annotations show compact CRM summaries in minibuffer selection - CRM abbrevs are rebuilt from the current CRM data, and stale CRM abbrevs are cleared before reinstalling them diff --git a/init.el b/init.el index 871f2bd..b38ef27 100644 --- a/init.el +++ b/init.el @@ -66,7 +66,7 @@ (package-initialize) -(dolist (pkg '(vertico marginalia orderless consult modus-themes olivetti)) +(dolist (pkg '(vertico marginalia orderless consult corfu modus-themes olivetti)) (unless (package-installed-p pkg) (unless package-archive-contents (package-refresh-contents)) @@ -155,6 +155,12 @@ :init (setq completion-styles '(orderless basic))) +(use-package corfu + :init + (setq corfu-auto nil + corfu-cycle t) + (global-corfu-mode 1)) + (use-package consult :bind (("C-s" . consult-line) ("C-c o" . consult-outline))) -- cgit v1.2.3