diff options
Diffstat (limited to 'Emacs/.config')
-rw-r--r-- | Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/switch | 10 | ||||
-rw-r--r-- | Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/switch | 3 |
2 files changed, 2 insertions, 11 deletions
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/switch b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/switch deleted file mode 100644 index d02a5ab..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/switch +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: switch -# -- -switch (${1:ch}) { - case ${2:const}: - ${3:a = b}; - break; - ${4:default: - ${5:action}} -} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/switch b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/switch index 6dff3db..7ef420b 100644 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/switch +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/switch @@ -2,5 +2,6 @@ # name: switch # -- switch (${1:variable}) { - case ${2:value}: $0break; + default: + $0break; } |