diff options
Diffstat (limited to '.emacs.d/snippets/c-mode/switch')
| -rw-r--r-- | .emacs.d/snippets/c-mode/switch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.emacs.d/snippets/c-mode/switch b/.emacs.d/snippets/c-mode/switch new file mode 100644 index 0000000..0916059 --- /dev/null +++ b/.emacs.d/snippets/c-mode/switch | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: switch | ||
| 3 | # key: case | ||
| 4 | # -- | ||
| 5 | switch (${1:ch}) { | ||
| 6 | case ${2:const}: | ||
| 7 | ${3:a = b}; | ||
| 8 | break; | ||
| 9 | ${4:default: | ||
| 10 | ${5:action}} | ||
| 11 | } | ||
