emacs 小技巧

Yes, with dired mode, you can:

  • C-x d
  • R to rename the file (or dired-do-rename).
  • C-x k RET to go back to the (renamed) buffer

The rename is equivalent to a shell mv, but will also update any open buffers.

C-x d 进入dired mode

选择需要重命名的文件,按R进行重命名

C-x k 删除重命名的缓存,完成重命名。

原文链接: http://stackoverflow.com/questions/384284/can-i-rename-an-open-file-in-emacs

原文地址:https://www.cnblogs.com/xuedong09/p/2889283.html