Commit graph

12 commits

Author SHA1 Message Date
Maxim Cournoyer
e56ff45600
snippets: Add a 'remove' snippet.
* etc/snippets/text-mode/guix-commit-message-remove-package: New file.
2022-05-12 12:46:07 -04:00
Liliana Marie Prikler
2c9f13ba63
etc: Match define-public only at line start.
The current regexp simply matches the first occurence, which more often than
not points to the *previous* variable.

* etc/snippets/text-mode/guix-commit-message-update-package ($1): Restrict
match to beginning of line with optional indentation.
2022-01-19 20:47:03 +01:00
Nicolas Goaziou
39e8bc2ab8
etc: snippets: Fix name extraction.
* etc/snippets/text-mode/guix-commit-message-add-package: Fix name
extraction. This is a follow-up to 988a49c78e.
2020-12-04 18:19:39 +01:00
Nicolas Goaziou
988a49c78e
etc: snippets: Fix name extraction.
* etc/snippets/text-mode/guix-commit-message-update-package: Since git commit
mode is not derived from any Lisp mode, so-called sexp or symbols do not
include the period character.  As a consequence, names including versions are
not properly extracted. Also use more idiomatic (goto-char (point-min))
instead of (beginning-of-buffer).
2020-12-04 17:09:38 +01:00
Pierre Neidhardt
402f1104e5
etc: snippets: Fix "gnu: Add ..." name when prefilling Common Lisp commits messages.
* etc/snippets/text-mode/guix-commit-message-add-cl-package: Fix name and
simplify the "New variables" line.
2020-11-25 10:45:42 +01:00
Pierre Neidhardt
add4749917
etc: snippets: Prefill Common Lisp package names.
* etc/snippets/text-mode/guix-commit-message-add-cl-package: New file.
2020-11-23 11:14:22 +01:00
Pierre Neidhardt
8307b8f184
etc: snippets: Fix package name extraction.
* etc/snippets/text-mode/guix-commit-message-add-package: Properly extract
name when the diff contains a very short `define-public ...` above the actual
new package.  This can happen when the above package is a small inherited
definition or cl/ecl package.
2020-11-23 11:13:58 +01:00
Pierre Neidhardt
6994e67436
etc: Add "rename" snippet.
* etc/snippets/text-mode/guix-commit-message-rename-package: New file.
2019-03-26 14:18:12 +01:00
Ricardo Wurmus
95803946c7
etc: snippets: Prefill package name.
* etc/snippets/text-mode/guix-commit-message-add-package: Extract package
name from diff.
2019-03-08 00:17:30 +01:00
Ricardo Wurmus
d6234620ac
etc: snippets: Prefill package name and version.
* etc/snippets/text-mode/guix-commit-message-update-package: Extract package
name and version from git diff output.
2019-03-07 23:55:24 +01:00
Arun Isaac
9286c29504
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.
2018-07-13 12:45:11 +05:30
Ricardo Wurmus
42cdcdff19
etc: Add snippets.
* etc/snippets/scheme-mode/guix-cvs-reference,
etc/snippets/scheme-mode/guix-git-reference,
etc/snippets/scheme-mode/guix-hg-reference,
etc/snippets/scheme-mode/guix-origin,
etc/snippets/scheme-mode/guix-package,
etc/snippets/scheme-mode/guix-svn-reference,
etc/snippets/text-mode/guix-commit-message-add-package,
etc/snippets/text-mode/guix-commit-message-update-package: New files.
* doc/contributing.texi (The Perfect Setup): Document snippets.
2017-12-15 23:15:32 +01:00