branch: externals/vertico commit a34744ca9efb9a7d9545793403f756f2d7698282 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@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))