Noam Postavsky <[email protected]> writes: > On Sun, Aug 25, 2013 at 3:10 PM, Eric Schulte <[email protected]> wrote: >> The commit edit log is now in `fundamental-mode', and I can find no hook >> run when this buffer is opened. What would be the recommended way to >> re-enable such customization? > > You can install git-commit-mode from github.com/magit/git-modes, which > is now a dependency of magit (along with git-rebase-mode): > > (define-package "magit" "1.2.1-git" > "Control Git from Emacs." > '((cl-lib "0.3") > (git-commit-mode "0.14.0") > (git-rebase-mode "0.14.0"))) > > It runs git-commit-mode-hook (and fontifies the characters on the > first line past column 51 in git-commit-overlong-summary-face out of > the box).
Thanks, after installing these extra packages I can indeed use these hooks. The first line of the pre-populated git commit boilerplate is fontified in the `git-commit-overlong-summary-face'. To be clear, my COMMIT_EDITMSG buffer is opened with the following, and the second line is all in red. ,---- | | # Please enter the commit message for your changes. Lines starting | # with '#' will be ignored, and an empty message aborts the commit. | # On branch master | # Changes to be committed: | # (use "git reset HEAD <file>..." to unstage) | # `---- -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D -- --- You received this message because you are subscribed to the Google Groups "magit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
