summaryrefslogtreecommitdiff
path: root/README.org
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2022-12-21 23:36:11 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2022-12-22 16:48:08 +0100
commitd524a0c738f6c5dcc4234d5779035965b1bdf28c (patch)
treef36deb9405e8158a88cacc9a3815cd910982ed2a /README.org
parent8b4c3c27ab49b7a5f42d880565e4c8b2d01bc025 (diff)
Add generalized corfu-preselect user option
This replaces the old corfu-preselect-first option.
Diffstat (limited to 'README.org')
-rw-r--r--README.org6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.org b/README.org
index dfa7542..7dd6feb 100644
--- a/README.org
+++ b/README.org
@@ -85,7 +85,7 @@ Here is an example configuration:
;; (corfu-quit-at-boundary nil) ;; Never quit at completion boundary
;; (corfu-quit-no-match nil) ;; Never quit, even if there is no match
;; (corfu-preview-current nil) ;; Disable current candidate preview
- ;; (corfu-preselect-first nil) ;; Disable candidate preselection
+ ;; (corfu-preselect 'prompt) ;; Preselect the prompt
;; (corfu-on-exact-match nil) ;; Configure handling of exact matches
;; (corfu-scroll-margin 5) ;; Use scroll margin
@@ -385,8 +385,8 @@ force snippet expansion, confirm a candidate explicitly with ~RET~.
(use-package corfu
;; TAB-and-Go customizations
:custom
- (corfu-cycle t) ;; Enable cycling for `corfu-next/previous'
- (corfu-preselect-first nil) ;; Disable candidate preselection
+ (corfu-cycle t) ;; Enable cycling for `corfu-next/previous'
+ (corfu-preselect 'prompt) ;; Always preselect the prompt
;; Use TAB for cycling, default is `corfu-complete'.
:bind