-
In TUTORIAL.org on line 80 and 92, it says, respectively:
Based on that, I would have expected When inspecting the output from
If I, for example, do Is this a misunderstanding on my part, inaccurate documentation, or possibly even a bug? Most likely it's the first and, in that case, an explanation would be very helpful and much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I think the tutorial needs to be updated. This was previously how it worked, but it has changed.. Now, SPC is known as the "leader" key. It brings up a merged keymap, consisting of the You can still use "m" to prefix the next key with "Meta" modifier, and you can still use "g" to prefix the next key with "Ctrl+Meta". Also, "x" enters the "C-x" prefix, and so on for "c" and "h". Other keys are handled literally, so for example "SPC (" inserts a parenthesis. After pressing "x", "c", or "h" any other keys will be handled as if pressed with "Ctrl", unless there is no such binding, in which case, it will be without "Ctrl". So "SPC x s" is equivalent to "C-x C-s". If you want "SPC v" to be equivalent to "C-v" again, you can do it like this:
In similar fashion, you can pick which commands you use most frequently and add those as well. It's also useful for commands bound to "C-x <key>", since those would otherwise require pressing "SPC x SPC <key>". |
Beta Was this translation helpful? Give feedback.
-
@mmarshall540 is right. As things stand at the moment, when you define a key for the leader, it gets registered into I'm not sure when SPC-v was C-v . At least, at the time of the commit that added those lines to the tutorial, 845c469, SPC v still self inserted v. I assume the docs need to fixed as well. |
Beta Was this translation helpful? Give feedback.
-
I finally understood what the docs were supposed to mean. In the old source, that bullet was dependent on the bullet point above it. Just rewrote the section in d180d47 |
Beta Was this translation helpful? Give feedback.
I finally understood what the docs were supposed to mean. In the old source, that bullet was dependent on the bullet point above it. Just rewrote the section in d180d47