summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-02-15 01:50:56 -0500
committerKyle Meyer <kyle@kyleam.com>2016-02-15 01:50:56 -0500
commit67e3f196e90580e49b25e665006a3352d8da346f (patch)
treebd5fd13e3814936c68ba2eb77a7bc63d0e79f094
parent5a5e8ca6140ad775e030c422bcd7dcab10dc7d11 (diff)
downloademacs.d-67e3f196e90580e49b25e665006a3352d8da346f.tar.gz
Advice git-commit-prev-message to go to bob
-rw-r--r--init.el7
1 files changed, 6 insertions, 1 deletions
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/"