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

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

[elpa] externals/vertico a34744c 2/2: Set `completion-auto-help` and `co


From: ELPA Syncer
Subject: [elpa] externals/vertico a34744c 2/2: Set `completion-auto-help` and `completion-show-inline-help` to nil by default
Date: Wed, 2 Jun 2021 05:57:18 -0400 (EDT)

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

    Set `completion-auto-help` and `completion-show-inline-help` to nil by 
default
    
    These settings are probably always desired if Vertico is used in
    combination with `minibuffer-complete`.
---
 README.org | 11 -----------
 vertico.el |  4 +++-
 2 files changed, 3 insertions(+), 12 deletions(-)

diff --git a/README.org b/README.org
index 4647497..49b8bcc 100644
--- a/README.org
+++ b/README.org
@@ -146,17 +146,6 @@ completion styles are used instead of ~orderless~:
         read-buffer-completion-ignore-case t)
 #+end_src
 
-If Vertico is active, it makes sense to disable the automatic =*Completions*=
-buffer by setting ~completion-auto-help~ to ~nil~. TAB-completion can be made
-less noisy by setting ~completion-show-inline-help~ to ~nil~.
-
-#+begin_src emacs-lisp
-  (advice-add #'vertico--setup :after
-              (lambda (&rest _)
-                (setq-local completion-auto-help nil
-                            completion-show-inline-help nil)))
-#+end_src
-
 * Complementary packages
 
 Vertico works well together with a few complementary packages, which enrich the
diff --git a/vertico.el b/vertico.el
index c5782e6..3f02682 100644
--- a/vertico.el
+++ b/vertico.el
@@ -631,7 +631,9 @@
         vertico--count-ov (make-overlay (point-min) (point-min) nil t t))
   (setq-local resize-mini-windows 'grow-only
               truncate-lines (< (minibuffer-prompt-end) (/ (window-width) 2))
-              max-mini-window-height 1.0)
+              max-mini-window-height 1.0
+              completion-auto-help nil
+              completion-show-inline-help nil)
   (use-local-map vertico-map)
   (add-hook 'post-command-hook #'vertico--exhibit -99 'local))
 



reply via email to

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