summaryrefslogtreecommitdiff
path: root/lisp/km-magit.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-02-15 01:50:44 -0500
committerKyle Meyer <kyle@kyleam.com>2016-02-15 01:50:44 -0500
commit5a5e8ca6140ad775e030c422bcd7dcab10dc7d11 (patch)
tree71757abd7d775ad1a95c847646479a28fd9a827a /lisp/km-magit.el
parent91a5a0f229b3ad46c4bb767d70af696bc4c8d748 (diff)
downloademacs.d-5a5e8ca6140ad775e030c422bcd7dcab10dc7d11.tar.gz
Add git-commit-turn-on-flyspell variant
Diffstat (limited to 'lisp/km-magit.el')
-rw-r--r--lisp/km-magit.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/km-magit.el b/lisp/km-magit.el
index e96996c..91a6e6c 100644
--- a/lisp/km-magit.el
+++ b/lisp/km-magit.el
@@ -589,6 +589,12 @@ argument. Interactively, this can be accessed using the command
(interactive "P")
(km/magit-diff-visit-file prev-rev t))
+(defun km/git-commit-turn-on-flyspell ()
+ "Like `git-commit-turn-on-flyspell', but don't check buffer initially."
+ (setq flyspell-generic-check-word-predicate
+ 'git-commit-flyspell-verify)
+ (turn-on-flyspell))
+
;;; Git Rebase mode