summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-09-28 14:26:14 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-09-30 22:34:04 -0700
commitc209e710b75fb356177e0945e5c60f6a529fb085 (patch)
tree4c91fabe294ee2bdf8a723674a1ecf0fbf962200
parentdf01390dea314203c31795bf4ffa89a2beb536bc (diff)
downloaddotfiles-c209e710b75fb356177e0945e5c60f6a529fb085.tar.gz
add spw/vc-next-action-for-git-fixup
-rw-r--r--.emacs.d/init.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 0bb861b1..5af8f7b9 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -3495,6 +3495,13 @@ mutt's review view, after exiting EDITOR."
(diff-hunk-kill))))
(spw/feature-define-keys diff-mode "\C-z\C-v" spw/diff-discard-hunk)
+(defun spw/vc-next-action-for-git-fixup ()
+ (interactive)
+ (save-window-excursion (call-interactively #'vc-next-action))
+ (call-interactively #'vc-print-root-log)
+ (message "Move point to the commit to fixup! into and type C-z f"))
+(global-set-key "\C-cvf" 'spw/vc-next-action-for-git-fixup)
+
;;;; Assorted packages