all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Todd Wylie <twylie@watson.wustl.edu>
Subject: Re: universal backup directory
Date: 27 Jan 2003 14:02:42 -0600	[thread overview]
Message-ID: <ilr8aywecd.fsf@linus13.wustl.edu> (raw)
In-Reply-To: m3lm16qtpu.fsf@vh213602.truman.edu


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	other threads:[~2003-01-27 20:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1039.1043683280.21513.help-gnu-emacs@gnu.org>
2003-01-27 17:48 ` universal backup directory Kai Großjohann
2003-01-27 19:27   ` Jay Belanger
2003-01-27 20:02     ` Todd Wylie [this message]
2003-01-27 22:49       ` Kevin Rodgers
2003-01-27 21:25   ` Stefan Monnier <foo@acm.com>
2003-01-27 17:56 ` Phillip Lord
2003-01-27 18:02 ` Benjamin Riefenstahl
2003-01-27 15:43 john doe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ilr8aywecd.fsf@linus13.wustl.edu \
    --to=twylie@watson.wustl.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.