emacs: optimise TRAMP configuration
1 file changed, 19 insertions(+), 1 deletion(-)
changed files
M user/emacs/init.el → user/emacs/init.el
@@ -784,7 +784,25 @@ :config (progn (add-to-list 'tramp-default-proxies-alist '(nil "\\`root\\'" "/ssh:%h:")) (add-to-list 'tramp-default-proxies-alist - `(,(regexp-quote (system-name)) nil nil)))) + `(,(regexp-quote (system-name)) nil nil)) + + ;; https://coredumped.dev/2025/06/18/making-tramp-go-brrrr./ + (setq remote-file-name-inhibit-locks t + remote-file-name-inhibit-auto-save-visited t + tramp-use-scp-direct-remote-copying t + tramp-copy-size-limit 1048576 + tramp-default-method "rsync") + + (connection-local-set-profile-variables 'remote-direct-async-process + '((tramp-direct-async-process . t))) + + (connection-local-set-profiles '(:application tramp :machine "linde") + 'remote-direct-async-process) + + (setq magit-tramp-pipe-stty-settings 'pty) + + (with-eval-after-load 'compile + (remove-hook 'compilation-mode-hook #'tramp-compile-disable-ssh-controlmaster-options)))) (use-package ssh-deploy :config (progn