summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-04-24 21:41:09 -0400
committerKyle Meyer <kyle@kyleam.com>2015-04-24 21:41:09 -0400
commit2e99283d231f195c33834ba834107d093ee3dd2e (patch)
tree8be1a75e4f9feccdb090c577a0a8af8835d32ee0
parent4e8e5b40d0a2889d7128cbd97d097f67d145f87b (diff)
downloademacs.d-2e99283d231f195c33834ba834107d093ee3dd2e.tar.gz
Add every git commit message to ring
https://github.com/magit/magit/issues/1677
-rw-r--r--lisp/init-git.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/init-git.el b/lisp/init-git.el
index f6397c0..f12389b 100644
--- a/lisp/init-git.el
+++ b/lisp/init-git.el
@@ -29,6 +29,10 @@
(magit-backup-mode -1))
(after 'git-commit
+ (add-hook 'git-commit-setup-hook
+ (lambda ()
+ (add-hook 'with-editor-pre-finish-hook
+ 'git-commit-save-message nil t)))
(add-hook 'git-commit-setup-hook 'git-commit-turn-on-flyspell))
(defun km/magit-auto-commit ()