help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: universal backup directory


From: Todd Wylie
Subject: Re: universal backup directory
Date: 27 Jan 2003 14:02:42 -0600
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2

Using:

(setq backup-directory-alist '(("." . "~/.emacs_backups")))

Seems to do the trick... thanks! Interestingly, filenames seem to be keeping 
entire directory path and simply replacing "/" with "!".

Cheers.


Jay Belanger <belanger@truman.edu> writes:


> john doe <m0nkeyd0g2000@yahoo.com> writes:
> 
> > ;; MAKE ALL BACKUPS TO A SINGLE DIRECTORY 
> > (setq backup-directory-alist `(("." .
> > ,(file-name-nondirectory "~/.emacs_backups"))))
> >  
> > This will make backups in the current directory to a
> > dir called .emacs_backups -- however, is there a way
> > to make one universal backup directory that all emacs
> > files go to regardless of where they are saved?
> 
> The `file-name-nondirectory' strips the "~/" from "~/.emacs_backups",
> and so what you have is equivalent to 
> 
> (setq backup-directory-alist '(("." ".emacs_backups")))
> 
> and so .emacs_backup is put in the current directory.  You probably
> want
> 
> (setq backup-directory-alist '(("." "~/.emacs_backups")))
> 
> Jay



reply via email to

[Prev in Thread] Current Thread [Next in Thread]