mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Remove tramp-read-passwd advice
tramp-current-method is no longer defined in Emacs 27, and this advice may not be necessary anymore.
This commit is contained in:
@ -52,14 +52,6 @@
|
|||||||
(unless IS-WINDOWS
|
(unless IS-WINDOWS
|
||||||
(setq tramp-default-method "ssh")) ; faster than the default scp
|
(setq tramp-default-method "ssh")) ; faster than the default scp
|
||||||
|
|
||||||
(defadvice! +default-inhibit-authinfo-for-sudo-a (orig-fn &rest args)
|
|
||||||
"Don't consult .authinfo for local sudo TRAMP buffers."
|
|
||||||
:around #'tramp-read-passwd
|
|
||||||
(let ((auth-sources
|
|
||||||
(unless (equal tramp-current-method "sudo")
|
|
||||||
auth-sources)))
|
|
||||||
(apply orig-fn args)))
|
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;;; Smartparens config
|
;;; Smartparens config
|
||||||
|
Reference in New Issue
Block a user