aboutsummaryrefslogtreecommitdiff
path: root/etc/snippets/yas/text-mode/guix-commit-message-add-cl-package
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2022-08-12 10:58:48 +0200
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2022-08-30 11:50:14 +0200
commitc4acaf412064568a546034871a9e0d3888aa7937 (patch)
tree5e7bded5fd11b96dc65627b54942f6da5792abf8 /etc/snippets/yas/text-mode/guix-commit-message-add-cl-package
parent6beadc82df204f315d06ea35f2e232bb32f8e440 (diff)
downloadguix-c4acaf412064568a546034871a9e0d3888aa7937.tar.gz
guix-c4acaf412064568a546034871a9e0d3888aa7937.zip
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>
Diffstat (limited to 'etc/snippets/yas/text-mode/guix-commit-message-add-cl-package')
-rw-r--r--etc/snippets/yas/text-mode/guix-commit-message-add-cl-package15
1 files changed, 15 insertions, 0 deletions
diff --git a/etc/snippets/yas/text-mode/guix-commit-message-add-cl-package b/etc/snippets/yas/text-mode/guix-commit-message-add-cl-package
new file mode 100644
index 0000000000..e255736b05
--- /dev/null
+++ b/etc/snippets/yas/text-mode/guix-commit-message-add-cl-package
@@ -0,0 +1,15 @@
+# -*- mode: snippet -*-
+# name: guix-commit-message-add-cl-package
+# key: addcl
+# condition: git-commit-mode
+# --
+gnu: Add ${1:`(with-temp-buffer
+ (magit-git-wash #'magit-diff-wash-diffs
+ "diff" "--staged")
+ (beginning-of-buffer)
+ (when (search-forward "+(define-public " nil 'noerror)
+ (replace-regexp-in-string
+ "^sbcl-" ""
+ (thing-at-point 'sexp 'no-properties))))`}.
+
+* `(car (magit-staged-files))` (cl-${1:$(replace-regexp-in-string "^cl-" "" yas-text)}, ecl-$1, sbcl-$1): New variables. \ No newline at end of file