summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--snippets/org-mode/title16
-rw-r--r--snippets/simpc-mode/for-loop8
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
+}