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:
parent
d3292e0329
commit
fb03dd8df3
1 changed files with 0 additions and 8 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue