[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Get key-binding for a command and print key binding in kbd syntax
From: |
Robert Pluim |
Subject: |
Re: Get key-binding for a command and print key binding in kbd syntax |
Date: |
Thu, 09 Feb 2023 14:46:03 +0100 |
>>>>> On Thu, 09 Feb 2023 13:22:21 +0100, Tassilo Horn <tsdh@gnu.org> said:
Tassilo> Robert Pluim <rpluim@gmail.com> writes:
>> Iʼm not sure Iʼm getting it.
>>
>> - You insert (substitute-command-keys "\\[mu4e-search-maildir]")
>> - At that point you can add a 'keymap property to the text youʼve just
>> inserted, binding RET and mouse-2 to #'mu4e-search-maildir
Tassilo> Ah, yes, you are right. I imagined I would compute a large string
with
Tassilo> different \[foo] and \[bar] occurrences and then pass the whole
thing
Tassilo> through substitute-command-keys. If I do it in small parts, it
Tassilo> obviously becomes much easier. Sometimes I don't see the forest
for the
Tassilo> trees. :-)
Breaking things into small parts is the essence of computer
programming :-)
Robert
--
- Get key-binding for a command and print key binding in kbd syntax, Tassilo Horn, 2023/02/09
- Re: Get key-binding for a command and print key binding in kbd syntax, Robert Pluim, 2023/02/09
- Re: Get key-binding for a command and print key binding in kbd syntax, Tassilo Horn, 2023/02/09
- Re: Get key-binding for a command and print key binding in kbd syntax, Tassilo Horn, 2023/02/09
- Re: Get key-binding for a command and print key binding in kbd syntax, Robert Pluim, 2023/02/09
- Re: Get key-binding for a command and print key binding in kbd syntax, Tassilo Horn, 2023/02/09
- Re: Get key-binding for a command and print key binding in kbd syntax, Robert Pluim, 2023/02/09
- Re: Get key-binding for a command and print key binding in kbd syntax, Tassilo Horn, 2023/02/09
- Re: Get key-binding for a command and print key binding in kbd syntax,
Robert Pluim <=
- Re: Get key-binding for a command and print key binding in kbd syntax, Tassilo Horn, 2023/02/09