beginner question: is there a way (or rule of thumb) to convert a keybinding in emacs to a corresponding one in spacemacs?
I often find online tutorials on emacs rather than spacemacs, and when they include commands (usually starting with C-c or C-x) I don't know how to perform the same thing in spacemacs using SPC. Can I assume, for example, that I can simply swap C-c (or C-x) with SPC and the binding will work? (say: C-c x y
becomes SPC x y
?)
80.6k1010 gold badges124124 silver badges263263 bronze badges
6For Spacemacs, you can map SPC x
(or anything else you prefer) to C-x
. Here's an example:
(spacemacs/set-leader-keys
"x" (lookup-key global-map (kbd "C-x"))
"xf" 'other-function-you-like
"c" (lookup-key global-map (kbd "C-c"))
"cf" 'other-function-you-like)
However, to directly bind SPC
to a keymap or prefix, you can refer to this answer:
1,91966 silver badges88 bronze badges
Start asking to get answers
Find the answer to your question by asking.
Ask questionExplore related questions
See similar questions with these tags.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4