all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* backup files and autosave files
@ 2009-08-04  9:11 Decebal
  0 siblings, 0 replies; only message in thread
From: Decebal @ 2009-08-04  9:11 UTC (permalink / raw)
  To: help-gnu-emacs

I want my backup and autosave files not scattered over my HD.
For this I tried:
  (if (file-directory-p "~/.emacs.d/backup")
      (setq backup-directory-alist '(("." . "~/.emacs.d/backup")))
    (message "Directory does not exist: ~/.emacs.d/backup"))
  (if (file-directory-p "~/.emacs.d/autosave")
      (setq auto-save-file-name-transforms `((".*" "~/.emacs.d/
autosave/\\1" t)))
    (message "Directory does not exist: ~/.emacs.d/autosave"))

For backups this works. But my autosave files are saved as:
    ~/.emacs.d/autosave/#\1#
What do I need to do to get the same type of files with autosave as
with backup?


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-08-04  9:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-04  9:11 backup files and autosave files Decebal

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.