emacsorg-modemagit

Can I make an org-mode link that open a magit-status buffer to a specific directory


I've been using org-mode to make a shortcut file so I can easily open files in emacs that I use a lot. But now I'd like to easily be able to open up a magit-status buffer for partiular repositories. Is there a way to make links in org-mode that will open those up?


Solution

  • You can use a link of type elisp:

    [[elisp:(magit-status "/my/repo")][magit status for my repository]]