summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzymon Szukalski <szymon@szymonszukalski.com>2026-04-13 10:26:12 +1000
committerSzymon Szukalski <szymon@szymonszukalski.com>2026-04-13 10:26:12 +1000
commit820ec85557716fe3a7a4e51847c32923f7bafd50 (patch)
tree27e4124a3fd0e3c977aeb19658dec0f7c3f042af
parent281ca77b74eefa81578d9195ef78cd46a832d8c9 (diff)
Add Corfu for in-buffer completion
-rw-r--r--README.org3
-rw-r--r--Workflow.org2
-rw-r--r--init.el8
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)))