summary refs log tree commit diff
path: root/emacs/custom
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-26 19:19:28 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-26 19:19:28 -0700
commitc277c277aeed97c1d254959627326e8884cadfc5 (patch)
tree8fd8faaf2d0d7c260702f557dc93cefc0c75985a /emacs/custom
parentdired: simplify so we don't need to require (diff)
downloademacs.d-c277c277aeed97c1d254959627326e8884cadfc5.tar.gz
tramp: simplify to speed up
Diffstat (limited to 'emacs/custom')
-rw-r--r--emacs/custom/my-tramp.el11
1 files changed, 4 insertions, 7 deletions
diff --git a/emacs/custom/my-tramp.el b/emacs/custom/my-tramp.el
index 469b58f..3d87f7a 100644
--- a/emacs/custom/my-tramp.el
+++ b/emacs/custom/my-tramp.el
@@ -4,13 +4,10 @@
 
 ;;; Code:
 
-(require 'tramp)
-(require 'tramp-sh)
-
-(setq tramp-default-method "ssh")
-(setq tramp-histfile-override t)
-(setq tramp-persistency-file-name (expand-file-name "var/tramp" user-emacs-directory))
-(setq tramp-ssh-controlmaster-options "-o ControlMaster=auto -o ControlPath='tramp.%%C'")
+(customize-set-variable 'tramp-persistency-file-name (expand-file-name "var/tramp" user-emacs-directory))
+(customize-set-variable 'tramp-default-method "ssh")
+(customize-set-variable 'tramp-histfile-override t)
+(customize-set-variable 'tramp-ssh-controlmaster-options "-o ControlMaster=auto -o ControlPath='tramp.%%C'")
 
 (provide 'my-tramp)
 ;;; my-tramp.el ends here