all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Inhibit backup on special directories
@ 2005-04-23 16:20 Ismael Valladolid Torres
  2005-04-23 17:46 ` Ian Zimmerman
  0 siblings, 1 reply; 2+ messages in thread
From: Ismael Valladolid Torres @ 2005-04-23 16:20 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Inhibit backup on special directories
  2005-04-23 16:20 Inhibit backup on special directories Ismael Valladolid Torres
@ 2005-04-23 17:46 ` Ian Zimmerman
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Zimmerman @ 2005-04-23 17:46 UTC (permalink / raw)



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

C-h v backup-enable-predicate

-- 
Optimist: We're only two weeks behind schedule.
Pessimist: The schedule is a whole two weeks ahead of us.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-04-23 17:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-23 16:20 Inhibit backup on special directories Ismael Valladolid Torres
2005-04-23 17:46 ` Ian Zimmerman

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.