snippets: Remove unwanted git-commit-mode invocation.
authorAndrew Tropin <andrew@trop.in>
Tue, 27 Dec 2022 08:35:41 +0000 (12:35 +0400)
committerAndrew Tropin <andrew@trop.in>
Tue, 27 Dec 2022 08:38:05 +0000 (12:38 +0400)
We only need to check if git-commit-mode is t, not enable it in all text-mode
buffers.

* etc/snippets/tempel/text-mode: Remove unwanted git-commit-mode invocation.

etc/snippets/tempel/text-mode

index fd0e95e..1cda91c 100644 (file)
@@ -1,6 +1,6 @@
 -*- mode: lisp-data -*-
 
-text-mode :when (and (fboundp 'git-commit-mode) (git-commit-mode))
+text-mode :when (and (fboundp 'git-commit-mode) git-commit-mode)
 
 (add\ "gnu: Add "
       (p (with-temp-buffer