changeset 433:779ecb9643c2

tramp: tweak auto-save and backup file behavior for performance
author Augie Fackler <raf@durin42.com>
date Sun, 18 Jun 2017 22:43:18 -0400
parents f500f0847a77
children 2b5d868f81ac
files .elisp/settings/10.tramp.el
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.elisp/settings/10.tramp.el
+++ b/.elisp/settings/10.tramp.el
@@ -6,3 +6,8 @@
 ;; with BSD sh. Use bash instead.
 (add-to-list 'tramp-connection-properties
              (list (regexp-quote "home.durin42.com") "remote-shell" "bash"))
+
+;; Backup (file~) disabled and auto-save (#file#) locally to prevent delays in editing remote files
+(add-to-list 'backup-directory-alist
+             (cons tramp-file-name-regexp nil))
+(setq tramp-auto-save-directory temporary-file-directory)