summaryrefslogtreecommitdiff
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
commitf5f9664ffcf6684113166efa86d1b62633a86e63 (patch)
tree1315e55cdce71a43161ca088269758cd2c513341 /snippets
parent14d55fd27ddc44d147cb4dacf575bf933ff51b1c (diff)
downloaddotemacs-f5f9664ffcf6684113166efa86d1b62633a86e63.tar.gz
dotemacs-f5f9664ffcf6684113166efa86d1b62633a86e63.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