From 67e3f196e90580e49b25e665006a3352d8da346f Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Mon, 15 Feb 2016 01:50:56 -0500 Subject: Advice git-commit-prev-message to go to bob --- init.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'init.el') diff --git a/init.el b/init.el index e6ff37e..7eb4d82 100644 --- a/init.el +++ b/init.el @@ -996,7 +996,12 @@ (lambda () (add-hook 'with-editor-pre-finish-hook #'git-commit-save-message nil t))) - (add-hook 'git-commit-setup-hook #'km/git-commit-turn-on-flyspell)) + (add-hook 'git-commit-setup-hook #'km/git-commit-turn-on-flyspell) + + (advice-add + 'git-commit-prev-message :after + (lambda (&rest _) (goto-char (point-min))) + '((name . "go-to-bob")))) (use-package orgit :load-path "~/src/emacs/orgit/" -- cgit v1.2.3