I tried to follow this to replace a character with newline in Spacemacs but that key combination replaced it with a space instead of newline.
How to replace a character with a newline in Emacs?
How can this be accomplished in Spacemacs?
I tried to follow this to replace a character with newline in Spacemacs but that key combination replaced it with a space instead of newline.
How to replace a character with a newline in Emacs?
How can this be accomplished in Spacemacs?
It is supposed to work exactly the same with Spacemacs (C-q
C-j
will replace with a newline).
You can check if your keys are correctly mapped with the describe-key command (C-h k
):
C-q
runs the command quoted-insert
andC-j
runs the command electric-newline-and-maybe-indent (result with my Spacemacs)