help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: [External] : Re: Bind two commands to one key to toggle between them


From: Hongyi Zhao
Subject: Re: [External] : Re: Bind two commands to one key to toggle between them for the same local keymap.
Date: Sat, 23 Oct 2021 16:48:38 +0800

On Sat, Oct 23, 2021 at 4:20 PM Michael Heerdegen
<michael_heerdegen@web.de> wrote:
>
> Hongyi Zhao <hongyi.zhao@gmail.com> writes:
>
> >     ("<tab>" . (lambda ()
> >              (interactive)
> >              (if (company--active-p) #'company-search-abort
> >                #'company-search-candidates)))
>
> Your lambda only returns a command name, but it doesn't call any
> command.  It will just do "nothing".

I'm in a confusion for this problem. The fix?



reply via email to

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