1

I make lots of spelling errors when constructing my commit message. It would be cool if I could add a hook to magit such that when I execute C-c C-c, it would run ispell before completing the commit message.

I can't figure out how to hack it, but I'm wondering if anyone else has tried to do this

5

There is no need to hack anything - just add git-commit-turn-on-flyspell to git-commit-setup-hook. If you use the Custom interface to do so, then that is even one of the suggested functions for that hook.

  • TIL about flyspell. This helps me out a lot, I'm adding it to all my modes. – Joe Heyming Aug 30 '17 at 18:30
0

Add (add-hook 'git-commit-setup-hook 'git-commit-turn-on-flyspell) line to the emacs config file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.