From 2e99283d231f195c33834ba834107d093ee3dd2e Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Fri, 24 Apr 2015 21:41:09 -0400 Subject: Add every git commit message to ring https://github.com/magit/magit/issues/1677 --- lisp/init-git.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lisp') 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 () -- cgit v1.2.3