emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Command Discovery In Emacs "


From: Condy Chen
Subject: Re: "Command Discovery In Emacs "
Date: Mon, 16 Aug 2021 21:46:08 +0800

It works, thanks.

On Mon, Aug 16, 2021 at 9:44 PM Lars Ingebrigtsen <larsi@gnus.org> wrote:
Condy Chen <condy0919@gmail.com> writes:

> By defining `foo' with
>
> (defun foo (arg)
>   (interactive "p" org-mode)
>   (message "foo"))
>
> M-x foo is still available in elisp-mode.

Try

(setq read-extended-command-predicate 'command-completion-default-include-p)


--
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

[Prev in Thread] Current Thread [Next in Thread]