I use emacsclient as my git commit editor.
This is what I have in my init file:
(require 'git-commit)
(add-hook 'git-commit-mode-hook 'turn-on-flyspell)
I just made a huge commit (update of a third-party SDK, which I have in my own repo). Emacsclient took absurdly much time spell checking what looks to be all the source files, instead of the commit message only. Like 15 minutes.
The default commit message shows the name of all changed files.
- is
flyspell
trying to spell check everything because the filenames are in the default commit message? - is
magit
the problem, trying to display diff? In that case, how can I setup my hook so that the commit message is spell checked, but not the source diff? I don't think I have spell check activated when I run magit normally.