feat(tazjin/emacs): add zoxide-open-magit and a binding for it

Change-Id: Ibe3264769ab6e6d1400088e8a72d3ef22dc4cd78
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4514
Reviewed-by: tazjin <mail@tazj.in>
Autosubmit: tazjin <mail@tazj.in>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2021-12-20 11:49:23 +03:00 committed by clbot
parent 9f9644c41f
commit 6328f1c7c8
2 changed files with 8 additions and 0 deletions

View file

@ -325,4 +325,9 @@ the GPG agent correctly."
(if-let ((pr (project-current)))
(project-root pr)))))
(defun zoxide-open-magit ()
"Query Zoxide for paths and open magit in the result."
(interactive)
(zoxide-open-with nil #'magit-status-setup-buffer))
(provide 'functions)