git-commit-overlong-summary and hl-line don't work well together
git-commit-overlong-summary
highlights characters that go beyond a given threshold. This is useful to limit the length of a commit message's first line:
This is good but when hl-line
mode highlights the first line, git-commit-overlong-summary
becomes hard to distinguish from the rest of the text:
Why not using modus-themes-lang-error
instead?
Here is how I implemented that:
--- /nix/store/fiqlrgdirzqrxnk976m04jccms6ip0sk-emacs-gcc-28-20211123.0/share/emacs/28.0.60/etc/themes/modus-themes.el
+++ #<buffer modus-themes.el>
@@ -5465,7 +5465,7 @@
`(git-commit-keyword ((,class :foreground ,magenta)))
`(git-commit-known-pseudo-header ((,class :foreground ,cyan-alt-other)))
`(git-commit-nonempty-second-line ((,class :inherit modus-themes-refine-yellow)))
- `(git-commit-overlong-summary ((,class :inherit modus-themes-refine-yellow)))
+ `(git-commit-overlong-summary ((,class :inherit (modus-themes-lang-error git-commit-summary))))
`(git-commit-pseudo-header ((,class :foreground ,blue)))
`(git-commit-summary ((,class :inherit bold :foreground ,cyan)))
;;;;; git-gutter