diff --git a/docs/emacs/packages/emacs-builtin.org b/docs/emacs/packages/emacs-builtin.org index 7d34418..7a1bcf8 100644 --- a/docs/emacs/packages/emacs-builtin.org +++ b/docs/emacs/packages/emacs-builtin.org @@ -480,30 +480,4 @@ the following code. (require 'tramp-sh) (setq tramp-remote-path (append tramp-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