emacs replace string in a region

先选中
M-x replace-string
根据提示操作,完成—————————–
也就是用narrow的办法
应该是选了一个区域之后 C-x n n 进入narrow模式
然后替换 M % src 回车 dst回车 !回车
这时候再回到原来的模式 C-x n w

Leave a Reply

Your email address will not be published. Required fields are marked *