diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-09-28 14:26:14 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-09-30 22:34:04 -0700 |
commit | c209e710b75fb356177e0945e5c60f6a529fb085 (patch) | |
tree | 4c91fabe294ee2bdf8a723674a1ecf0fbf962200 | |
parent | df01390dea314203c31795bf4ffa89a2beb536bc (diff) | |
download | dotfiles-c209e710b75fb356177e0945e5c60f6a529fb085.tar.gz |
add spw/vc-next-action-for-git-fixup
-rw-r--r-- | .emacs.d/init.el | 7 |
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 |