From 06914aff2b0011d41bc50447965a8d7c6ef52c9b Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Mon, 19 Jun 2023 11:19:19 +1000 Subject: precision fixes - Adding org-jira - Also fixed getting builders in buildbot - Adding gdb-mi and gud - Adding gdb and shell configs - Also mariadb dev related stuff - A few more modes - some more updates --- emacs/.emacs.d/lisp/my/my-magit.el | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'emacs/.emacs.d/lisp/my/my-magit.el') diff --git a/emacs/.emacs.d/lisp/my/my-magit.el b/emacs/.emacs.d/lisp/my/my-magit.el index 779c7c7..cf6749b 100644 --- a/emacs/.emacs.d/lisp/my/my-magit.el +++ b/emacs/.emacs.d/lisp/my/my-magit.el @@ -55,5 +55,16 @@ (interactive) (magit-status (my-project-read-project-root))) +;; override `magit-status' to allow build dir and src dir distinction +;; FIXME: there ought to be a better solution to do project things +;; from the builddir +(defun my-magit-status () + (interactive) + (if (magit-toplevel) + (magit-status) + (magit-status + (replace-regexp-in-string "/build\\>.*" "/src" + default-directory)))) + (provide 'my-magit) ;;; my-magit.el ends here -- cgit v1.2.3