diff options
| author | yuzu-eva <cafebabe@disroot.org> | 2025-06-08 13:07:52 +0200 |
|---|---|---|
| committer | yuzu-eva <cafebabe@disroot.org> | 2025-06-08 13:07:52 +0200 |
| commit | 37df6a2466bbc7561ec7d95353bd52b05d76ea8b (patch) | |
| tree | 2d27f11b1e9707292577954ecd6c47607e0be9ad | |
| parent | 2345408deacc8c229ee76a9bb70a63ebbcd4b049 (diff) | |
added some snippets
| -rw-r--r-- | snippets/org-mode/title | 16 | ||||
| -rw-r--r-- | snippets/simpc-mode/for-loop | 8 |
2 files changed, 24 insertions, 0 deletions
diff --git a/snippets/org-mode/title b/snippets/org-mode/title new file mode 100644 index 0000000..ceccb21 --- /dev/null +++ b/snippets/org-mode/title @@ -0,0 +1,16 @@ +# -*- mode: snippet -*- +# name: title +# key: ,t +# -- + +#+TITLE: ${1:title} +#+AUTHOR: ${2:author} +#+STARTUP: overview +#+LANGUAGE: en +#+OPTIONS: ^:nil +#+LATEX_HEADER: \let\oldsection\section +#+LATEX_HEADER: \renewcommand{\section}{\clearpage\oldsection} +#+LATEX: \pagenumbering{arabic} +#+LATEX: \setlength\parindent{0pt} + +$0 diff --git a/snippets/simpc-mode/for-loop b/snippets/simpc-mode/for-loop new file mode 100644 index 0000000..0f4fece --- /dev/null +++ b/snippets/simpc-mode/for-loop @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: for-loop +# key: ,f +# -- + +for (size_t ${1:i}; ${2:cond}; ${3:inc}) { + $0 +} |
