about summary refs log tree commit diff stats
path: root/.emacs.d/lisp/init-tramp.el
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2021-08-17 12:49:19 +0100
committerDavid Morgan <djm_uk@protonmail.com>2021-08-17 12:49:19 +0100
commitd0db5660caa836755ea8c99471d816484ea9e837 (patch)
treec7d0456a58e450abaf34b489b0b31c58ddbc8557 /.emacs.d/lisp/init-tramp.el
parentc92b18514728245850d31531ce224a74eddfc5a6 (diff)
downloaddotfiles-d0db5660caa836755ea8c99471d816484ea9e837.tar.gz
Add new .emacs.d
Diffstat (limited to '.emacs.d/lisp/init-tramp.el')
-rw-r--r--.emacs.d/lisp/init-tramp.el19
1 files changed, 19 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-tramp.el b/.emacs.d/lisp/init-tramp.el
new file mode 100644
index 0000000..326344d
--- /dev/null
+++ b/.emacs.d/lisp/init-tramp.el
@@ -0,0 +1,19 @@
+;;; init-tramp.el --- Tramp Configuration File -*- lexical-binding: t -*-
+;;; Commentary:
+;;; Code:
+
+(use-package tramp
+  :ensure nil
+  :custom
+  (tramp-default-method "ssh")
+  (vc-ignore-dir-regexp
+   (format "\\(%s\\)\\|\\(%s\\)"
+           vc-ignore-dir-regexp
+           tramp-file-name-regexp))
+  (tramp-default-method "ssh")
+  (tramp-auto-save-directory (expand-file-name "tramp-auto-save" user-emacs-directory))
+  (tramp-persistency-file-name (expand-file-name "tramp-connection-history" user-emacs-directory))
+  (password-cache-expiry nil))
+
+(provide 'init-tramp)
+;;; init-tramp.el ends here