emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/corfu ce983a0 17/29: README: Expand configuration


From: Stefan Monnier
Subject: [elpa] externals/corfu ce983a0 17/29: README: Expand configuration
Date: Fri, 16 Apr 2021 18:44:16 -0400 (EDT)

branch: externals/corfu
commit ce983a0ae9cb48fba18c193e6b3c61d7f5e3347b
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    README: Expand configuration
---
 README.org | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/README.org b/README.org
index a86aaf0..4940304 100644
--- a/README.org
+++ b/README.org
@@ -56,11 +56,6 @@ orderless completion a try, which is different from the 
familiar prefix TAB
 completion. Here is an example configuration:
 
 #+begin_src emacs-lisp
-  ;; Enable TAB completion
-  (use-package emacs
-    :init
-    (setq tab-always-indent 'complete))
-
   ;; Configure corfu
   (use-package corfu
     ;; Optionally use TAB for cycling, default is `corfu-complete'.
@@ -86,6 +81,16 @@ completion. Here is an example configuration:
     (setq completion-styles '(orderless)
           completion-category-defaults nil
           completion-category-overrides '((file (styles . 
(partial-completion))))))
+
+  ;; A few more useful configurations...
+  (use-package emacs
+    :init
+    ;; TAB cycle if there are only few candidates
+    (setq completion-cycle-threshold 3)
+
+    ;; Enable indentation+completion using the TAB key.
+    ;; Completion is often bound to M-TAB.
+    (setq tab-always-indent 'complete))
 #+end_src
 
 * Complementary packages



reply via email to

[Prev in Thread] Current Thread [Next in Thread]