From 82f9c7d6bac44fd9854b393f7cb8502bf281d877 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Wed, 14 Jun 2023 17:42:30 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(vertico)=20Hide=20commands=20that?= =?UTF-8?q?=20do=20not=20work=20in=20the=20current=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index 24a7328..2f9f985 100644 --- a/config.org +++ b/config.org @@ -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