From e54698d0486b58cd555e7ae7232dcbd43a84c246 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Tue, 3 Jan 2023 16:28:09 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Hide=20commands=20in=20M-x=20that?= =?UTF-8?q?=20don't=20work=20in=20the=20current=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config.org b/config.org index 3af0cc2..8ef42bb 100644 --- a/config.org +++ b/config.org @@ -258,6 +258,15 @@ Show filesize human readable. (setq-default dired-listing-switches "-alh") #+end_src +** M-x customizations + +Hide commands in M-x which do not work in the current mode. + +#+begin_src emacs-lisp +(setq read-extended-command-predicate + #'command-completion-default-include-p) +#+end_src + * Package configuration ** General configuration