diff options
author | Thanos Apollo <[email protected]> | 2024-11-10 14:59:56 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-11-10 15:10:27 +0200 |
commit | 5d9721fdd445788957e93e25ad60f8263fde7447 (patch) | |
tree | 716a15f2a8312c41b046b5a76909978a2671a8d3 | |
parent | 684f6a214ff0d9106d2172539c6502064b8320e3 (diff) |
emacs: vc: Add vc-git-edit-commit-message
-rw-r--r-- | .config/emacs/init.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 24b57a2..539ddc6 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -672,7 +672,13 @@ rss.xml" anna piracy) "Format patches for NUM of last commits" (interactive (list (read-number "Number of commits: "))) (vc-git-command nil 0 nil "format-patch" (format "-%d" num)) - (message "Done."))) + (message "Done.")) + + (defun vc-git-reword-commit () + "Edit current commit message" + (interactive) + (vc-checkin nil 'git nil nil nil "") + (vc-git-log-edit-toggle-amend))) (use-package corfu :ensure t |