summaryrefslogtreecommitdiff
path: root/.emacs.d/snippets/c-mode
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/snippets/c-mode')
-rw-r--r--.emacs.d/snippets/c-mode/compile5
-rw-r--r--.emacs.d/snippets/c-mode/print5
-rw-r--r--.emacs.d/snippets/c-mode/printf2
3 files changed, 6 insertions, 6 deletions
diff --git a/.emacs.d/snippets/c-mode/compile b/.emacs.d/snippets/c-mode/compile
deleted file mode 100644
index 8246a10..0000000
--- a/.emacs.d/snippets/c-mode/compile
+++ /dev/null
@@ -1,5 +0,0 @@
1# -*- mode: snippet -*-
2# name: compile
3# key: compile
4# --
5// -*- compile-command: "${1:gcc -Wall -o ${2:dest} ${3:file}}" -*- \ No newline at end of file
diff --git a/.emacs.d/snippets/c-mode/print b/.emacs.d/snippets/c-mode/print
new file mode 100644
index 0000000..4b56128
--- /dev/null
+++ b/.emacs.d/snippets/c-mode/print
@@ -0,0 +1,5 @@
1# -*- mode: snippet -*-
2# name: print
3# key: p
4# --
5printf("${1}"); \ No newline at end of file
diff --git a/.emacs.d/snippets/c-mode/printf b/.emacs.d/snippets/c-mode/printf
index ec1567e..9c2c0ef 100644
--- a/.emacs.d/snippets/c-mode/printf
+++ b/.emacs.d/snippets/c-mode/printf
@@ -1,5 +1,5 @@
1# -*- mode: snippet -*- 1# -*- mode: snippet -*-
2# name: printf 2# name: printf
3# key: p 3# key: pf
4# -- 4# --
5printf("${1:format string}"${2: ,a0,a1}); \ No newline at end of file 5printf("${1:format string}"${2: ,a0,a1}); \ No newline at end of file