From 7cb21556b6031c9f7e187329b6663768425aa850 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Mon, 17 Apr 2023 19:52:22 +0200 Subject: [PATCH] snippets: tempel: Simplify git-commit-mode detection. * etc/snippets/tempel/text-mode: Simplify git-commit-mode detection. Signed-off-by: Andrew Tropin --- etc/snippets/tempel/text-mode | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/snippets/tempel/text-mode b/etc/snippets/tempel/text-mode index 1cda91cba0..c635b7ee6f 100644 --- a/etc/snippets/tempel/text-mode +++ b/etc/snippets/tempel/text-mode @@ -1,6 +1,6 @@ -*- mode: lisp-data -*- -text-mode :when (and (fboundp 'git-commit-mode) git-commit-mode) +text-mode :when (bound-and-true-p git-commit-mode) (add\ "gnu: Add " (p (with-temp-buffer