summaryrefslogtreecommitdiff
path: root/emacs/templates/c.eld
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/templates/c.eld')
-rw-r--r--emacs/templates/c.eld5
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs/templates/c.eld b/emacs/templates/c.eld
new file mode 100644
index 0000000..fdb899f
--- /dev/null
+++ b/emacs/templates/c.eld
@@ -0,0 +1,5 @@
+
+c-mode
+
+(for > "for (" p "; " p "; " p ") {" n> (p "body;") n> "}")
+(fori > "for (int i = 0; i < " p "; ++i) {" n> (p "body;") n> "}")