summaryrefslogtreecommitdiff
path: root/.config/emacs/init.el
diff options
context:
space:
mode:
Diffstat (limited to '.config/emacs/init.el')
-rw-r--r--.config/emacs/init.el8
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