summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2018-08-25 20:05:56 -0400
committerKyle Meyer <kyle@kyleam.com>2018-08-25 20:13:21 -0400
commitd83dd13307d7c17257c0c1b457fa0687dd07e482 (patch)
tree0524fec437819aef093c5465147f8476f78173c9
parent330252b3069b33508600ead70c8dbae553fc76a3 (diff)
downloademacs.d-d83dd13307d7c17257c0c1b457fa0687dd07e482.tar.gz
Drop km/git-commit-turn-on-flyspell
That predated Magit's 24c96608 (git-commit-turn-on-flyspell: avoid unnecessary work, 2017-12-03) and shouldn't be necessary now.
-rw-r--r--init.el2
-rw-r--r--lisp/km-magit.el6
2 files changed, 0 insertions, 8 deletions
diff --git a/init.el b/init.el
index 851ee68..9324359 100644
--- a/init.el
+++ b/init.el
@@ -1237,8 +1237,6 @@
(lambda ()
(add-hook 'with-editor-pre-finish-hook
#'git-commit-save-message nil t)))
- (add-hook 'git-commit-setup-hook #'km/git-commit-turn-on-flyspell)
-
(advice-add
'git-commit-prev-message :after
(lambda (&rest _) (goto-char (point-min)))
diff --git a/lisp/km-magit.el b/lisp/km-magit.el
index 83b6b08..663fcde 100644
--- a/lisp/km-magit.el
+++ b/lisp/km-magit.el
@@ -621,12 +621,6 @@ argument. Interactively, this can be accessed using the command
(magit-stash-store message "refs/stash" commit))
(magit-refresh))
-(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))
-
(defun km/magit-log-current (&optional args files)
"Like `magit-log-current', but if head is detached, use \"HEAD\"."
(interactive (magit-log-arguments))