diff options
author | Yuchen Pei <id@ypei.org> | 2023-06-19 11:19:19 +1000 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2023-06-19 22:41:03 +1000 |
commit | 06914aff2b0011d41bc50447965a8d7c6ef52c9b (patch) | |
tree | 278047a8c1c02347d5cf7a0119ac4cc373e3e191 /emacs/.emacs.d/lisp/my/my-magit.el | |
parent | f06c1c12456a598b7007a6ef08306051d0d49064 (diff) |
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
Diffstat (limited to 'emacs/.emacs.d/lisp/my/my-magit.el')
-rw-r--r-- | emacs/.emacs.d/lisp/my/my-magit.el | 11 |
1 files changed, 11 insertions, 0 deletions
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 |