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

View File

@ -135,7 +135,8 @@
:bind ("C-c C-f" . find-file-as-root) :bind ("C-c C-f" . find-file-as-root)
:config :config
(add-to-list 'tramp-remote-path 'tramp-own-remote-path) (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 () (defun find-file-as-root ()
(interactive) (interactive)
(find-alternate-file (concat "/sudo::" (buffer-file-name))))) (find-alternate-file (concat "/sudo::" (buffer-file-name)))))