aboutsummaryrefslogtreecommitdiff
path: root/etc/snippets
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2023-04-17 19:52:22 +0200
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-04-19 20:12:22 -0400
commit7cb21556b6031c9f7e187329b6663768425aa850 (patch)
tree7766bdbacb49052aaf89797f289e54410f91491c /etc/snippets
parente7550b8d938564242f25b7c23e939edc089c7cd3 (diff)
downloadguix-7cb21556b6031c9f7e187329b6663768425aa850.tar.gz
guix-7cb21556b6031c9f7e187329b6663768425aa850.zip
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>
Diffstat (limited to 'etc/snippets')
-rw-r--r--etc/snippets/tempel/text-mode2
1 files changed, 1 insertions, 1 deletions
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