aboutsummaryrefslogtreecommitdiff
path: root/snippets
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-15 15:10:38 -0500
committerCraig Jennings <c@cjennings.net>2026-05-15 15:10:38 -0500
commitea064dd5b2d72007e9aeeca4f92c02b6e76f7f3c (patch)
treee73d066ae8a63646a370bdc7796e165643d1ea67 /snippets
parent74cffcac0c9bb8e4a7ee33d51ff1f2cd9a2cd7f0 (diff)
downloaddotemacs-ea064dd5b2d72007e9aeeca4f92c02b6e76f7f3c.tar.gz
dotemacs-ea064dd5b2d72007e9aeeca4f92c02b6e76f7f3c.zip
feat(snippets): add universal <cj marker snippet
New `snippets/fundamental-mode/cj-comment-block` expands `<cj` + TAB to the literal three-line marker block: #+begin_src cj: comment <cursor> #+end_src It lives in `fundamental-mode/` so yas's parent-chain lookup finds it in every buffer, plus the activation hook from the previous commit explicitly turns on `fundamental-mode` as an extra mode in every buffer — so even modes that don't descend from `fundamental-mode` (like `special-mode`-derived buffers) pick it up. The marker is what my Python scanner skill picks out across files. Now I can plant it in any buffer, not just org where the old org-tempo entry lived.
Diffstat (limited to 'snippets')
-rw-r--r--snippets/fundamental-mode/cj-comment-block7
1 files changed, 7 insertions, 0 deletions
diff --git a/snippets/fundamental-mode/cj-comment-block b/snippets/fundamental-mode/cj-comment-block
new file mode 100644
index 00000000..0670e2f6
--- /dev/null
+++ b/snippets/fundamental-mode/cj-comment-block
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: cj-comment-block
+# key: <cj
+# --
+#+begin_src cj: comment
+$0
+#+end_src \ No newline at end of file