-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Missing SPC
binding in several modes
#3981
Comments
I'll explain more later but the leader key is in the global evil maps. It's possible for minor modes to override these. you can rebind or unbind the shadowing key. |
and in c++ compilation mode. |
evil-leader used local state maps for its bindings. bind-map uses the regular global maps, hence the small number of differences. Using local maps for what are essentially global bindings is a hack I think. Evil rightfully allows minor modes to override the global state maps which is what is happening here. My preference would be to explicitly rebind in these cases because i think it more closely matches the intended design of evil mode. I can also make an option for bind-map to use the local maps like evil-leader if that's what people want. |
Make bind-map use default behavior of evil-leader, which used local state maps for global bindings.
@StreakyCobra this should be closed I think, since it doesn't affect master |
This is not fixed for |
@PierreR I took a look at puppetfile mode and it's defined in a somewhat non-standard way. I don't think the correct hooks are being run for it. We'll probably need to do something like this for it (add-hook 'puppetfile-mode-hook
(lambda ()
(dolist (map (list evil-normal-state-local-map
evil-visual-state-local-map
evil-motion-state-local-map))
(define-key map (kbd dotspacemacs-leader-key) 'spacemacs-cmds)))) |
Actually, I have another idea that might work through |
I think the puppetfile issue will be fixed after updating to justbur/emacs-bind-map@e239bbd |
Make bind-map use default behavior of evil-leader, which used local state maps for global bindings.
With the new
bind-key
transition, it seems that several modes have lost theirSPC
key binding:rspec-mode
compilation window Gitter – November 28, 2015 4:04 PMspeedbar-mode
Evil leader broken in speedbar mode #3980ranger-mode
[ranger] Leader key broken #3926python-nose
Keymap issues in Python Nose #3940M-
bindings no longer works in an ansi-term buffer #3927The text was updated successfully, but these errors were encountered: