2

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

2 Answers 2

6

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.

1
  • TIL about flyspell. This helps me out a lot, I'm adding it to all my modes. Aug 30, 2017 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 and acknowledge that you have read and understand our privacy policy and code of conduct.

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