[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: revert-buffer tragedy
From: |
Denis Bueno |
Subject: |
Re: revert-buffer tragedy |
Date: |
Sat, 23 Apr 2005 00:48:54 -0400 |
On 4/22/05, Lowell Kirsh <lkirsh@cs.ubc.ca> wrote:
> Any ideas how I might be able to
> recover my work?
Not quite sure I can help you recover it, but, I have some very
paranoid settings in my .emacs to avoid just this situation. If you
don't have something like the following, adding them will prevent such
tragedies in the future.
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(auto-save-interval 100) ;backups every 100 keystrokes
...)
;; Backups to central location
(setq make-backup-files t ;backup my files
backup-by-copying t ;don't clobber symlinks
backup-directory-alist '(("." . "~/.emacs.d/saves")) ;don't litter
delete-old-versions t
kept-new-versions 6
kept-old-versions 2
version-control t ;use versioned backups
vc-make-backup-files t ;make backups for cvs projects
vc-follow-symlinks t)
-Denis
PGP: http://pgp.mit.edu:11371/pks/lookup?search=0xA1B51B4B&op=index