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

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

Re: How to switch off autobackup for files loaded from tramp?


From: Manuel Giraud
Subject: Re: How to switch off autobackup for files loaded from tramp?
Date: Mon, 29 Jan 2024 19:52:14 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Steinar Bang <sb@dod.no> writes:

[...]

> Anyway: does someone have a current, working, config that will disable
> autobackup on files loaded from tramp?

Hi,

I have this in my init file:

--8<---------------cut here---------------start------------->8---
(setq backup-enable-predicate
      (lambda (name)
        (and (normal-backup-enable-predicate name)
             (not (file-remote-p name)))))
--8<---------------cut here---------------end--------------->8---
-- 
Manuel Giraud



reply via email to

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