Replies: 1 comment 3 replies
-
I think the general design is, like you mentioned, to put major mode bindings behind Also, I think in most layers implementing modes that provide compilation commands, those commands are bound behind What do you mean with "if Spacemacs only supported evil"? |
Beta Was this translation helpful? Give feedback.
-
Currently
spacemacs/set-leader-keys-for-major-mode
andspacemacs/set-leader-keys-for-minor-mode
only let us bind command underspc m
and,
That works fine in general. But not all commands should go there. A mode that deal with compilation or comments when active should have commands bound behindspc c
notspc m
. Another example is org-mode narrow commands should go to prefixspc n
not a long and tediousspc m s b n
.It would be easy to implement if
spacemacs
only supportedevil
. But it is possible anyway. I think I'd have to create some mouthful functionsspacemacs/set-root-leader-keys--for-major-mode
andspacemacs/set-root-leader-keys-for-minor-mode
. It is also involvedbind-map
to create two extra keymaps for each mode of interest which I am not sure about the performance impact.Beta Was this translation helpful? Give feedback.
All reactions