about summary refs log tree commit diff
path: root/users/tazjin/emacs/config/functions.el
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-12-20T08·49+0300
committerclbot <clbot@tvl.fyi>2021-12-20T08·52+0000
commit6328f1c7c8df25d5596d8dc97c6ab50778dbb0a9 (patch)
tree870c21abe9af2ee86b64cee0fb918da4e88c09db /users/tazjin/emacs/config/functions.el
parent9f9644c41fd9d18bff1cf6d0034dbabd5bc75b15 (diff)
feat(tazjin/emacs): add zoxide-open-magit and a binding for it r/3327
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
Diffstat (limited to 'users/tazjin/emacs/config/functions.el')
-rw-r--r--users/tazjin/emacs/config/functions.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/users/tazjin/emacs/config/functions.el b/users/tazjin/emacs/config/functions.el
index 5963d142c14b..ba7301e7940d 100644
--- a/users/tazjin/emacs/config/functions.el
+++ b/users/tazjin/emacs/config/functions.el
@@ -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)