summaryrefslogtreecommitdiff
path: root/dot-config/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'dot-config/emacs')
-rw-r--r--dot-config/emacs/init.el22
1 files changed, 22 insertions, 0 deletions
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)