From 4e57fb98342dd3cce7faa38e25c8ec2014a21865 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Mon, 22 Apr 2024 15:25:08 +0200 Subject: Update markdown-mode, yasnippet, yasnippet-snippets and add snippets/markdown-mode --- .emacs.d/snippets/markdown-mode/back-quote | 6 ++++++ .emacs.d/snippets/markdown-mode/code | 7 +++++++ .emacs.d/snippets/markdown-mode/emphasis | 6 ++++++ .emacs.d/snippets/markdown-mode/h1.1 | 8 ++++++++ .emacs.d/snippets/markdown-mode/h1.2 | 9 +++++++++ .emacs.d/snippets/markdown-mode/h2.1 | 8 ++++++++ .emacs.d/snippets/markdown-mode/h2.2 | 9 +++++++++ .emacs.d/snippets/markdown-mode/h3 | 8 ++++++++ .emacs.d/snippets/markdown-mode/h4 | 8 ++++++++ .emacs.d/snippets/markdown-mode/h5 | 8 ++++++++ .emacs.d/snippets/markdown-mode/h6 | 8 ++++++++ .emacs.d/snippets/markdown-mode/highlight | 8 ++++++++ .emacs.d/snippets/markdown-mode/hr.1 | 9 +++++++++ .emacs.d/snippets/markdown-mode/hr.2 | 9 +++++++++ .emacs.d/snippets/markdown-mode/hyphen | 7 +++++++ .emacs.d/snippets/markdown-mode/img | 6 ++++++ .emacs.d/snippets/markdown-mode/link | 6 ++++++ .emacs.d/snippets/markdown-mode/ordered-list | 7 +++++++ .emacs.d/snippets/markdown-mode/plus | 7 +++++++ .emacs.d/snippets/markdown-mode/rimg | 6 ++++++ .emacs.d/snippets/markdown-mode/rlb | 7 +++++++ .emacs.d/snippets/markdown-mode/rlink | 6 ++++++ .emacs.d/snippets/markdown-mode/strong-emphasis | 6 ++++++ .emacs.d/snippets/markdown-mode/utf8 | 7 +++++++ 24 files changed, 176 insertions(+) create mode 100644 .emacs.d/snippets/markdown-mode/back-quote create mode 100644 .emacs.d/snippets/markdown-mode/code create mode 100644 .emacs.d/snippets/markdown-mode/emphasis create mode 100644 .emacs.d/snippets/markdown-mode/h1.1 create mode 100644 .emacs.d/snippets/markdown-mode/h1.2 create mode 100644 .emacs.d/snippets/markdown-mode/h2.1 create mode 100644 .emacs.d/snippets/markdown-mode/h2.2 create mode 100644 .emacs.d/snippets/markdown-mode/h3 create mode 100644 .emacs.d/snippets/markdown-mode/h4 create mode 100644 .emacs.d/snippets/markdown-mode/h5 create mode 100644 .emacs.d/snippets/markdown-mode/h6 create mode 100644 .emacs.d/snippets/markdown-mode/highlight create mode 100644 .emacs.d/snippets/markdown-mode/hr.1 create mode 100644 .emacs.d/snippets/markdown-mode/hr.2 create mode 100644 .emacs.d/snippets/markdown-mode/hyphen create mode 100644 .emacs.d/snippets/markdown-mode/img create mode 100644 .emacs.d/snippets/markdown-mode/link create mode 100644 .emacs.d/snippets/markdown-mode/ordered-list create mode 100644 .emacs.d/snippets/markdown-mode/plus create mode 100644 .emacs.d/snippets/markdown-mode/rimg create mode 100644 .emacs.d/snippets/markdown-mode/rlb create mode 100644 .emacs.d/snippets/markdown-mode/rlink create mode 100644 .emacs.d/snippets/markdown-mode/strong-emphasis create mode 100644 .emacs.d/snippets/markdown-mode/utf8 (limited to '.emacs.d/snippets/markdown-mode') 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 @@ +# -*- mode: snippet -*- +# name: Inline Code +# contributor: Peng Deng +# key: ` +# -- +\`${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 @@ +# -*- mode: snippet -*- +# name: Code block +# key: code +# -- +\`\`\`$1 +$0 +\`\`\` 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 @@ +# -*- mode: snippet -*- +# name: Emphasis +# contributor: Peng Deng +# key: _ +# -- +_${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 @@ +# -*- mode: snippet -*- +# name: Header 1 (#) +# contributor: Peng Deng +# key: h1 +# -- +# ${1:Header 1} # + +$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 @@ +# -*- mode: snippet -*- +# name: Header 1 (=) +# contributor: Peng Deng +# key: h1 +# -- +${1:Header 1} +${1:$(make-string (string-width yas-text) ?\=)} + +$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 @@ +# -*- mode: snippet -*- +# name: Header 2 (##) +# contributor: Peng Deng +# key: h2 +# -- +## ${1:Header 1} ## + +$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 @@ +# -*- mode: snippet -*- +# name: Header 2 (-) +# contributor: Peng Deng +# key: h2 +# -- +${1:Header 2} +${1:$(make-string (string-width yas-text) ?\-)} + +$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 @@ +# -*- mode: snippet -*- +# name: Header 3 +# contributor: Peng Deng +# key: h3 +# -- +### ${1:Header 3} ### + +$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 @@ +# -*- mode: snippet -*- +# name: Header 4 +# contributor: Peng Deng +# key: h4 +# -- +#### ${1:Header 4} #### + +$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 @@ +# -*- mode: snippet -*- +# name: Header 5 +# contributor: Peng Deng +# key: h5 +# -- +##### ${1:Header 5} ##### + +$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 @@ +# -*- mode: snippet -*- +# name: Header 6 +# contributor: Peng Deng +# key: h6 +# -- +###### ${1:Header 6} ###### + +$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 @@ +# -*- mode: snippet -*- +# name: Highlight +# contributor: nguyenvinhlinh +# key: highlight +# -- +{% highlight ${1:language} %} +${0:content} +{% 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 @@ +# -*- mode: snippet -*- +# name: Horizontal Rule (-) +# contributor: Peng Deng +# key: hr +# -- + +---------- + +$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 @@ +# -*- mode: snippet -*- +# name: Horizontal Rule (*) +# contributor: Peng Deng +# key: hr +# -- + +******* + +$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 @@ +# -*- mode: snippet -*- +# name: Unordered List - +# contributor: Peng Deng +# key: - +# -- +- ${1:Text} +- $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 @@ +# -*- mode: snippet -*- +# name: Image +# contributor: Peng Deng +# key: img +# -- +![${1:Alt Text}](${2:URL} $3) $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 @@ +# -*- mode: snippet -*- +# name: Link +# contributor: Peng Deng +# key: link +# -- +[${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 @@ +# -*- mode: snippet -*- +# name: Ordered List +# contributor: Peng Deng +# key: ol +# -- +${1:1}. ${2:Text} +${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 @@ +# -*- mode: snippet -*- +# name: Unordered List + +# contributor: Peng Deng +# key: + +# -- ++ ${1:Text} ++$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 @@ +# -*- mode: snippet -*- +# name: Referenced Image +# contributor: Peng Deng +# key: rimg +# -- +![${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 @@ +# -*- mode: snippet -*- +# name: Reference Label +# contributor: Peng Deng +# key: rlb +# -- +[${1:Reference}]: ${2:URL} $3 +$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 @@ +# -*- mode: snippet -*- +# name: Reference Link +# contributor: Peng Deng +# key: rlink +# -- +[${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 @@ +# -*- mode: snippet -*- +# name: Strong emphasis +# contributor: Peng Deng +# key: __ +# -- +**${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 @@ +# -*- mode: snippet -*- +# name: UTF-8 encoding +# key: utf8 +# contributor: Thiago Perrotta +# -- + +$0 \ No newline at end of file -- cgit v1.3