summaryrefslogtreecommitdiff
path: root/.config/emacs
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-18 19:46:21 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-08-18 19:46:21 +0200
commit6578d33fd00be0bbd48619b178d4bae4f7b43d60 (patch)
tree114f926c90fc8197fc3ed28ec238fd070809b96a /.config/emacs
parentf7e5d62d8c2ca621d0a2e084049e8d3bc35bd838 (diff)
emacs: Add ‘magit-status’ to project menu
Diffstat (limited to '.config/emacs')
-rw-r--r--.config/emacs/config.org9
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/emacs/config.org b/.config/emacs/config.org
index ed5ba86..ae97243 100644
--- a/.config/emacs/config.org
+++ b/.config/emacs/config.org
@@ -637,6 +637,15 @@ that simply finds all the TODOs in a repository and displays them in the
:after magit
:init (magit-todos-mode))
+ (defun mango--magit-status ()
+ (interactive)
+ (thread-last
+ (project-current t)
+ (project-root)
+ (magit-status)))
+
+ (add-to-list 'project-switch-commands '(mango--magit-status "Git Status" ?g))
+
#+END_SRC
*** Tree-Sitter