From fce24d44ab63fafe70ca7363bf01d5ef858c96b4 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 22 Sep 2023 14:49:51 +0100 Subject: (Emacs)~modified switch snippet in c/cc-mode --- Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/switch | 10 ---------- Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/switch | 3 ++- 2 files changed, 2 insertions(+), 11 deletions(-) delete mode 100644 Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/switch 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; } -- cgit v1.2.3-13-gbd6f