diff options
Diffstat (limited to 'emacs.d/lisp/yasnippet/snippets/markdown-mode')
22 files changed, 113 insertions, 0 deletions
diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/+ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/+ new file mode 100644 index 0000000..0407169 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/+ @@ -0,0 +1,5 @@ +#name : Unordered List +#contributor: Peng Deng <dengpeng@gmail.com> +# -- ++ ${1:Text} ++$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/- b/emacs.d/lisp/yasnippet/snippets/markdown-mode/- new file mode 100644 index 0000000..9d5c51d --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/- @@ -0,0 +1,5 @@ +#name : Unordered List +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +- ${1:Text} +-$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/markdown-mode/.yas-parents new file mode 100644 index 0000000..eed5b44 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/.yas-parents @@ -0,0 +1 @@ +text-mode diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/_ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/_ new file mode 100644 index 0000000..50ab476 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/_ @@ -0,0 +1,4 @@ +#name : Emphasis +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +_${1:Text}_ $0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/__ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/__ new file mode 100644 index 0000000..b6304f3 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/__ @@ -0,0 +1,4 @@ +#name : Strong +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +**${1:Text}** $0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/` b/emacs.d/lisp/yasnippet/snippets/markdown-mode/` new file mode 100644 index 0000000..ae58211 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/` @@ -0,0 +1,4 @@ +#name : Inline Code +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +\`${1:Code}\` $0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/h1.1 b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h1.1 new file mode 100644 index 0000000..8bb7ea2 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h1.1 @@ -0,0 +1,6 @@ +#name : Header 1 (#) +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +# ${1:Header 1} # + +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/h1.2 b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h1.2 new file mode 100644 index 0000000..d2e7b5b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h1.2 @@ -0,0 +1,7 @@ +#name : Header 1 (=) +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +${1:Header 1} +${1:$(make-string (string-width text) ?\=)} + +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/h2.1 b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h2.1 new file mode 100644 index 0000000..bfee3fc --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h2.1 @@ -0,0 +1,6 @@ +#name : Header 2 (##) +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +## ${1:Header 1} ## + +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/h2.2 b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h2.2 new file mode 100644 index 0000000..af06045 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h2.2 @@ -0,0 +1,7 @@ +#name : Header 2 (-) +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +${1:Header 2} +${1:$(make-string (string-width text) ?\-)} + +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/h3 b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h3 new file mode 100644 index 0000000..44a6104 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h3 @@ -0,0 +1,6 @@ +#name : Header 3 +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +### ${1:Header 3} ### + +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/h4 b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h4 new file mode 100644 index 0000000..315140a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h4 @@ -0,0 +1,6 @@ +#name : Header 4 +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +#### ${1:Header 4} #### + +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/h5 b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h5 new file mode 100644 index 0000000..f50a785 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h5 @@ -0,0 +1,6 @@ +#name : Header 5 +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +##### ${1:Header 5} ##### + +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/h6 b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h6 new file mode 100644 index 0000000..1cdfebb --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h6 @@ -0,0 +1,6 @@ +#name : Header 6 +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +###### ${1:Header 6} ###### + +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/hr.1 b/emacs.d/lisp/yasnippet/snippets/markdown-mode/hr.1 new file mode 100644 index 0000000..5fbe4f4 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/hr.1 @@ -0,0 +1,7 @@ +#name : Horizontal Rule (-) +#contributor: Peng Deng <dengpeng@gmail.com> +# -- + +---------- + +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/hr.2 b/emacs.d/lisp/yasnippet/snippets/markdown-mode/hr.2 new file mode 100644 index 0000000..2d4de22 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/hr.2 @@ -0,0 +1,7 @@ +#name : Horizontal Rule (*) +#contributor: Peng Deng <dengpeng@gmail.com> +# -- + +******* + +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/img b/emacs.d/lisp/yasnippet/snippets/markdown-mode/img new file mode 100644 index 0000000..69ee77d --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/img @@ -0,0 +1,4 @@ +#name : Image +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +![${1:Alt Text}](${2:URL} $3) $0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/link b/emacs.d/lisp/yasnippet/snippets/markdown-mode/link new file mode 100644 index 0000000..dd7f99b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/link @@ -0,0 +1,4 @@ +#name : Link +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +[${1:Link Text}](${2:URL} $3) $0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/ol b/emacs.d/lisp/yasnippet/snippets/markdown-mode/ol new file mode 100644 index 0000000..e715669 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/ol @@ -0,0 +1,5 @@ +#name : Ordered List +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +${1:1}. ${2:Text} +${1:$(number-to-string (1+ (string-to-number text)))}. $0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/rimg b/emacs.d/lisp/yasnippet/snippets/markdown-mode/rimg new file mode 100644 index 0000000..caafb60 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/rimg @@ -0,0 +1,4 @@ +#name : Referenced Image +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +![${1:Alt Text}][$2] $0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/rlb b/emacs.d/lisp/yasnippet/snippets/markdown-mode/rlb new file mode 100644 index 0000000..681d9f0 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/rlb @@ -0,0 +1,5 @@ +#name : Reference Label +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +[${1:Reference}]: ${2:URL} $3 +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/rlink b/emacs.d/lisp/yasnippet/snippets/markdown-mode/rlink new file mode 100644 index 0000000..e35a0c0 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/rlink @@ -0,0 +1,4 @@ +#name : Reference Link +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +[${1:Link Text}][$2] $0 |