From e26127da8db0a0cca1794d15f516526f1e2bf8b4 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 20 Apr 2020 21:28:19 +0200 Subject: [PATCH] Emacs: Set fill-column for git-commits to 72. It's required for Gentoo repos and recommended for emails. --- init.d/programming/git.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.d/programming/git.el b/init.d/programming/git.el index 10a17d7..6efd9ad 100644 --- a/init.d/programming/git.el +++ b/init.d/programming/git.el @@ -11,7 +11,10 @@ ;; Git integration. (use-package git-commit - :defer 2) + :defer 2 + :config (defun my/set-git-commit-fill-column () + (customize-set-variable 'fill-column 72)) + :hook (git-commit-mode . my/set-git-commit-fill-column)) (unless slow-computer (use-package magit