Emacs: Don't create #these# files when not saving modified buffer

前端 未结 3 1203
迷失自我
迷失自我 2021-02-08 23:04

How do I prevent Emacs from creating backup copies of buffers I don\'t wish to save when I kill buffers that have not been saved?

3条回答
  •  北海茫月
    2021-02-08 23:53

    If you don't want emacs to litter your drive with backup files try adding the following to your .emacs file:

    (setq backup-directory-alist '(("." . "~/emacs-backups")))
    

    This will store every backup in a single location.

提交回复
热议问题