You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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…
The text was updated successfully, but these errors were encountered:
Hi Michael,
I'm looking for a way to share leader keys between
clojure-mode
, and some derived modes likeclojurex-mode
,clojurec-mode
, andclojurescript-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 withset-keymap-parent
andkeymap--merge-bindings
I wonder, should I expectclojurescript-mode
to pick upclojure-mode
s 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 callingdefine-key
repeatedly as you do inevil-leader--mode-maps
although that seems a little fragile given I'm relying on private vars…The text was updated successfully, but these errors were encountered: