I have tried:
(add-hook 'git-commit-mode-hook '(lambda ()
(setq fill-column 72)
(turn-on-auto-fill)))
- In both cases,
auto-fill-modeis not active in theCOMMIT_EDITMSGbuffer unless I manually turn it on withM-x auto-fill-mode RET. - Even when
auto-fill-modeis turned on, I can still type past the 72nd character on the same line.
Also, correct me if I'm wrong but it seems both git-commit-fill-column and git-commit-turn-on-auto-fill are deprecated.