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

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

Inhibit backup on special directories


From: Ismael Valladolid Torres
Subject: Inhibit backup on special directories
Date: Sat, 23 Apr 2005 18:20:09 +0200

My USB disk mounts on /media/usbdisk. I'd like that, when editing files
located on that unit, backups are never created, at least on that
location.

I've come to this snippet:

 (setq backup-directory-alist
    '(("^/media/usbdisk/" . "/tmp")))

This works, it moves backups of all files there to /tmp, but I wonder if
I could simply inhibit backup file creation at all.

I see there's a variable called backup-inhibited, but I don't see how to
make it work for files in a given directory. Well, sorry I am not an
elisp expert by now!

Any ideas useful.

Cordially, Ismael





reply via email to

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