feat(emacs): remove Yadm config
This commit is contained in:
@@ -480,30 +480,4 @@ the following code.
|
|||||||
(require 'tramp-sh)
|
(require 'tramp-sh)
|
||||||
(setq tramp-remote-path (append tramp-remote-path
|
(setq tramp-remote-path (append tramp-remote-path
|
||||||
'(tramp-own-remote-path)))
|
'(tramp-own-remote-path)))
|
||||||
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
*** Yadm
|
|
||||||
[[https://yadm.io/][~yadm~]] is a git wrapper made to easily manage your dotfiles. It has
|
|
||||||
loads of features I don’t use (the main one I like but don’t use is
|
|
||||||
its [[https://yadm.io/docs/templates][Jinja-like host and OS-aware syntax]]), but unfortunately Magit
|
|
||||||
doesn’t play nice with it. Tramp to the rescue, and this page explains
|
|
||||||
how! Let’s just insert in my config this code snippet:
|
|
||||||
#+name: tramp-add-yadm
|
|
||||||
#+begin_src emacs-lisp :tangle no
|
|
||||||
(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"))))
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
I’ll also create a fuction for connecting to this new Tramp protocol:
|
|
||||||
#+begin_src emacs-lisp
|
|
||||||
(defun my/yadm ()
|
|
||||||
"Manage my dotfiles through TRAMP."
|
|
||||||
(interactive)
|
|
||||||
(magit-status "/yadm::"))
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|||||||
Reference in New Issue
Block a user