config/doom: configure tramp for magit through yadm
This commit is contained in:
parent
e4687d37e2
commit
b4428d3a1a
|
@ -271,10 +271,18 @@
|
||||||
|
|
||||||
;;;; PACKAGES
|
;;;; PACKAGES
|
||||||
|
|
||||||
;; https://emacs.stackexchange.com/questions/16744/magit-help-popup-enabled-by-default
|
(use-package! tramp
|
||||||
(defadvice magit-status (after my-magit-status-dispatch-popup)
|
:config
|
||||||
(call-interactively 'magit-dispatch))
|
(add-to-list 'tramp-methods
|
||||||
(ad-activate 'magit-status)
|
'("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
|
(use-package! evil-replace-with-register ; gr
|
||||||
:init
|
:init
|
||||||
|
|
Loading…
Reference in New Issue