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 20:24:18 +0800

On Sat, Oct 23, 2021 at 8:07 PM Michael Heerdegen
<michael_heerdegen@web.de> wrote:
>
> Hongyi Zhao <hongyi.zhao@gmail.com> writes:
>
> > I changed to the following form, but it still does nothing:
> >
> > (defun my-command ()
> >   (interactive)
> >   (if (company--active-p) (company-search-abort)
> >     (company-search-candidates)))
>
> Is your command called at all?

See the attached file for more detailed info.

HZ

Attachment: lambda-function.png
Description: PNG image

Attachment: separate-keybinding.png
Description: PNG image


reply via email to

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