我在Emacs中有以下代码,用于删除突出显示区域中的换行符:
(defun remove-newlines-in-region ()
"Removes all newlines in the region."
(interactive)
(save-restriction
(narrow-to-region (point) (mark))
(goto-char (point-min))
(while (search-forward "\n" nil t) (replace-match "" nil t))))
Run Code Online (Sandbox Code Playgroud)
我想扩展这个功能,以自动复制(而不是杀死)结果到杀死环.我怎样才能做到这一点?
| 归档时间: |
|
| 查看次数: |
61 次 |
| 最近记录: |