-
Notifications
You must be signed in to change notification settings - Fork 48
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
Add customisation to disable sticky god-literal-key
#135
Comments
Hi @doneself! (setq god-literal-key nil) |
When the value of god-literal-key is set to nil, i don't know how to use god-mod to execute the command (dired-jump-other-window). Because dired-jump-other-window is bound to C-x 4 C-j. |
Ah yes, my bad. I suppose a temporary workaround would be to bind |
god-literal-key
OK, thank you for your help and guidance. |
I've given this a bit of thought, and there are a couple options to help users with similar key bindings. We could define a customisation to either:
I'll leave this open for folks to discuss what the best option would be to implement in God mode. |
In most cases, I prefer to execute the command (god-execute-with-current-bindings) in emacs state rather than toggle god-local-mode.
So I often use `apps` key to execute `god-execute-with-current-bindings`.Because I press `apps` key with my right hand.Pressing `x` and `y` key with my left hand.
…------------------ Original ------------------
From: "emacsorphanage/god-mode" ***@***.***>;
Date: Fri, Oct 22, 2021 03:58 AM
***@***.***>;
***@***.******@***.***>;
Subject: Re: [emacsorphanage/god-mode] Add customisation to disable sticky `god-literal-key` (Issue #135)
I've given this a bit of thought, and there are a couple options to help users with similar key bindings.
C-x4j as a modifier key is used in a key sequence after a key without a modifier is used, but it's still a valid key sequence and doesn't break key binding conventions.
We can define a customisation to either:
Toggle sticky literal key if the literal key is entered again
(xSPCjSPCj → C-xjC-j), or
Disable sticky literal key behaviour altogether, so that the literal key only apply to the first subsequent key
(xSPCjj → C-xjC-j).
I'll leave this open for folks to discuss what the best option would be to implement in God mode.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
I could adopt to a toggling For now, I fix this for me with the non-sticky version, since that's what's easier for me to do from within my config file with:
|
I like the idea of pressing
This would attend @doneself . And also @federkamm, see:
I think this second non-stick key should not be defined be default, letting the user define it if they want. What do you think? |
Thanks for chiming in, @viniciussbs! |
I came back here to see if anything happened since. I also like the idea best to make SPC toggle the sticky behavior because it would be a non-breaking change. I wouldn't need a non-sticky literal key alternative, then. As far as I can tell, this would only requires to change the |
when i type "x space 4 j", get the message "god-mode-lookup-command: God: Unknown key binding for ‘C-x 4 j‘"
what did I do wrong?
dired-jump-other-window is an autoloaded interactive compiled Lisp
function in ‘dired-x.el’.
It is bound to C-x 4 C-j.
The text was updated successfully, but these errors were encountered: