0

I am editing a lot of text files in emacs and the automatic saving of previous versions is creating a massive amount of extraneous files. For example, if I edit a file called numbers.txt and save, then there will be a number.txt file as well as a number.txt~ file. I do not need to keep previous versions. Is there something I can add to my .emacs to prevent the saving of previous file versions?

  • 2
    Possible duplicate of [Automatic deletion of backup files](https://emacs.stackexchange.com/questions/57/automatic-deletion-of-backup-files) – Tyler Nov 17 '17 at 18:25

1 Answers1

1

From (info "(emacs) Backup"):

For most files, the variable ‘make-backup-files’ determines whether to make backup files. On most operating systems, its default value is ‘t’, so that Emacs does write backup files.

So turn it off with:

(setq make-backup-files nil)

in your init file.

Tyler
  • 21,719
  • 1
  • 52
  • 92