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

Missing SPC binding in several modes #3981

Closed
StreakyCobra opened this issue Nov 28, 2015 · 8 comments
Closed

Missing SPC binding in several modes #3981

StreakyCobra opened this issue Nov 28, 2015 · 8 comments

Comments

@StreakyCobra
Copy link
Contributor

With the new bind-key transition, it seems that several modes have lost their SPC key binding:

@justbur
Copy link
Contributor

justbur commented Nov 28, 2015

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.

@autosquid
Copy link
Contributor

and in c++ compilation mode.

@justbur
Copy link
Contributor

justbur commented Nov 29, 2015

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.

syl20bnr pushed a commit that referenced this issue Nov 30, 2015
Make bind-map use default behavior of evil-leader, which used local
state maps for global bindings.
d12frosted pushed a commit to d12frosted/spacemacs that referenced this issue Nov 30, 2015
Make bind-map use default behavior of evil-leader, which used local
state maps for global bindings.
@justbur
Copy link
Contributor

justbur commented Dec 1, 2015

@StreakyCobra this should be closed I think, since it doesn't affect master

@PierreR
Copy link
Contributor

PierreR commented Dec 2, 2015

This is not fixed for Puppetfile mode using the latest develop 7be6176

@justbur
Copy link
Contributor

justbur commented Dec 2, 2015

@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))))

@justbur
Copy link
Contributor

justbur commented Dec 2, 2015

Actually, I have another idea that might work through bind-map let me update it.

@justbur
Copy link
Contributor

justbur commented Dec 2, 2015

I think the puppetfile issue will be fixed after updating to justbur/emacs-bind-map@e239bbd

d1egoaz pushed a commit to d1egoaz/spacemacs that referenced this issue Feb 6, 2016
Make bind-map use default behavior of evil-leader, which used local
state maps for global bindings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants