summary refs log tree commit diff
path: root/etc/snippets/tempel
AgeCommit message (Collapse)Author
2023-04-19snippets: tempel: Simplify git-commit-mode detection.Nicolas Graves
* 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 Prikler
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.
2022-12-27snippets: Remove unwanted git-commit-mode invocation.Andrew Tropin
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-10-22snippets: Harden for review activity.Liliana Marie Prikler
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 Prikler
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 Prikler
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 Prikler
* etc/snippets/tempel/text-mode (update\ ,https\ ): Add "\n" as separator argument to mapconcat.
2022-09-26etc: Add tempel snippet move.Nicolas Graves
* etc/snippets/tempel/text-mode (move\): New entry. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-08-30etc: Add tempel snippet for :phases.Nicolas Graves
* 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 Graves
* 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>