Closed rdparker closed 1 year ago
Hi, thanks for the thought-out PR. Looks good to me, one small comment: By default, I would set the kkp-alt-modifier
to 'meta
to not change the default behaviour on a standard Linux machine (at least on mine :)).
And then mention in the README that one can change kkp-alt-modifier
(or any other modifier) to 'alt
. What do you think?
Hi, I went ahead and merged the PR, but applied the changes I suggested in the last comment. Thanks for the PR again!
This adds support for mapping physical modifier keys, as reported by the Kitty Keyboard Protocol, to different Emacs modifiers. It is modeled after the behavior of the
mac-command-modifer
,mac-option-modifier
and related variables.By default all the new
kpp-*-modifier
variables map 1-to-1 with the named modifier. This introduces a change from priorkpp.el
behavior where<Alt>
and<Meta>
both mapped to<Meta>
. Currently thekpp-alt-modifer
maps to<Alt>
. This may be changed by a simple:The motivation for this PR was that in Emacs on macOS my Command (⌘) key is set to produce
<Meta>
and I wanted the same behavior with KPP in a terminal.