aboutsummaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorMountain Man <43313373+MountainMan1312@users.noreply.github.com>2023-04-30 03:41:14 -0400
committerMountain Man <43313373+MountainMan1312@users.noreply.github.com>2023-04-30 03:41:14 -0400
commite6b03be03f00845591138cc5e5770129d745fc6d (patch)
tree2f380bb872ecfbe4761f0442c9b9cb17ad669d5b /init.el
parentUse `vertico` for minibuffer completion (diff)
downloadmmosmacs-e6b03be03f00845591138cc5e5770129d745fc6d.tar.gz
mmosmacs-e6b03be03f00845591138cc5e5770129d745fc6d.tar.bz2
mmosmacs-e6b03be03f00845591138cc5e5770129d745fc6d.zip
Use `corfu` for buffer text completion
Diffstat (limited to 'init.el')
-rw-r--r--init.el30
1 files changed, 30 insertions, 0 deletions
diff --git a/init.el b/init.el
index 1f24b81..5fff6bf 100644
--- a/init.el
+++ b/init.el
@@ -127,6 +127,36 @@
127 (vertico-mode)) 127 (vertico-mode))
128 128
129 129
130;; ---------------------------------
131;; Text completion
132;; ---------------
133;; Corfu provides in-buffer text
134;; completion, and is the
135;; counterpart to vertico.
136;; ---------------------------------
137
138(use-package corfu
139 :straight (corfu :files (:defaults "extensions/*")
140 :includes (corfu-info corfu-history))
141 :config
142 (setq corfu-auto t
143 corfu-auto-prefix 2
144 corfu-auto-delay 0.1
145 corfu-min-width 40
146 corfu-max-width corfu-min-width
147 corfu-count 8
148 corfu-scroll-margin 3
149 corfu-cycle nil
150 corfu-popupinfo-delay 0.15
151 corfu-quit-at-boundary t
152 corfu-separator ?\s
153 corfu-quit-no-match 'separator)
154 :init
155 (global-corfu-mode)
156 (corfu-popupinfo-mode)
157 (corfu-indexed-mode))
158
159
130 160
131 161
132;; --------------------------------------------------------------------- 162;; ---------------------------------------------------------------------