From 5c35c8e5f7f443ef12a1046ea6092c99e4e9a505 Mon Sep 17 00:00:00 2001 From: José Juan Loeza Sierra Date: Sat, 11 Jul 2026 13:06:03 -0700 Subject: add some TRAMP options to emacs --- dot-config/emacs/init.el | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'dot-config/emacs/init.el') diff --git a/dot-config/emacs/init.el b/dot-config/emacs/init.el index 1e8178f..df63bbe 100644 --- a/dot-config/emacs/init.el +++ b/dot-config/emacs/init.el @@ -131,6 +131,28 @@ ;; Set spellcheck program (setq ispell-program-name "/usr/bin/aspell") +;; TRAMP +;; enable run0 +(with-eval-after-load 'tramp (tramp-enable-method "run0")) +;; disable session timeout +(setq tramp-connection-properties (list)) ;; init as empty list +(add-to-list 'tramp-connection-properties + (list nil "session-timeout" nil)) +;; below settings recommended by (info "(tramp) Frequently Asked Questions") +;; only care about git vc +(setq vc-handled-backends '(SVN Git)) +;; disable lock files +(setq remote-file-name-inhibit-locks t) +;; disable remote auto-saving +(setq remote-file-name-inhibit-auto-save t) +;; suppress reading remote history file +(setq shell-history-file-name t) +;; less traces +(setq tramp-verbose 1) +;; below settings from https://coredumped.dev/2025/06/18/making-tramp-go-brrrr./ +;(setq tramp-use-scp-direct-remote-copying t) +(setq remote-file-name-inhibit-auto-save-visited t) + ;; Word counter ;; Using unix wc because emacs's built-in 'count-words gives wrong count ;; https://www.emacswiki.org/emacs/WordCount#h5o-7 (the unix way) -- cgit v1.3