aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/c++-ts-mode/.yas-parents1
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/compile6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/malloc7
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/printf6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/union8
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/c-ts-mode/.yas-parents1
6 files changed, 2 insertions, 27 deletions
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