(vertico) Hide commands that do not work in the current mode

This commit is contained in:
Marcel Kapfer 2023-06-14 17:42:30 +02:00
parent c6919168de
commit 82f9c7d6ba
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -824,7 +824,10 @@ Vertico is a minimal completion UI that uses core Emacs functionality whenever p
(vertico-mode)
(setq vertico-scroll-margin 0)
(setq vertico-resize t)
(setq vertico-cycle t))
(setq vertico-cycle t)
;; Hide commands in M-x which do not work in the current mode.
(setq read-extended-command-predicate
#'command-completion-default-include-p))
#+end_src
** orderless