How do I rename an open file in Emacs?

后端 未结 11 1849
别跟我提以往
别跟我提以往 2020-12-07 07:03

Is there a way to rename an open file in Emacs? While I\'m viewing it? Something like save-as, but the original one should go away.

11条回答
  •  臣服心动
    2020-12-07 07:23

    Emacs 26.3 (2020-04-03) has rename-file function which can be invoked using M-x rename-file for renaming the current file or any other file for that matter.

提交回复
热议问题