Remove defunct tramp advise

This commit is contained in:
Henrik Lissner 2018-03-26 18:14:00 -04:00
parent 486dbbc2cc
commit 040fedfeaf
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -227,11 +227,5 @@ with functions that require it (like modeline segments)."
buffer)) buffer))
(advice-add #'make-indirect-buffer :around #'doom*set-indirect-buffer-filename) (advice-add #'make-indirect-buffer :around #'doom*set-indirect-buffer-filename)
(defun doom*no-authinfo-for-tramp (orig-fn &rest args)
"Don't look into .authinfo for local sudo TRAMP buffers."
(let ((auth-sources (if (equal tramp-current-method "sudo") nil auth-sources)))
(apply orig-fn args)))
(advice-add #'tramp-read-passwd :around #'doom*no-authinfo-for-tramp)
(provide 'core) (provide 'core)
;;; core.el ends here ;;; core.el ends here