restructuring classic snippets dir to conform to new parenting specs

This commit is contained in:
capitaomorte
2009-12-25 14:12:26 +00:00
parent 4426d044f6
commit 060e2ce5f1
28 changed files with 5 additions and 0 deletions

View File

@@ -0,0 +1 @@
cc-mode

3
snippets/c-mode/fopen Normal file
View File

@@ -0,0 +1,3 @@
#name : FILE *fp = fopen(..., ...);
# --
FILE *${fp} = fopen(${"file"}, "${r}");

6
snippets/c-mode/printf Normal file
View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name : printf
# contributor : joaotavora
# --
printf ("${1:%s}\\n"${1:$(if (string-match "%" text) "," "\);")
}$2${1:$(if (string-match "%" text) "\);" "")}