✨ (vertico) Hide commands that do not work in the current mode
This commit is contained in:
parent
c6919168de
commit
82f9c7d6ba
1 changed files with 4 additions and 1 deletions
|
@ -824,7 +824,10 @@ Vertico is a minimal completion UI that uses core Emacs functionality whenever p
|
||||||
(vertico-mode)
|
(vertico-mode)
|
||||||
(setq vertico-scroll-margin 0)
|
(setq vertico-scroll-margin 0)
|
||||||
(setq vertico-resize t)
|
(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
|
#+end_src
|
||||||
|
|
||||||
** orderless
|
** orderless
|
||||||
|
|
Loading…
Reference in a new issue