Configure tramp for sudo over ssh

This commit is contained in:
Wojciech Kozlowski 2017-09-02 23:37:02 +01:00
parent d9f3bbc66e
commit a6fb3b0a19
2 changed files with 10 additions and 0 deletions

1
.gitignore vendored
View File

@ -8,4 +8,5 @@ projectile-bookmarks.eld
projectile.cache
semanticdb
ede-projects.el
tramp
*~

View File

@ -175,6 +175,15 @@
(add-hook 'prog-mode-hook 'goto-address-mode)
(add-hook 'text-mode-hook 'goto-address-mode)
;; --------------------------------------------------------------------------
;; Tramp configuration.
;; --------------------------------------------------------------------------
(use-package tramp
:defer t
:config
(add-to-list 'tramp-default-proxies-alist '(nil "\\`root\\'" "/ssh:%h:")))
;; --------------------------------------------------------------------------
;; Configure garbage collection.
;;