[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [NonGNU ELPA] New package: devil
From: |
Susam Pal |
Subject: |
Re: [NonGNU ELPA] New package: devil |
Date: |
Thu, 11 May 2023 11:09:37 +0100 |
Ruijie Yu <ruijie@netyu.xyz> wrote:
>
>
> Susam Pal <susam.pal@gmail.com> writes:
>
> >> > "Minor mode for reading and translating key sequences."
> >> ^
> >> is this redundant? hard to translate without reading.
> >>
> >> That sounds very generic, is the package capable of doing that for any
> >> kind of key translation.
> >
> > Thanks for the feedback. In that case,
> >
> > "Minor mode for translating key sequences."
>
> Can your package translate more than just modifier keys like control or
> meta? Like translate key sequence "j k" into something else?
>
> If the answer is no, then maybe you should clarify that in the
> description.
Yes, this is possible. Although the defaults cater to how I and some
other users use this package, i.e., converting comma-prefixed key
sequences with modifier-based key sequences, the key sequence
translation logic does not make any assumption about modifier keys.
For example, one could configure the following key translations:
(setq devil-key "j")
(require 'devil)
(global-devil-mode)
(setq devil-logging t)
(setq devil-translations '(("%k k" . "RET")
("%k l" . "<f10>")
("%k m" . "C-M-")))
Assuming vanilla Emacs key bindings have not been altered, now typing
"j j" results in a newline. Typing "j l" opens the menu bar.
Similarly, typing "j m s" results in regexp i-search.
Regards,
Susam
- Re: [NonGNU ELPA] New package: devil, (continued)
- Re: [NonGNU ELPA] New package: devil, Susam Pal, 2023/05/11
- Re: [NonGNU ELPA] New package: devil, Philip Kaludercic, 2023/05/11
- Re: [NonGNU ELPA] New package: devil, Eli Zaretskii, 2023/05/11
- Re: [NonGNU ELPA] New package: devil, Susam Pal, 2023/05/11
- Re: [NonGNU ELPA] New package: devil, Philip Kaludercic, 2023/05/11
- Re: [NonGNU ELPA] New package: devil, Susam Pal, 2023/05/11
- Re: [NonGNU ELPA] New package: devil, Ruijie Yu, 2023/05/11
- Re: [NonGNU ELPA] New package: devil,
Susam Pal <=
- Re: [NonGNU ELPA] New package: devil, Susam Pal, 2023/05/11
- Re: [NonGNU ELPA] New package: devil, Eli Zaretskii, 2023/05/11
- Re: [NonGNU ELPA] New package: devil, Eli Zaretskii, 2023/05/11
- Re: [NonGNU ELPA] New package: devil, Jim Porter, 2023/05/12
- Re: [NonGNU ELPA] New package: devil, Philip Kaludercic, 2023/05/13
- Re: [NonGNU ELPA] New package: devil, Susam Pal, 2023/05/13
- Re: [NonGNU ELPA] New package: devil, Richard Stallman, 2023/05/15
- Re: [NonGNU ELPA] New package: devil, João Távora, 2023/05/17
- Re: [NonGNU ELPA] New package: devil, Philip Kaludercic, 2023/05/17
- Re: [NonGNU ELPA] New package: devil, João Távora, 2023/05/17