在 Emacs 中利用正则表达式处理换行 Posted on 2025-04-15 00:00 | Post modified 将 Emacs 的文本中的两个换行替换为一行,用于将某些文本中具有空行的内容全都去掉,临时处理一些文本便于进一步处理的情况。步骤如下: M-x replace-regexp 输入待替换的内容 C-q C-j C-q C-j ,然后 RET 输入替换后的内容 C-q C-j , RET 替换成功。 Post author: Melt Post link: https://melt.autove.dev/2025/04/15/emacs-regexp-annotate-next-line/ Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 3.0 unless stating additionally.