From 1398765ae927830e995d97af786b3b3af2341e2a Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 25 Aug 2026 10:03:39 -0700 Subject: emacs: Add corfu configuration --- emacs/.emacs.d/init.org | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index aaa4f74..6931dc0 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -952,3 +952,24 @@ Hide all of my minor modes in a single menu item. :init (minions-mode)) #+end_src + +* Corfu + +This is a modern in-buffer completion framework that works a little more nicely with internal existing tools in Emacs than Company does. I've used company for years and it was a big improvement over the previous autocomplete, but now I'm trying this out. + +This includes cape for extra completion-at-point functions, and corfu-prescient to show the selected option in the buffer. + +#+begin_src emacs-lisp + (use-package corfu + :config + (setq corfu-auto t)) + + (use-package cape + :init + (add-to-list 'completion-at-point-functions 'cape-abbrev) + (add-to-list 'completion-at-point-functions 'cape-dabbrev) + (add-to-list 'completion-at-point-functions 'cape-file)) + + (use-package corfu-prescient + :hook (corfu-mode)) +#+end_src -- cgit v1.3-2-g0d8e