summaryrefslogtreecommitdiff
path: root/etc/snippets
Commit message (Expand)AuthorAgeFilesLines
* build-system: Add zig-build-system.•••* 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> Ekaitz Zarraga2023-10-211-2/+3
* etc: snippets: Do not match unintended quotes.•••* etc/snippets/tempel/scheme-mode (origin): Unquote ‘git-fetch’, ‘svn-fetch’, ‘hg-fetch’, ‘cvs-fetch’, and ‘bzr-fetch’. Use ‘otherwise’ instead of ‘t’. Liliana Marie Prikler2023-10-151-11/+11
* snippets: tempel: Simplify git-commit-mode detection.•••* etc/snippets/tempel/text-mode: Simplify git-commit-mode detection. Signed-off-by: Andrew Tropin <andrew@trop.in> Nicolas Graves2023-04-191-1/+1
* etc: Default to variables in tempel's git-reference... et al.•••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. Liliana Marie Prikler2023-03-051-4/+4
* etc: Add a news entry snippet.•••* etc/snippets/yas/scheme-mode/guix-news-entry: New file. Maxim Cournoyer2023-02-191-0/+9
* snippets: Remove unwanted git-commit-mode invocation.•••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. Andrew Tropin2022-12-271-1/+1
* 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> Morgan Smith2022-11-285-0/+53
* snippets: Harden for review activity.•••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. Liliana Marie Prikler2022-10-221-6/+9
* snippets: Fix move.•••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. Liliana Marie Prikler2022-10-061-8/+30
* snippets: tempel: Reformat.•••This makes it so that ‘indent-region’ and ‘delete-trailing-whitespace’ do not change the file. * etc/snippets/tempel/text-mode: Reformat. Liliana Marie Prikler2022-10-061-108/+123
* snippets: tempel: Fix calls to mapconcat.•••* etc/snippets/tempel/text-mode (update\ ,https\ ): Add "\n" as separator argument to mapconcat. Liliana Marie Prikler2022-10-061-2/+2
* etc: Add tempel snippet move.•••* etc/snippets/tempel/text-mode (move\): New entry. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Nicolas Graves2022-09-261-0/+17
* etc: Update yasnippet build system list.•••* 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> Nicolas Graves2022-08-301-0/+4
* etc: Add tempel snippet for :phases.•••* etc/snippets/tempel/scheme-mode (:phases, add-before\ , add-after\ ) (replace\ ): New snippets. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Nicolas Graves2022-08-301-0/+9
* etc: Add tempel snippets.•••* 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> Nicolas Graves2022-08-3015-0/+181
* snippets: Add a 'remove' snippet.•••* etc/snippets/text-mode/guix-commit-message-remove-package: New file. Maxim Cournoyer2022-05-121-0/+13
* 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. Liliana Marie Prikler2022-01-191-1/+1
* etc: snippets: Use ‘hg-file-name’ when origin uses ‘hg-fetch’•••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> Xinglu Chen2021-06-261-1/+3
* etc: snippets: Add new build systems to package snippet.•••* 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> Morgan Smith2020-12-231-0/+10
* etc: snippets: Fix name extraction.•••* etc/snippets/text-mode/guix-commit-message-add-package: Fix name extraction. This is a follow-up to 988a49c78ef19ad25cef543e2059a19db04bbd36. Nicolas Goaziou2020-12-041-3/+3
* 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). Nicolas Goaziou2020-12-041-4/+4
* etc: snippets: Fix "gnu: Add ..." name when prefilling Common Lisp commits me...•••* etc/snippets/text-mode/guix-commit-message-add-cl-package: Fix name and simplify the "New variables" line. Pierre Neidhardt2020-11-251-2/+4
* etc: snippets: Prefill Common Lisp package names.•••* etc/snippets/text-mode/guix-commit-message-add-cl-package: New file. Pierre Neidhardt2020-11-231-0/+13
* 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. Pierre Neidhardt2020-11-231-1/+1
* Add (guix bzr-download).•••* 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. Maxim Cournoyer2019-05-092-2/+11
* etc: Add "rename" snippet.•••* etc/snippets/text-mode/guix-commit-message-rename-package: New file. Pierre Neidhardt2019-03-261-0/+20
* etc: snippets: Prefill package name.•••* etc/snippets/text-mode/guix-commit-message-add-package: Extract package name from diff. Ricardo Wurmus2019-03-081-1/+6
* 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. Ricardo Wurmus2019-03-071-1/+18
* etc: Use git-file-name if origin is git-fetch.•••* etc/snippets/scheme-mode/guix-origin: Use git-file-name. Pierre Neidhardt2018-10-101-1/+3
* 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. Arun Isaac2018-07-131-0/+9
* etc: snippets: Add new build systems to package snippet.•••* etc/snippets/scheme-mode/guix-package: Add android-ndk-build-system and scons-build-system as possibilities for the build-system field. Arun Isaac2018-07-131-1/+3
* 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. Ricardo Wurmus2017-12-158-0/+103