How can I hide the backup files that emacs creates?

前端 未结 4 1031
野趣味
野趣味 2021-02-05 13:20

I just started using emacs after having used vi for a long time. :)

One thing which is annoying me is that whenever I modify a file, save it and exit emacs, I see a back

4条回答
  •  感情败类
    2021-02-05 13:43

    The following lines in ~/.emacs will put all of the auto-save and backup files in /tmp:

    (setq backup-directory-alist
          `((".*" . ,temporary-file-directory)))
    (setq auto-save-file-name-transforms
          `((".*" ,temporary-file-directory t)))
    

提交回复
热议问题