Emacs techniques notes

2016-09-20  本文已影响0人  kid551

As I have to deal with the plain text file in Windows and I want to solve this issue with elegant behavior, I know I need to choose the tool Vim or Emacs. This time, the Windows platform has helped me make my decision, the Emacs. Comparing with Vim, I think there's much less deployment work to start my work.

I won't finish this post at once. In fact, I prepare to add contents in this post as I learned new skills of Emacs.

Replace String

Here I need to replace the newline with space, and replace 'XXX:' as '[newline]XXX:'.

M-x replace-string C-q C-j RET [Space] RET

- 'C-q Cj' represents newline.
- 'RET' represents keyboard Enter
- '[Space]' just as keyboard Space

Special characters:

- FF, page break: 'C-q C-l'
- Br

Move this part to https://kid551.github.io/2016/10/20/emacs-cmd/ .

上一篇下一篇

猜你喜欢

热点阅读