简体   繁体   中英

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?

您可以使用elisp类型的链接:

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

Apparently now it's possible to use a link of type orgit :

 [[orgit:/path/to/repo][magit status for my repo]]

See

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM