Move git-commit style settings to hook
+vc|enforce-git-commit-conventions Also, use fill-column instead of git-commit-fill-column, which magit has deprecated.
This commit is contained in:
parent
0ee42c1df0
commit
3284356fc2
1 changed files with 6 additions and 4 deletions
|
@ -22,10 +22,12 @@
|
||||||
|
|
||||||
|
|
||||||
;; `git-commit-mode'
|
;; `git-commit-mode'
|
||||||
;; see https://chris.beams.io/posts/git-commit/
|
(defun +vc|enforce-git-commit-conventions ()
|
||||||
(setq git-commit-fill-column 72
|
"See https://chris.beams.io/posts/git-commit/"
|
||||||
git-commit-summary-max-length 50
|
(setq fill-column 72
|
||||||
git-commit-style-convention-checks '(overlong-summary-line non-empty-second-line))
|
git-commit-summary-max-length 50
|
||||||
|
git-commit-style-convention-checks '(overlong-summary-line non-empty-second-line)))
|
||||||
|
(add-hook 'git-commit-mode-hook #'+vc|enforce-git-commit-conventions)
|
||||||
(when (featurep! :feature evil)
|
(when (featurep! :feature evil)
|
||||||
(add-hook 'git-commit-mode-hook #'evil-insert-state))
|
(add-hook 'git-commit-mode-hook #'evil-insert-state))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue