aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVaino Kauppila <vaino@vke.fi>2026-09-10 15:06:54 +0300
committerVaino Kauppila <vaino@vke.fi>2026-09-10 15:06:54 +0300
commit74b9de6292b8638348a7595b843a7f22a6064890 (patch)
treea6e5fba50da7d01f47a1cce78881c45848eb047a
parente459fea00e71717df0ece58989986c641c4a2ff2 (diff)
downloademacs_setup-74b9de6292b8638348a7595b843a7f22a6064890.tar.gz
emacs_setup-74b9de6292b8638348a7595b843a7f22a6064890.zip
Enable corfu auto-completion popup
corfu-auto was nil, so completions only appeared on explicit C-<tab>; nothing popped up while typing. Now: popup after 2 chars / 0.15s idle, C-<tab> still forces completion. Verified in a GUI session on vkeHF: typing 'np.a' delivers 51 numpy candidates from the env pylsp into the corfu popup (eglot CAPF first in completion-at-point-functions).
-rw-r--r--emacs.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/emacs.el b/emacs.el
index 748f44c..e13833b 100644
--- a/emacs.el
+++ b/emacs.el
@@ -190,7 +190,11 @@
(use-package corfu
:custom
- (corfu-auto nil)
+ ;; Popup completions automatically while typing (after 2 chars, 0.15s
+ ;; idle). C-<tab> below still forces completion at any time.
+ (corfu-auto t)
+ (corfu-auto-delay 0.15)
+ (corfu-auto-prefix 2)
(corfu-quit-at-boundary nil)
(corfu-quit-no-match nil)
:init