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

Derived modes don't pick up leader keys #27

Open
jcf opened this issue Aug 6, 2015 · 0 comments
Open

Derived modes don't pick up leader keys #27

jcf opened this issue Aug 6, 2015 · 0 comments

Comments

@jcf
Copy link

jcf commented Aug 6, 2015

Hi Michael,

I'm looking for a way to share leader keys between clojure-mode, and some derived modes like clojurex-mode, clojurec-mode, and clojurescript-mode.

As these modes are derived I expected all my Clojure leaders keys to work in a cljs file, but they don't. Before I dig further into copying things around with set-keymap-parent and keymap--merge-bindings I wonder, should I expect clojurescript-mode to pick up clojure-modes leader keys?

If not, any recommendation for how best to share these keys would be greatly appreciated! I'm currently thinking of looping over (cdddr (assoc 'clojure-mode evil-leader--mode-maps)) and calling define-key repeatedly as you do in evil-leader--mode-maps although that seems a little fragile given I'm relying on private vars…

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

No branches or pull requests

1 participant