Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was wondering if there is a way to make emacs stop making backups of files with the ~ at the end. (herpderp.html~) I am currently using windows xp 32 bit with emacs 23. Does anyone know how to make this stop?

share|improve this question
~ usually means temp file. Why do you want this to change? – soandos Feb 16 '12 at 14:23
well if i have a folder with some script files their are a ton of extra files that dont go away afterwards, is there a way to hide them? thanks – Shantanu Feb 16 '12 at 18:36
up vote 3 down vote accepted

You can use the variable backup-inhibited. Setting it to non-nil means "no backups".

share|improve this answer

To save the backup files in a different place you can customize backup-directory-alist. It consists of a list of pairs. The first in the pair is a regex to match the file name, and the second is the directory to save them in. If nothing matches then the backup files are saved in the same directory as the original. Below will save all backup files to ~/.emacs.d/backups where they are out of the way until you need them.

(setq backup-directory-alist '(("." . "~/.emacs.d/backups")))
share|improve this answer
i did this for a while then one day realized that my emacs.d file was huge! – Shantanu Mar 26 '12 at 12:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .