On Tue, May 5, 2009 at 3:59 AM, Memnon Anon <gegendosenflei...@gmail.com> wrote: > 明覺 <shi.min...@gmail.com> writes: > >> thank you, now I prefer the way to keep all the backup and autosave >> files in a seperate directory, such as ~/.emacs.d/autosave and >> ~/.emacs.d/backup, how could i setup that? I'm not familiar with >> emacs, currently in my machine, there is only the ~/.emacs.d/ >> directory which seems relative to emacs setup. Could you help give a >> document that details the setup steps for those purpose? thanks > > I have this in my .emacs: > ;; Backup > (defvar backup-dir (expand-file-name "~/.emacs.d/ebackup/")) > (defvar autosave-dir (expand-file-name "~/.emacs.d/eautosave/")) > (setq backup-directory-alist (list (cons ".*" backup-dir))) > (setq auto-save-list-file-prefix autosave-dir) > (setq auto-save-file-name-transforms `((".*" ,autosave-dir t))) > > I am not sure, I think it was in the emacs faq. do you mean I create the file ~/.emacs, and fill the file with the following content? thanks
;; Backup (defvar backup-dir (expand-file-name "~/.emacs.d/ebackup/")) (defvar autosave-dir (expand-file-name "~/.emacs.d/eautosave/")) (setq backup-directory-alist (list (cons ".*" backup-dir))) (setq auto-save-list-file-prefix autosave-dir) (setq auto-save-file-name-transforms `((".*" ,autosave-dir t))) > hth > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > > -- My platform is Gnu/Linux Debian(sid-amd64, lenny-intelx86) Gnome Mozilla/Iceweasel Gmail/Evolution Gtkmm/Anjuta/Emacs Scim Totem Pidgin. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org