diff options
Diffstat (limited to '.emacs.d/snippets/markdown-mode')
24 files changed, 176 insertions, 0 deletions
diff --git a/.emacs.d/snippets/markdown-mode/back-quote b/.emacs.d/snippets/markdown-mode/back-quote new file mode 100644 index 0000000..519fe14 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/back-quote | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: Inline Code | ||
| 3 | # contributor: Peng Deng <dengpeng@gmail.com> | ||
| 4 | # key: ` | ||
| 5 | # -- | ||
| 6 | \`${1:Code}\` $0 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/markdown-mode/code b/.emacs.d/snippets/markdown-mode/code new file mode 100644 index 0000000..4289e72 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/code | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: Code block | ||
| 3 | # key: code | ||
| 4 | # -- | ||
| 5 | \`\`\`$1 | ||
| 6 | $0 | ||
| 7 | \`\`\` | ||
diff --git a/.emacs.d/snippets/markdown-mode/emphasis b/.emacs.d/snippets/markdown-mode/emphasis new file mode 100644 index 0000000..0ef6878 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/emphasis | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: Emphasis | ||
| 3 | # contributor: Peng Deng <dengpeng@gmail.com> | ||
| 4 | # key: _ | ||
| 5 | # -- | ||
| 6 | _${1:Text}_ $0 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/markdown-mode/h1.1 b/.emacs.d/snippets/markdown-mode/h1.1 new file mode 100644 index 0000000..534337a --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/h1.1 | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: Header 1 (#) | ||
| 3 | # contributor: Peng Deng <dengpeng@gmail.com> | ||
| 4 | # key: h1 | ||
| 5 | # -- | ||
| 6 | # ${1:Header 1} # | ||
| 7 | |||
| 8 | $0 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/markdown-mode/h1.2 b/.emacs.d/snippets/markdown-mode/h1.2 new file mode 100644 index 0000000..dbf567c --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/h1.2 | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: Header 1 (=) | ||
| 3 | # contributor: Peng Deng <dengpeng@gmail.com> | ||
| 4 | # key: h1 | ||
| 5 | # -- | ||
| 6 | ${1:Header 1} | ||
| 7 | ${1:$(make-string (string-width yas-text) ?\=)} | ||
| 8 | |||
| 9 | $0 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/markdown-mode/h2.1 b/.emacs.d/snippets/markdown-mode/h2.1 new file mode 100644 index 0000000..7830c97 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/h2.1 | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: Header 2 (##) | ||
| 3 | # contributor: Peng Deng <dengpeng@gmail.com> | ||
| 4 | # key: h2 | ||
| 5 | # -- | ||
| 6 | ## ${1:Header 1} ## | ||
| 7 | |||
| 8 | $0 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/markdown-mode/h2.2 b/.emacs.d/snippets/markdown-mode/h2.2 new file mode 100644 index 0000000..16baba9 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/h2.2 | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: Header 2 (-) | ||
| 3 | # contributor: Peng Deng <dengpeng@gmail.com> | ||
| 4 | # key: h2 | ||
| 5 | # -- | ||
| 6 | ${1:Header 2} | ||
| 7 | ${1:$(make-string (string-width yas-text) ?\-)} | ||
| 8 | |||
| 9 | $0 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/markdown-mode/h3 b/.emacs.d/snippets/markdown-mode/h3 new file mode 100644 index 0000000..ba2a552 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/h3 | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: Header 3 | ||
| 3 | # contributor: Peng Deng <dengpeng@gmail.com> | ||
| 4 | # key: h3 | ||
| 5 | # -- | ||
| 6 | ### ${1:Header 3} ### | ||
| 7 | |||
| 8 | $0 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/markdown-mode/h4 b/.emacs.d/snippets/markdown-mode/h4 new file mode 100644 index 0000000..d9f5ec6 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/h4 | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: Header 4 | ||
| 3 | # contributor: Peng Deng <dengpeng@gmail.com> | ||
| 4 | # key: h4 | ||
| 5 | # -- | ||
| 6 | #### ${1:Header 4} #### | ||
| 7 | |||
| 8 | $0 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/markdown-mode/h5 b/.emacs.d/snippets/markdown-mode/h5 new file mode 100644 index 0000000..08fc8f1 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/h5 | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: Header 5 | ||
| 3 | # contributor: Peng Deng <dengpeng@gmail.com> | ||
| 4 | # key: h5 | ||
| 5 | # -- | ||
| 6 | ##### ${1:Header 5} ##### | ||
| 7 | |||
| 8 | $0 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/markdown-mode/h6 b/.emacs.d/snippets/markdown-mode/h6 new file mode 100644 index 0000000..24b974d --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/h6 | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: Header 6 | ||
| 3 | # contributor: Peng Deng <dengpeng@gmail.com> | ||
| 4 | # key: h6 | ||
| 5 | # -- | ||
| 6 | ###### ${1:Header 6} ###### | ||
| 7 | |||
| 8 | $0 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/markdown-mode/highlight b/.emacs.d/snippets/markdown-mode/highlight new file mode 100644 index 0000000..2e47e18 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/highlight | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: Highlight | ||
| 3 | # contributor: nguyenvinhlinh <nguyenvinhlinh93@gmail.com> | ||
| 4 | # key: highlight | ||
| 5 | # -- | ||
| 6 | {% highlight ${1:language} %} | ||
| 7 | ${0:content} | ||
| 8 | {% endhighlight %} \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/markdown-mode/hr.1 b/.emacs.d/snippets/markdown-mode/hr.1 new file mode 100644 index 0000000..579ba01 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/hr.1 | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: Horizontal Rule (-) | ||
| 3 | # contributor: Peng Deng <dengpeng@gmail.com> | ||
| 4 | # key: hr | ||
| 5 | # -- | ||
| 6 | |||
| 7 | ---------- | ||
| 8 | |||
| 9 | $0 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/markdown-mode/hr.2 b/.emacs.d/snippets/markdown-mode/hr.2 new file mode 100644 index 0000000..4d34e2f --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/hr.2 | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: Horizontal Rule (*) | ||
| 3 | # contributor: Peng Deng <dengpeng@gmail.com> | ||
| 4 | # key: hr | ||
| 5 | # -- | ||
| 6 | |||
| 7 | ******* | ||
| 8 | |||
| 9 | $0 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/markdown-mode/hyphen b/.emacs.d/snippets/markdown-mode/hyphen new file mode 100644 index 0000000..8827292 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/hyphen | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: Unordered List - | ||
| 3 | # contributor: Peng Deng <dengpeng@gmail.com> | ||
| 4 | # key: - | ||
| 5 | # -- | ||
| 6 | - ${1:Text} | ||
| 7 | - $0 | ||
diff --git a/.emacs.d/snippets/markdown-mode/img b/.emacs.d/snippets/markdown-mode/img new file mode 100644 index 0000000..9a0db4f --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/img | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: Image | ||
| 3 | # contributor: Peng Deng <dengpeng@gmail.com> | ||
| 4 | # key: img | ||
| 5 | # -- | ||
| 6 |  $0 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/markdown-mode/link b/.emacs.d/snippets/markdown-mode/link new file mode 100644 index 0000000..2b96f56 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/link | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: Link | ||
| 3 | # contributor: Peng Deng <dengpeng@gmail.com> | ||
| 4 | # key: link | ||
| 5 | # -- | ||
| 6 | [${1:Link Text}](${2:URL} $3) $0 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/markdown-mode/ordered-list b/.emacs.d/snippets/markdown-mode/ordered-list new file mode 100644 index 0000000..beb0f28 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/ordered-list | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: Ordered List | ||
| 3 | # contributor: Peng Deng <dengpeng@gmail.com> | ||
| 4 | # key: ol | ||
| 5 | # -- | ||
| 6 | ${1:1}. ${2:Text} | ||
| 7 | ${1:$(number-to-string (1+ (string-to-number yas-text)))}. $0 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/markdown-mode/plus b/.emacs.d/snippets/markdown-mode/plus new file mode 100644 index 0000000..ebcaab1 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/plus | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: Unordered List + | ||
| 3 | # contributor: Peng Deng <dengpeng@gmail.com> | ||
| 4 | # key: + | ||
| 5 | # -- | ||
| 6 | + ${1:Text} | ||
| 7 | +$0 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/markdown-mode/rimg b/.emacs.d/snippets/markdown-mode/rimg new file mode 100644 index 0000000..85046e4 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/rimg | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: Referenced Image | ||
| 3 | # contributor: Peng Deng <dengpeng@gmail.com> | ||
| 4 | # key: rimg | ||
| 5 | # -- | ||
| 6 | ![${1:Alt Text}][$2] $0 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/markdown-mode/rlb b/.emacs.d/snippets/markdown-mode/rlb new file mode 100644 index 0000000..6aabc4a --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/rlb | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: Reference Label | ||
| 3 | # contributor: Peng Deng <dengpeng@gmail.com> | ||
| 4 | # key: rlb | ||
| 5 | # -- | ||
| 6 | [${1:Reference}]: ${2:URL} $3 | ||
| 7 | $0 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/markdown-mode/rlink b/.emacs.d/snippets/markdown-mode/rlink new file mode 100644 index 0000000..cce2e1a --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/rlink | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: Reference Link | ||
| 3 | # contributor: Peng Deng <dengpeng@gmail.com> | ||
| 4 | # key: rlink | ||
| 5 | # -- | ||
| 6 | [${1:Link Text}][$2] $0 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/markdown-mode/strong-emphasis b/.emacs.d/snippets/markdown-mode/strong-emphasis new file mode 100644 index 0000000..bcef3f9 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/strong-emphasis | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: Strong emphasis | ||
| 3 | # contributor: Peng Deng <dengpeng@gmail.com> | ||
| 4 | # key: __ | ||
| 5 | # -- | ||
| 6 | **${1:Text}** $0 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/markdown-mode/utf8 b/.emacs.d/snippets/markdown-mode/utf8 new file mode 100644 index 0000000..0b39d88 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/utf8 | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: UTF-8 encoding | ||
| 3 | # key: utf8 | ||
| 4 | # contributor: Thiago Perrotta | ||
| 5 | # -- | ||
| 6 | <meta http-equiv='Content-Type' content='text/html; charset=utf-8' /> | ||
| 7 | $0 \ No newline at end of file | ||
