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
commit84de2769684fb9ace650b3a8ffcb88896b68e1c4 (patch)
treea9db337e16fa4bfb19e75142ae613c82ce0214fa /snippets
parent4b0f1ceab2552ba9b4d96d2fad4ca593573e0c89 (diff)
downloaddotemacs-84de2769684fb9ace650b3a8ffcb88896b68e1c4.tar.gz
dotemacs-84de2769684fb9ace650b3a8ffcb88896b68e1c4.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 000000000..0670e2f66
--- /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