summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2018-12-09 12:38:57 -0500
committerKyle Meyer <kyle@kyleam.com>2018-12-09 12:38:57 -0500
commitbd71d692966ea68545bb0181f5644872fbcb3147 (patch)
treee2d2bce13036b3b2008e488f674a077c776dd666
parent850b95cc03bc043c165145eb93925b88b3f737b7 (diff)
downloademacs.d-bd71d692966ea68545bb0181f5644872fbcb3147.tar.gz
git-commit-setup-hook: Add git-commit-turn-on-flyspell
I should have done this in d83dd13 (Drop km/git-commit-turn-on-flyspell, 2018-08-25).
-rw-r--r--init.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.el b/init.el
index f76a5e5..c84ff02 100644
--- a/init.el
+++ b/init.el
@@ -1212,6 +1212,9 @@
(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)
+
(advice-add
'git-commit-prev-message :after
(lambda (&rest _) (goto-char (point-min)))