From 5a5e8ca6140ad775e030c422bcd7dcab10dc7d11 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Mon, 15 Feb 2016 01:50:44 -0500 Subject: Add git-commit-turn-on-flyspell variant --- lisp/km-magit.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lisp/km-magit.el') 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 -- cgit v1.2.3