I have tried:
(add-hook 'git-commit-mode-hook '(lambda ()
(setq fill-column 72)
(turn-on-auto-fill)))
- In both cases,
auto-fill-mode
is not active in theCOMMIT_EDITMSG
buffer unless I manually turn it on withM-x auto-fill-mode RET
. - Even when
auto-fill-mode
is 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.