From 6578d33fd00be0bbd48619b178d4bae4f7b43d60 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 18 Aug 2023 19:46:21 +0200 Subject: emacs: Add ‘magit-status’ to project menu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/emacs/config.org | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '.config/emacs') 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 -- cgit v1.2.3