[Top][All Lists]

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

Tramp backup stuff

From: Björn Lindström
Subject: Tramp backup stuff
Date: Thu, 15 Apr 2004 08:27:41 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.2 (gnu/linux)

Currently I use this thing for Tramp backups:

(add-to-list 'backup-directory-alist
             (cons tramp-file-name-regexp nil))

However, I think backup files lying around everywhere is a
nuisance. Ideally, I would like to have the backup directory for files
opened with Tramp set to /method:host:.backup. Is that possible? How?

Also acceptable would be to put them with my local backup files in
~/.backup/method:host:!path!of!file~1~ or something like that. I would
think that's what Tramp would do with backup-directory-alist set to
(("." . ".backup")). However, that leads to Tramp complaining about the
backup file name not being a Tramp file name (duh!).

If none of those setups are possible, I'd like to know how I disable
backups for Tramp files completely, by setting backup-inhibited locally
for those buffers. I would think I could do that with tramp-mode-hook or
something similar, but can't find it.

Björn Lindström <address@hidden>

reply via email to

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