diff options
| author | Craig Jennings <c@cjennings.net> | 2026-02-16 05:14:28 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-02-16 05:14:28 -0600 |
| commit | 9ed05f388d3cbd16a72f9ace130d1f59233354e7 (patch) | |
| tree | 81853ec9826707f3217388913f0c3123d22ea0cb /snippets/c-mode | |
| parent | 61dfcb7aef61c976c4446f1e089e1e3f578edf48 (diff) | |
chore(yasnippet): move snippets into emacs.d for source control
Relocate snippets-dir from ~/sync/org/snippets/ to ~/.emacs.d/snippets/
and restore 28 snippet files from backup.
Diffstat (limited to 'snippets/c-mode')
| -rw-r--r-- | snippets/c-mode/for | 8 | ||||
| -rw-r--r-- | snippets/c-mode/main | 12 |
2 files changed, 20 insertions, 0 deletions
diff --git a/snippets/c-mode/for b/snippets/c-mode/for new file mode 100644 index 00000000..e72b722a --- /dev/null +++ b/snippets/c-mode/for @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: for +# key: <for +# -- + +for (int i = 0; i < ${1:max}; i++) { + $0 +} diff --git a/snippets/c-mode/main b/snippets/c-mode/main new file mode 100644 index 00000000..0580157f --- /dev/null +++ b/snippets/c-mode/main @@ -0,0 +1,12 @@ +# -*- mode: snippet -*- +# name: main +# key: <main +# -- + +int main (int argc, char *argv[]) { + + $0 + + return 0; +} + |
