From 6bdada7e53d87439a2fbbeb09ac8beb17bcb93a1 Mon Sep 17 00:00:00 2001 From: Liliana Marie Prikler Date: Wed, 8 Jan 2025 13:53:12 +0100 Subject: etc: snippets: Improve usability of tempel phases snippets. * etc/snippets/tempel/scheme-mode.eld (#:phases~\ ): New snippet. (add-before\ , add-after\ , replace\ ): Add dummy phase names. --- etc/snippets/tempel/scheme-mode.eld | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/etc/snippets/tempel/scheme-mode.eld b/etc/snippets/tempel/scheme-mode.eld index 21a5dd6dee..67fbc5be2b 100644 --- a/etc/snippets/tempel/scheme-mode.eld +++ b/etc/snippets/tempel/scheme-mode.eld @@ -79,9 +79,12 @@ scheme-mode (:phases\ "#:phases (modify-phases %standard-phases" n> p ")") +(:phases~\ "#:phases" + n> "#~(modify-phases %standard-phases" + n> p ")") -(add-before\ "(add-before '" p " '" p +(add-before\ "(add-before '" (p "next") " '" (p "previous") n > p ")") -(add-after\ "(add-after '" p " '" p +(add-after\ "(add-after '" (p "previous") " '" (p "next") n > p ")") -(replace\ "(replace '" p " " p")") +(replace\ "(replace '" (p "old") " " p ")") -- cgit v1.2.3