summaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-git.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/init-git.el b/lisp/init-git.el
index 4137bd9..c681491 100644
--- a/lisp/init-git.el
+++ b/lisp/init-git.el
@@ -27,7 +27,13 @@ If NOSELECT is non-nil, do not select the window."
:map magit-status-mode-map
;; make C-o and o behave as in dired
("o" . mpolden/magit-visit-file-other-window)
- ("C-o" . mpolden/magit-visit-file-other-window-noselect)))
+ ("C-o" . mpolden/magit-visit-file-other-window-noselect))
+
+ :config
+ ;; absorb automatically fixes up existing commits
+ ;; https://github.com/tummychow/git-absorb
+ (transient-replace-suffix 'magit-commit 'magit-commit-autofixup
+ '("x" "Absorb changes" magit-commit-absorb)))
(use-package forge
:ensure t