From 7456943c075923b99769cb9ff45801974b8f30bf Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Mon, 27 Nov 2023 17:14:00 +0100 Subject: [PATCH] Limit line width in git commit messages to 72 characters This is per https://cbea.ms/git-commit/#wrap-72 and makes the line width in git commit messages independent of the global fill-column setting. --- init.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index d0e7377..2a1ba4c 100644 --- a/init.el +++ b/init.el @@ -1304,7 +1304,10 @@ "Suggested-by" "Reported-by" "Tested-by" - "Reviewed-by"))) + "Reviewed-by")) + :config (add-hook 'git-commit-mode-hook + #'(lambda () + (setq fill-column 72)))) (use-package highlight-indentation :commands highlight-indentation-mode)