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/null5
-rw-r--r--.emacs.d/snippets/c-mode/print2
-rw-r--r--.emacs.d/snippets/c-mode/printf2
-rw-r--r--.emacs.d/snippets/c-mode/return5
4 files changed, 12 insertions, 2 deletions
diff --git a/.emacs.d/snippets/c-mode/null b/.emacs.d/snippets/c-mode/null
new file mode 100644
index 0000000..525fc57
--- /dev/null
+++ b/.emacs.d/snippets/c-mode/null
@@ -0,0 +1,5 @@
1# -*- mode: snippet -*-
2# name: null
3# key: N
4# --
5NULL \ No newline at end of file
diff --git a/.emacs.d/snippets/c-mode/print b/.emacs.d/snippets/c-mode/print
index 4b56128..1ae9dcd 100644
--- a/.emacs.d/snippets/c-mode/print
+++ b/.emacs.d/snippets/c-mode/print
@@ -2,4 +2,4 @@
2# name: print 2# name: print
3# key: p 3# key: p
4# -- 4# --
5printf("${1}"); \ No newline at end of file 5printf("$0"); \ No newline at end of file
diff --git a/.emacs.d/snippets/c-mode/printf b/.emacs.d/snippets/c-mode/printf
index 9c2c0ef..a92b122 100644
--- a/.emacs.d/snippets/c-mode/printf
+++ b/.emacs.d/snippets/c-mode/printf
@@ -2,4 +2,4 @@
2# name: printf 2# name: printf
3# key: pf 3# key: pf
4# -- 4# --
5printf("${1:format string}"${2: ,a0,a1}); \ No newline at end of file 5printf("${1:format string}"$2); \ No newline at end of file
diff --git a/.emacs.d/snippets/c-mode/return b/.emacs.d/snippets/c-mode/return
new file mode 100644
index 0000000..70751a2
--- /dev/null
+++ b/.emacs.d/snippets/c-mode/return
@@ -0,0 +1,5 @@
1# -*- mode: snippet -*-
2# name: return
3# key: r
4# --
5return $0; \ No newline at end of file