Replies: 39 comments
-
What behavior?
Following your example: |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
What have you pressed before? SPC?
If you mean you want to cancel a leader key chord with ESC in a middle of typing it, I think its already a default behavior. I believe there are no default leader key bindings that includes ESC key. |
Beta Was this translation helpful? Give feedback.
-
"SPC f ESC .." is actually a thing, weird. |
Beta Was this translation helpful? Give feedback.
-
It seems my installation is a bit messed up. This happens with 'vanilla' spacemacs.
I haven't pressed anything (except |
Beta Was this translation helpful? Give feedback.
-
I also have Karabiner installed but only modify my internal keyboard not my external (which I used for this) |
Beta Was this translation helpful? Give feedback.
-
What does |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Do you use vim mode or emacs mode? Have you knowingly rebinded your ESC key? (we are talking before "global-set-key [escape] .." thing) |
Beta Was this translation helpful? Give feedback.
-
Currently I have the |
Beta Was this translation helpful? Give feedback.
-
When you delete the config, is the ESC behavior normal (no "ESC-..")? |
Beta Was this translation helpful? Give feedback.
-
I canceled the installation with escape seing the spacemacs buffer but no spacemacs used. |
Beta Was this translation helpful? Give feedback.
-
You didnt answer whether you use vim or emacs mode? I presumed you use vim mode and testing ESC from (evil) normal state. |
Beta Was this translation helpful? Give feedback.
-
Sorry, yes that is right. The The |
Beta Was this translation helpful? Give feedback.
-
It works, it just that Spacemacs buffer starts in evil-motion-state (for whatever reason). |
Beta Was this translation helpful? Give feedback.
-
Yes |
Beta Was this translation helpful? Give feedback.
-
I am on GUI. |
Beta Was this translation helpful? Give feedback.
-
Are you using Mojave, emacs-plus via homebrew (or emacs via homebrew cask)? |
Beta Was this translation helpful? Give feedback.
-
I am on Linux (not Mac). |
Beta Was this translation helpful? Give feedback.
-
I recall this is due to ESC being treated as the Meta key for historical reasons. In the long run it's probably better to retrain your muscle memory to use |
Beta Was this translation helpful? Give feedback.
-
Yes, that's what I figured from reading many old posts.
|
Beta Was this translation helpful? Give feedback.
-
For now I "fixed" it by using |
Beta Was this translation helpful? Give feedback.
-
FWIW, my own config involves using Karabiner Elements to map the easy-to-reach A native way to disable the ESC<->meta mapping would be nice, but from what I gathered some time ago, it seems to be hard-coded in Emacs internals. If anyone knows how it would be much appreciated :) |
Beta Was this translation helpful? Give feedback.
-
Even better idea. |
Beta Was this translation helpful? Give feedback.
-
I also find behavior about SPC .* ESC (only in gui) pretty frustrating I've tried a few things but ESC seems very special unfortunately : ESC apparently always acts as the prefix for esc-map and that's set in the c code and not changeable. |
Beta Was this translation helpful? Give feedback.
-
This also happens when using emacs keybindings with any leader key. I have the following lines in my config to get rid of this behavior.
People who use vim keybindings could use the same tricks with other appropriate evil maps to solve this problem. |
Beta Was this translation helpful? Give feedback.
-
I think I faced same thing.
|
Beta Was this translation helpful? Give feedback.
-
Your solution works, thank you so much. I've been annoyyed for a long time! |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
Beta Was this translation helpful? Give feedback.
-
With that config, ESC is reserved for implementing Meta, and can be used for whatever else you want. All this only works in X/graphical Emacs, of course. In a terminal you can't distinguish and ESC. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to map the escape key as a always return to
normal
state in spacemacs.I got rid of the weird ESC leader-key behaviour with this mapping:
I also used this
to map
SPC ESC
to quit input.Is there a way to also map
SPC f ESC
,SPC w ESC
and so on to just quit?Without having to
set-leader-keys
for every variation?Cheers
Beta Was this translation helpful? Give feedback.
All reactions