reddit / emacs

Disable TRAMP backups while keeping local backups

bespokey · 2022-12-25 20:02
Hi, How can I disable remote file backups while still maintaining local file backups?
simbledress · 2022-12-31 09:43
Maybe write a custom function for `backup-enable-predicate`, based on the default. (Suggestion based on a quick perusal of the manual section 'Backups')
bespokey · 2022-12-31 13:09
That, together with `file-remote-p` should do the job. I thought there would be something more built-in using the customization variables but it looks like the backup predicate function is the closest possible. Thanks!