aboutsummaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-08-25 10:03:39 -0700
committerGravatar Tom Willemse2026-08-26 23:04:25 -0700
commit1398765ae927830e995d97af786b3b3af2341e2a (patch)
treea4c716dd6051f193cd8a131f145862d998a21dfa /emacs
parent94acd147a0d749ad17e0ac573c2a2fc1eff8f880 (diff)
downloadnew-dotfiles-1398765ae927830e995d97af786b3b3af2341e2a.tar.gz
new-dotfiles-1398765ae927830e995d97af786b3b3af2341e2a.zip
emacs: Add corfu configuration
Diffstat (limited to 'emacs')
-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