[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bind two commands to one key to toggle between them for the same loc
From: |
Emanuel Berg |
Subject: |
Re: Bind two commands to one key to toggle between them for the same local keymap. |
Date: |
Sat, 23 Oct 2021 20:01:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Hongyi Zhao wrote:
>> That's a function so if anything it should be
>> (company-search-abort)
>
> Tried the following, but doesn't work again:
>
> (defun hz-company-search ()
> (interactive)
> (if (company-search-abort)
> (company-search-abort)
> (company-search-candidates)))
>
>> ... but it doesn't seem to work like that, in the `if'
>> setting you want something that always is, or can be
>> interpreted as, t or nil ...
>
> What's the trick?
I'm not aware of a general method - read the documentation,
maybe - but in this case you can just type in in the source
buffer and evaluate it, then you see that it isn't what you
look for.
(company-search-abort)
--
underground experts united
https://dataswamp.org/~incal
- Re: Bind two commands to one key to toggle between them for the same local keymap., (continued)
- Re: Bind two commands to one key to toggle between them for the same local keymap., Hongyi Zhao, 2021/10/22
- Re: Bind two commands to one key to toggle between them for the same local keymap., Emanuel Berg, 2021/10/22
- Re: Bind two commands to one key to toggle between them for the same local keymap., Hongyi Zhao, 2021/10/22
- Re: Bind two commands to one key to toggle between them for the same local keymap., Emanuel Berg, 2021/10/22
- Re: Bind two commands to one key to toggle between them for the same local keymap., Hongyi Zhao, 2021/10/22
- Re: Bind two commands to one key to toggle between them for the same local keymap., Emanuel Berg, 2021/10/22
- Re: Bind two commands to one key to toggle between them for the same local keymap., Hongyi Zhao, 2021/10/22
- Re: Bind two commands to one key to toggle between them for the same local keymap., Emanuel Berg, 2021/10/22
- Re: Bind two commands to one key to toggle between them for the same local keymap., Hongyi Zhao, 2021/10/22
- Re: Bind two commands to one key to toggle between them for the same local keymap., Hongyi Zhao, 2021/10/22
- Re: Bind two commands to one key to toggle between them for the same local keymap.,
Emanuel Berg <=
- Re: Bind two commands to one key to toggle between them for the same local keymap., Hongyi Zhao, 2021/10/23
- Re: Bind two commands to one key to toggle between them for the same local keymap., Emanuel Berg, 2021/10/23
- Re: Bind two commands to one key to toggle between them for the same local keymap., Hongyi Zhao, 2021/10/23
- Re: Bind two commands to one key to toggle between them for the same local keymap., Emanuel Berg, 2021/10/24
- Re: Bind two commands to one key to toggle between them for the same local keymap., Michael Heerdegen, 2021/10/24
- Re: Bind two commands to one key to toggle between them for the same local keymap., Hongyi Zhao, 2021/10/25
- Re: Bind two commands to one key to toggle between them for the same local keymap., Michael Heerdegen, 2021/10/25
- Re: Bind two commands to one key to toggle between them for the same local keymap., Emanuel Berg, 2021/10/25
- Re: Bind two commands to one key to toggle between them for the same local keymap., Hongyi Zhao, 2021/10/25
- Re: Bind two commands to one key to toggle between them for the same local keymap., Emanuel Berg, 2021/10/25