Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify the modifiers #14

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

modify the modifiers #14

wants to merge 3 commits into from

Conversation

zzkt
Copy link

@zzkt zzkt commented May 11, 2021

Extending the mugur-modifiers to include a few more of the QMK mappings should enable more modifier prefixes.

@mihaiolteanu mihaiolteanu force-pushed the master branch 4 times, most recently from a94b267 to fae6802 Compare May 11, 2021 08:51
@mihaiolteanu
Copy link
Owner

I still haven't figured out how to differentiate between left control and right control in Emacs. At least on linux,
https://emacs.stackexchange.com/questions/20436/pressing-both-ctrl-keys-at-the-same-time-is-recognized-as-ctrl-plus-meta
That's the reason I don't see the difference and the usefulness of having two different Control (or Meta, or etc..) keys for the same thing.

I understand that not everybody wants to use the keyboard ONLY for Emacs, though.

Regardless, is there a better naming convention for the keys, maybe?
C and M are clearly recognized by any Emacs users, but ropt, H and the rest?!

I've found a bug (in my own code), too,

(mugur--keycode 'H-x)    --> "KC_X"
(mugur--keycode 'X-x)    --> "KC_X"
(mugur--keycode 'xsd-x)  --> "KC_X"
...etc

@zzkt
Copy link
Author

zzkt commented May 11, 2021

I've been using KC_LALT as Meta (emacs) and KC_RALT as ALTGR (system) as prefix key to enter accents.

on mac it's fairly straight forward...

(when *macos*
    (setq mac-option-modifier 'meta           ;; 'alt' key as 'meta'
          mac-command-modifier 'super         ;; 'splat' key as 'super'
          mac-function-modifier 'hyper        ;; hyper functionalty
          mac-right-command-modifier 'hyper   ;; hyper functionalty (QMK compatible)
          mac-right-option-modifier 'none))   ;; unbind right 'alt' key for accented input

I'm not sure there's a similar general setup, but you can modify key-translation-map to remap or ignore keys in emacs from the system input layer.

@zzkt
Copy link
Author

zzkt commented May 11, 2021

As for the naming, I used the existing aliases just to start the discussion without touching too much of the code...

@zzkt
Copy link
Author

zzkt commented May 11, 2021

This started from realising that KC_HYPER in QMK isn't really the same idea of a modifier as the emacs 'hyper or H prefix key.

@zzkt
Copy link
Author

zzkt commented Jun 4, 2021

The QMK names for the modifiers can be found in the Modifier Keys section of the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants