diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2022-02-07 18:43:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-07 18:43:24 +0100 |
| commit | cd1e5c396efa5c737f60032dafc65cd2327a9423 (patch) | |
| tree | 25e08af22230d4beaf5616003c015d324ac69f52 /README.org | |
| parent | 7b71f58d12b03e4362f544c19ee2a51085d16af6 (diff) | |
corfu-quit-no-match: Remove support for seconds (#122)
* corfu-quit-no-match: Remove support for seconds
* corfu-quit-no-match: Support value 'separator
* README updates
Diffstat (limited to 'README.org')
| -rw-r--r-- | README.org | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -78,7 +78,7 @@ ;; (corfu-auto t) ;; Enable auto completion ;; (corfu-commit-predicate nil) ;; Do not commit selected candidates on next input ;; (corfu-separator ?\s) ;; Orderless field separator - ;; (corfu-quit-no-match t) ;; Automatically quit if there is no match + ;; (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-echo-documentation nil) ;; Disable documentation in the echo area @@ -142,9 +142,9 @@ appeared unexpectedly. #+begin_src emacs-lisp - ;; Enable auto completion and eager quitting + ;; Enable auto completion and configure quitting (setq corfu-auto t - corfu-quit-no-match t) + corfu-quit-no-match 'separator) ;; or t #+end_src In general, I recommend to experiment a bit with the various settings and key @@ -188,14 +188,13 @@ completion UI, the following snippet should yield the desired result. ** Completing with Corfu in the Shell or Eshell -When completing in the Eshell I recommend conservative local settings, no auto -completion, and quitting if there is no match. +When completing in the Eshell I recommend conservative local settings without +auto completion. #+begin_src emacs-lisp (add-hook 'eshell-mode-hook (lambda () - (setq-local corfu-quit-no-match t - corfu-auto nil) + (setq-local corfu-auto nil) (corfu-mode))) #+end_src |
