[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to keep emacs from creating backup files
From: |
Kevin Rodgers |
Subject: |
Re: how to keep emacs from creating backup files |
Date: |
Tue, 09 Nov 2004 10:17:20 -0700 |
User-agent: |
Mozilla Thunderbird 0.8 (X11/20040916) |
Daniel Hartmanstorfer wrote:
> How can I keep emacs from making the ~file.txt and #file.txt# files
> everytime I edit a file.
file.txt~ is a backup file. #file.txt# is an auto save file.
You can read about them in the Emacs manual, in the "Backup" and "Auto
Save" sections (surprise!):
| 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.
| Each time you visit a file, auto-saving is turned on for that file's
| buffer if the variable `auto-save-default' is non-`nil' (but not in
| batch mode; *note Entering Emacs::). The default for this variable is
| `t', so auto-saving is the usual practice for file-visiting buffers.
So:
(setq make-backup-files nil)
(setq auto-save-default nil) ; Don't do this!
--
Kevin Rodgers