I would like to write helper functions in elisp for putting dotfiles under version control using YADM.
From their documentation I learned that I could call up the magit status buffer for the YADM directory like so:
(defun yadm-status () (interactive) (magit-status "/yadm::"))
I would like to write a similar function which takes a file I'm visiting, adds it to this repo, and opens a magit-status buffer.
magit-mode-setup after setting the a variable representing that repo?
My elisp is very basic and I don't know how to read the internals of magit.