aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-08-25 10:03:39 -0700
committerGravatar Tom Willemse2026-08-25 10:06:29 -0700
commit858be92255e27b3e11da10ab1ed94281d6a73d6b (patch)
treea4c716dd6051f193cd8a131f145862d998a21dfa
parent7a9676aab9d663b99f2f263742bf30f99ac3fc86 (diff)
downloadnew-dotfiles-858be92255e27b3e11da10ab1ed94281d6a73d6b.tar.gz
new-dotfiles-858be92255e27b3e11da10ab1ed94281d6a73d6b.zip
emacs: Add corfu configuration
-rw-r--r--emacs/.emacs.d/init.org21
1 files changed, 21 insertions, 0 deletions
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