diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-09-22 14:49:51 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-09-22 14:50:42 +0100 |
commit | fce24d44ab63fafe70ca7363bf01d5ef858c96b4 (patch) | |
tree | 263a85dc827cb4b97bac755d60be50688d8aef18 | |
parent | 7ec779abb1529f5167b5f4a13296d4fb6e8208e2 (diff) | |
download | dotfiles-fce24d44ab63fafe70ca7363bf01d5ef858c96b4.tar.gz dotfiles-fce24d44ab63fafe70ca7363bf01d5ef858c96b4.tar.bz2 dotfiles-fce24d44ab63fafe70ca7363bf01d5ef858c96b4.zip |
(Emacs)~modified switch snippet in c/cc-mode
-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; } |