From b6a0e0eaa69d071317f1d4fff6b0b2340f11c47d Mon Sep 17 00:00:00 2001 From: JSDurand Date: Sun, 10 Apr 2022 11:18:21 +0800 Subject: Move the tramp configuration to tramp-conf. * common.el: Tramp configurations should be put in a separate file. * tramp-conf.el (tramp-methods): Fix the copy arg. (backup-directory-alist): Disable backups for Tramp. (tramp-allow-unsafe-temporary-files): Don't ask this every time. --- common.el | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'common.el') diff --git a/common.el b/common.el index 73d00c8..0bc0d60 100644 --- a/common.el +++ b/common.el @@ -196,25 +196,6 @@ the window to the function with max-height equal to (define-key Info-mode-map (vector 41) #'Info-forward-node) -;;; Fix a Tramp arg - -(require 'tramp) - -(cond - ((assoc "rsync" tramp-methods #'equal) - (setcar - (cdr - (assoc - 'tramp-copy-args - (assoc "rsync" tramp-methods #'equal))) - (list - (list "-t" "%k") - (list "-p") - (list "-r") - ;; this option is invalid for my rsync program, for some reason - ;; ("-s") - (list "-c"))))) - ;; (defun durand-display-in-one-window (buffer _alist) ;; "Display BUFFER in one window. ;; ALIST is an association list of action symbols and values. See -- cgit v1.2.3-18-g5258