Enable new `tramp-show-ad-hoc-proxies` from Emacs 29.2

This commit is contained in:
Adam Goldsmith 2024-01-24 16:04:04 -05:00
parent a3813e1290
commit 760e779db5
1 changed files with 2 additions and 1 deletions

View File

@ -135,7 +135,8 @@
:bind ("C-c C-f" . find-file-as-root)
:config
(add-to-list 'tramp-remote-path 'tramp-own-remote-path)
(setq tramp-default-method "ssh")
(setq tramp-default-method "ssh"
tramp-show-ad-hoc-proxies t)
(defun find-file-as-root ()
(interactive)
(find-alternate-file (concat "/sudo::" (buffer-file-name)))))