How to replace a character with a newline in Emacs?

前端 未结 6 514
灰色年华
灰色年华 2020-12-12 09:06

I am trying to replace a character - say ; - with a new line using replace-string and/or replace-regexp in Emacs.

I have tried

6条回答
  •  醉梦人生
    2020-12-12 09:23

    Switch to text-mode

    M-x text-mode
    

    Highlight block to indent

    Indent

    C+M \
    

    Switch back to whatever mode..

提交回复
热议问题