From 1bd01d419dbe72c560e46798c22eb5fc40fd7770 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 1 Oct 2024 06:10:37 +0100 Subject: (Emacs/yasnippet)~fix parents --- .../emacs/.config/yasnippet/snippets/c++-ts-mode/.yas-parents | 1 + Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/compile | 6 ------ Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/malloc | 7 ------- Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/printf | 6 ------ Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/union | 8 -------- .../emacs/.config/yasnippet/snippets/c-ts-mode/.yas-parents | 1 + 6 files changed, 2 insertions(+), 27 deletions(-) create mode 100644 Emacs/.config/emacs/.config/yasnippet/snippets/c++-ts-mode/.yas-parents delete mode 100644 Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/compile delete mode 100644 Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/malloc delete mode 100644 Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/printf delete mode 100644 Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/union create mode 100644 Emacs/.config/emacs/.config/yasnippet/snippets/c-ts-mode/.yas-parents (limited to 'Emacs/.config/emacs') diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-ts-mode/.yas-parents b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-ts-mode/.yas-parents new file mode 100644 index 0000000..e80d91d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-ts-mode/.yas-parents @@ -0,0 +1 @@ +c++-mode cc-mode text-mode prog-mode \ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/compile b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/compile deleted file mode 100644 index bcd285d..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/compile +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: compile -# key: compile -# uuid: compile -# -- -// -*- compile-command: "${1:gcc -Wall -o ${2:dest} ${3:file}}" -*- \ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/malloc b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/malloc deleted file mode 100644 index af0aa98..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/malloc +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: malloc -# key: malloc -# uuid: malloc -# -- -malloc(sizeof($1)${2: * ${3:0}}); -$0 \ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/printf b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/printf deleted file mode 100644 index 1af5fb6..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/printf +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: printf -# key: printf -# uuid: printf -# -- -printf("${1:format}"${2:, $3}); \ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/union b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/union deleted file mode 100644 index 8f2693c..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/union +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: union -# key: union -# uuid: union -# -- -union ${1:name} { - $0 -}; \ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c-ts-mode/.yas-parents b/Emacs/.config/emacs/.config/yasnippet/snippets/c-ts-mode/.yas-parents new file mode 100644 index 0000000..21a598a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c-ts-mode/.yas-parents @@ -0,0 +1 @@ +c-mode cc-mode test-mode prog-mode \ No newline at end of file -- cgit v1.2.3-13-gbd6f