summaryrefslogtreecommitdiff
path: root/etc/snippets
AgeCommit message (Collapse)AuthorFilesLines
2026-03-13etc: snippets: Update python to pyproject build system.Gabriel Wicki1-1/+1
The snippets still refer to the outdated python-build-system which should not be encouraged to use anymore. * etc/snippets/yas/scheme-mode/guix-package (build-system): Replace python-build-system with pyproject-build-system. Merges guix/guix!7100 Change-Id: Ic7d4b298c922fbea75b0e2ae341fee8a5ab0543c Signed-off-by: Cayetano Santos <csantosb@inventati.org>
2025-07-01etc: snippets: Add clasp to addcl snippet.jgart1-0/+1
* etc/snippets/tempel/text-mode.eld (addcl): Add clasp. Change-Id: If70f5c66854938475ad1f461c58b6ac91554aee2
2025-01-16etc: snippets: Improve usability of tempel phases snippets.Liliana Marie Prikler1-3/+6
* etc/snippets/tempel/scheme-mode.eld (#:phases~\ ): New snippet. (add-before\ , add-after\ , replace\ ): Add dummy phase names.
2024-09-21.dir-locals.el: Add tempel snippets.Nicolas Graves2-4/+0
Change-Id: Ic16f571f26fffee12e478e00c54be55e6eb90831 Signed-off-by: jgart <jgart@dismail.de>
2023-10-21build-system: Add zig-build-system.Ekaitz Zarraga1-2/+3
* guix/build-system/zig.scm: New file. * guix/build/zig-build-system.scm: New file. * Makefile.am: Add them. * doc/guix.texi: Document it. * etc/snippets/yas/scheme-mode/guix-package (build-system): Add zig-build-system. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-10-15etc: snippets: Do not match unintended quotes.Liliana Marie Prikler1-11/+11
* etc/snippets/tempel/scheme-mode (origin): Unquote ‘git-fetch’, ‘svn-fetch’, ‘hg-fetch’, ‘cvs-fetch’, and ‘bzr-fetch’. Use ‘otherwise’ instead of ‘t’.
2023-04-19snippets: tempel: Simplify git-commit-mode detection.Nicolas Graves1-1/+1
* etc/snippets/tempel/text-mode: Simplify git-commit-mode detection. Signed-off-by: Andrew Tropin <andrew@trop.in>
2023-03-05etc: Default to variables in tempel's git-reference... et al.Liliana Marie Prikler1-4/+4
Since we encourage using variables rather than magic hashes in the commit fields, e.g. (commit version) and (commit commit), the default for tempel to use quoted strings is rather off. Thus, let the placeholder reflect actual usage. * etc/snippets/tempel/scheme-mode (git-reference...)[commit]: Use field name as placeholder and don't quote value. (svn-reference..., bzr-reference...)[revision]: Likewise. (hg-reference...)[changeset]: Likewise.
2023-02-19etc: Add a news entry snippet.Maxim Cournoyer1-0/+9
* etc/snippets/yas/scheme-mode/guix-news-entry: New file.
2022-12-27snippets: Remove unwanted git-commit-mode invocation.Andrew Tropin1-1/+1
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.
2022-11-28snippets: yas: Add snippets for vc.elMorgan Smith5-0/+53
* 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>
2022-10-22snippets: Harden for review activity.Liliana Marie Prikler1-6/+9
When reviewing patches, whose commit logs don't follow the structure outlined in “Submitting Patches”, a reviewer might be tempted to use snippets to rewrite them. This makes it so that their attempt, while not immediately succeeding, isn't completely thwarted. * etc/snippets/tempel/text-mode (add\ , remove\ , rename\ , update\ ) (addcl\ , https\ ): Use an empty "p" field if (car (magit-staged-files)) fails.
2022-10-06snippets: Fix move.Liliana Marie Prikler1-8/+30
The current move is never correct. It flip-flops between car and cadr for the destination. Since the position of the destination is not actually a fixed point in the list of changes, use a more robust method of inferring it. * etc/snippets/tempel/text-mode (move\ ): Infer source and destination from washed diffs. Process new module before destination.
2022-10-06snippets: tempel: Reformat.Liliana Marie Prikler1-108/+123
This makes it so that ‘indent-region’ and ‘delete-trailing-whitespace’ do not change the file. * etc/snippets/tempel/text-mode: Reformat.
2022-10-06snippets: tempel: Fix calls to mapconcat.Liliana Marie Prikler1-2/+2
* etc/snippets/tempel/text-mode (update\ ,https\ ): Add "\n" as separator argument to mapconcat.
2022-09-26etc: Add tempel snippet move.Nicolas Graves1-0/+17
* etc/snippets/tempel/text-mode (move\): New entry. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-08-30etc: Update yasnippet build system list.Nicolas Graves1-0/+4
* etc/snippets/yas/scheme-mode/guix-package (build-system): Add chicken-build-system, minetest-build-system, rebar-build-system and renpy-build-system. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-08-30etc: Add tempel snippet for :phases.Nicolas Graves1-0/+9
* etc/snippets/tempel/scheme-mode (:phases, add-before\ , add-after\ ) (replace\ ): New snippets. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-08-30etc: Add tempel snippets.Nicolas Graves15-0/+181
* etc/snippets/tempel/scheme-mode: New file. * etc/snippets/tempel/text-mode: New file. * etc/snippets/scheme-mode: Moved from here... * etc/snippets/yas/scheme-mode: ... to here. * etc/snippets/text-mode: Moved from here... * etc/snippets/yas/text-mode: ... to here. * doc/contributing.texi ("The Perfect Setup"): Adjust yasnippet setup accordingly. Add tempel setup. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-05-12snippets: Add a 'remove' snippet.Maxim Cournoyer1-0/+13
* etc/snippets/text-mode/guix-commit-message-remove-package: New file.
2022-01-19etc: Match define-public only at line start.Liliana Marie Prikler1-1/+1
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.
2021-06-26etc: snippets: Use ‘hg-file-name’ when origin uses ‘hg-fetch’Xinglu Chen1-1/+3
Adjust to changes in commit aaafd19bd1e37265de07e246286a6819792c25b4. * etc/snippets/scheme-mode/guix-origin: Use ‘hg-file-name’ instead of ‘string-append’ when ‘method’ for origin is ‘hg-fetch’. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2020-12-23etc: snippets: Add new build systems to package snippet.Morgan Smith1-0/+10
* etc/snippets/scheme-mode/guix-package: Add the following as possibilities for the build-system field: clojure-build-system copy-build-system dune-build-system guile-build-system julia-build-system linux-module-build-system maven-build-system node-build-system qt-build-system rakudo-build-system Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2020-12-04etc: snippets: Fix name extraction.Nicolas Goaziou1-3/+3
* etc/snippets/text-mode/guix-commit-message-add-package: Fix name extraction. This is a follow-up to 988a49c78ef19ad25cef543e2059a19db04bbd36.
2020-12-04etc: snippets: Fix name extraction.Nicolas Goaziou1-4/+4
* 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-11-25etc: snippets: Fix "gnu: Add ..." name when prefilling Common Lisp commits ↵Pierre Neidhardt1-2/+4
messages. * etc/snippets/text-mode/guix-commit-message-add-cl-package: Fix name and simplify the "New variables" line.
2020-11-23etc: snippets: Prefill Common Lisp package names.Pierre Neidhardt1-0/+13
* etc/snippets/text-mode/guix-commit-message-add-cl-package: New file.
2020-11-23etc: snippets: Fix package name extraction.Pierre Neidhardt1-1/+1
* 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.
2019-05-09Add (guix bzr-download).Maxim Cournoyer2-2/+11
* guix/bzr-download.scm, guix/build/bzr.scm, etc/snippets/scheme-mode/guix-bzr-reference: New files. * Makefile.am (MODULES): Add them. * etc/snippets/scheme-mode/guix-origin: Add "bzr-fetch" to the origin choices.
2019-03-26etc: Add "rename" snippet.Pierre Neidhardt1-0/+20
* etc/snippets/text-mode/guix-commit-message-rename-package: New file.
2019-03-08etc: snippets: Prefill package name.Ricardo Wurmus1-1/+6
* etc/snippets/text-mode/guix-commit-message-add-package: Extract package name from diff.
2019-03-07etc: snippets: Prefill package name and version.Ricardo Wurmus1-1/+18
* etc/snippets/text-mode/guix-commit-message-update-package: Extract package name and version from git diff output.
2018-10-10etc: Use git-file-name if origin is git-fetch.Pierre Neidhardt1-1/+3
* etc/snippets/scheme-mode/guix-origin: Use git-file-name.
2018-07-13etc: snippets: Add guix-commit-message-use-https-home-page.Arun Isaac1-0/+9
* etc/snippets/text-mode/guix-commit-message-use-https-home-page: New file. * doc/contributing.texi (The Perfect Setup): Document new snippet.
2018-07-13etc: snippets: Add new build systems to package snippet.Arun Isaac1-1/+3
* etc/snippets/scheme-mode/guix-package: Add android-ndk-build-system and scons-build-system as possibilities for the build-system field.
2017-12-15etc: Add snippets.Ricardo Wurmus8-0/+103
* 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.