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

前端 未结 3 1206
迷失自我
迷失自我 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:35

    I would advice you to use something like:

    (defvar backup-dir "~/.emacs.d/backups/")
    (setq backup-directory-alist (list (cons "." backup-dir)))
    

    This way you can have all backup files in one directory.

提交回复
热议问题