;; -*- lexical-binding: t -*-

(defconst my-yadm-packages '(magit))

(defun my-yadm/post-init-magit ()
  (spacemacs/set-leader-keys "oy" #'yadm-status)

  (when (configuration-layer/package-used-p 'magit-todos)
    (advice-add 'magit-todos--insert-todos :around
                #'yadm--magit-todos-manual-scan-ad))

  (with-eval-after-load 'tramp
    (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"))))))

;; -*- lexical-binding: t -*-

(defconst my-yadm-packages '(magit))

(defun my-yadm/post-init-magit ()
  (spacemacs/set-leader-keys "oy" #'yadm-status)

  (when (configuration-layer/package-used-p 'magit-todos)
    (advice-add 'magit-todos--insert-todos :around
                #'yadm--magit-todos-manual-scan-ad))

  (with-eval-after-load 'tramp
    (add-to-list 'tramp-methods
                 '("yadm"
                   (tramp-login-program "env")
                   (tramp-login-args (("SHELL=/bin/sh") ("yadm") ("enter")))
                   (tramp-remote-shell "/bin/sh")
                   (tramp-remote-shell-args ("-c"))))))

Fix yadm integration to work with Emacs 27.1 as well
Fix yadm integration to work with Emacs 27.1 as well

Since tramp-login-env is no more, this achieves the same effect without it.

amfranz/spacemacs.d