[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: |
Tassilo Horn |
Subject: |
Re: Get key-binding for a command and print key binding in kbd syntax |
Date: |
Thu, 09 Feb 2023 13:22:21 +0100 |
User-agent: |
mu4e 1.9.19; emacs 30.0.50 |
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
Ah, yes, you are right. I imagined I would compute a large string with
different \[foo] and \[bar] occurrences and then pass the whole thing
through substitute-command-keys. If I do it in small parts, it
obviously becomes much easier. Sometimes I don't see the forest for the
trees. :-)
> (as an aside, clickable stuff is probably better done with buttons
> than by inventing your own thing).
Well, maybe, but if possible I'd rather keep it the way it already is
UI-wise, just make it correct in the presence of non-default bindings.
Thanks again,
Tassilo
- 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 <=
- 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