diff options
| author | Simeon Simeonov | 2017-02-21 08:41:52 +0100 |
|---|---|---|
| committer | Simeon Simeonov | 2017-02-21 08:41:52 +0100 |
| commit | 76a5d73336f125de166c111b1d3e637d122d65ca (patch) | |
| tree | 63ea8b5ed85691f76fd6d505754b388e8777762e | |
| parent | 6c9184e45865406de1df73a5b352df16fb55a6dd (diff) | |
Restructure the print and printf c-mode snippets
| -rw-r--r-- | .emacs.d/snippets/c-mode/compile | 5 | ||||
| -rw-r--r-- | .emacs.d/snippets/c-mode/print | 5 | ||||
| -rw-r--r-- | .emacs.d/snippets/c-mode/printf | 2 |
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 | # -- | ||
| 5 | printf("${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 | # -- |
| 5 | printf("${1:format string}"${2: ,a0,a1}); \ No newline at end of file | 5 | printf("${1:format string}"${2: ,a0,a1}); \ No newline at end of file |
