summaryrefslogtreecommitdiff
path: root/etc/snippets/yas/log-edit-mode/guix-vc-commit-message-use-https-home-page
diff options
context:
space:
mode:
authorMorgan Smith <Morgan.J.Smith@outlook.com>2022-11-09 15:10:02 -0500
committerLudovic Courtès <ludo@gnu.org>2022-11-28 23:34:15 +0100
commitfcb59fe24afc064b87b3abaf91140d015b4eb889 (patch)
tree7e8d1271f66cc70b61100ac6f5f0a4d4dfd41bae /etc/snippets/yas/log-edit-mode/guix-vc-commit-message-use-https-home-page
parent27b04fcdd4073d9e8ded620ffbc7d0ed7cad1c15 (diff)
snippets: yas: Add snippets for vc.el
* etc/snippets/yas/log-edit-mode/guix-vc-commit-message-add-package: * etc/snippets/yas/log-edit-mode/guix-vc-commit-message-remove-package: * etc/snippets/yas/log-edit-mode/guix-vc-commit-message-rename-package: * etc/snippets/yas/log-edit-mode/guix-vc-commit-message-update-package: * etc/snippets/yas/log-edit-mode/guix-vc-commit-message-use-https-home-page: New file Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'etc/snippets/yas/log-edit-mode/guix-vc-commit-message-use-https-home-page')
-rw-r--r--etc/snippets/yas/log-edit-mode/guix-vc-commit-message-use-https-home-page9
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/snippets/yas/log-edit-mode/guix-vc-commit-message-use-https-home-page b/etc/snippets/yas/log-edit-mode/guix-vc-commit-message-use-https-home-page
new file mode 100644
index 0000000000..e0f170b015
--- /dev/null
+++ b/etc/snippets/yas/log-edit-mode/guix-vc-commit-message-use-https-home-page
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: guix-vc-commit-message-use-https-home-page
+# key: https
+# --
+gnu: ${1:`(when (string-match "^[ ]*(define-public \\(\\S-+\\)" vc-patch-string)
+ (match-string-no-properties 1 vc-patch-string))`}: Use HTTPS home page URI.
+
+* `(car (log-edit-files))` ($1)[home-page]: Use HTTPS URI.
+`(mapconcat (lambda (file) (concat "* " file)) (cdr (log-edit-files)) "\n")`