config/doom: configure tramp for magit through yadm

This commit is contained in:
xeruf 2021-05-02 20:32:42 +02:00
parent e4687d37e2
commit b4428d3a1a
1 changed files with 12 additions and 4 deletions

View File

@ -271,10 +271,18 @@
;;;; PACKAGES
;; https://emacs.stackexchange.com/questions/16744/magit-help-popup-enabled-by-default
(defadvice magit-status (after my-magit-status-dispatch-popup)
(call-interactively 'magit-dispatch))
(ad-activate 'magit-status)
(use-package! tramp
:config
(add-to-list 'tramp-methods
'("yadm"
(tramp-login-program "yadm")
(tramp-login-args (("enter")))
(tramp-login-env (("SHELL") ("/bin/sh")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c"))))
(map! :leader
:desc "Yadm status" "gT" (lambda () (interactive) (magit-status "/yadm::")))
)
(use-package! evil-replace-with-register ; gr
:init