From 5d9721fdd445788957e93e25ad60f8263fde7447 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sun, 10 Nov 2024 14:59:56 +0200 Subject: emacs: vc: Add vc-git-edit-commit-message --- .config/emacs/init.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3