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

posted @ 2013-02-01 17:03  xuedong09  阅读(120)  评论(0编辑  收藏  举报