mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
etc: snippets: Add guix-commit-message-use-https-home-page.
* etc/snippets/text-mode/guix-commit-message-use-https-home-page: New file. * doc/contributing.texi (The Perfect Setup): Document new snippet.
This commit is contained in:
parent
202befb4ae
commit
9286c29504
2 changed files with 11 additions and 1 deletions
|
@ -212,7 +212,8 @@ The commit message snippets depend on @url{https://magit.vc/, Magit} to
|
||||||
display staged files. When editing a commit message type @code{add}
|
display staged files. When editing a commit message type @code{add}
|
||||||
followed by @kbd{TAB} to insert a commit message template for adding a
|
followed by @kbd{TAB} to insert a commit message template for adding a
|
||||||
package; type @code{update} followed by @kbd{TAB} to insert a template
|
package; type @code{update} followed by @kbd{TAB} to insert a template
|
||||||
for updating a package.
|
for updating a package; type @code{https} followed by @kbd{TAB} to
|
||||||
|
insert a template for changing the home page URI of a package to HTTPS.
|
||||||
|
|
||||||
The main snippet for @code{scheme-mode} is triggered by typing
|
The main snippet for @code{scheme-mode} is triggered by typing
|
||||||
@code{package...} followed by @kbd{TAB}. This snippet also inserts the
|
@code{package...} followed by @kbd{TAB}. This snippet also inserts the
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: guix-commit-message-use-https-home-page
|
||||||
|
# key: https
|
||||||
|
# condition: git-commit-mode
|
||||||
|
# --
|
||||||
|
gnu: $1: Use HTTPS home page URI.
|
||||||
|
|
||||||
|
* `(car (magit-staged-files))` ($1)[home-page]: Use HTTPS URI.
|
||||||
|
`(mapconcat (lambda (file) (concat "* " file)) (cdr (magit-staged-files)) "\n")`
|
Loading…
Reference in a new issue