14 Nov 2007 at 02:25 #1 tntcoder tntcoder Soldato Joined 7 Apr 2004 Posts 4,212 Hi, Anyone know how to stop emacs making backup copies of edited files? i.e stop it making ~file.txt when editing file.txt. Thanks, Jack
Hi, Anyone know how to stop emacs making backup copies of edited files? i.e stop it making ~file.txt when editing file.txt. Thanks, Jack
14 Nov 2007 at 11:25 #2 memyselfandi memyselfandi Soldato Joined 10 Oct 2005 Posts 8,706 Location Nottingham Try putting the following in your .emacs file: [FONT=Verdana, Arial, Helvetica, sans-serif][SIZE=-1] ;; do not make backup files (setq make-backup-files nil) source: here alternatively it looks like you can have Emacs store them all centrally: [/SIZE][/FONT] ;; ========== Place Backup Files in Specific Directory ========== ;; Enable backup files. (setq make-backup-files t) ;; Enable versioning with default values (keep five last versions, I think!) (setq version-control t) ;; Save all backup file in this directory. (setq backup-directory-alist (quote ((".*" . "~/.emacs_backups/")))) source: here (both sources have other customisations to) Last edited: 14 Nov 2007
Try putting the following in your .emacs file: [FONT=Verdana, Arial, Helvetica, sans-serif][SIZE=-1] ;; do not make backup files (setq make-backup-files nil) source: here alternatively it looks like you can have Emacs store them all centrally: [/SIZE][/FONT] ;; ========== Place Backup Files in Specific Directory ========== ;; Enable backup files. (setq make-backup-files t) ;; Enable versioning with default values (keep five last versions, I think!) (setq version-control t) ;; Save all backup file in this directory. (setq backup-directory-alist (quote ((".*" . "~/.emacs_backups/")))) source: here (both sources have other customisations to)