snippets: tempel: Simplify git-commit-mode detection.

* etc/snippets/tempel/text-mode: Simplify git-commit-mode detection.

Signed-off-by: Andrew Tropin <andrew@trop.in>
This commit is contained in:
Nicolas Graves 2023-04-17 19:52:22 +02:00 committed by Maxim Cournoyer
parent e7550b8d93
commit 7cb21556b6
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 1 additions and 1 deletions

View File

@ -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