[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: One character key bindings in editing buffers
From: |
Stefan Monnier |
Subject: |
Re: One character key bindings in editing buffers |
Date: |
Mon, 30 Jul 2018 18:14:09 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> Yes, that is one of the points which a proper package should
> handle. In theory it's also possible that if you use some
> punctuation mark for hotkey then it also already has an electric
> or similar binding, not self-insert-command, though it's not
> likely with letter hotkeys.
Electricity for keys should use post-self-insert-hook nowadays, so even
"electric" keys should be bound to `self-insert-command`.
But yes, some packages still use other mechanisms, so you may need to
add more commands like self-insert-command to the remapping.
Stefan