diff options
Diffstat (limited to 'rst-mode')
-rw-r--r-- | rst-mode/chapter | 8 | ||||
-rw-r--r-- | rst-mode/section | 8 | ||||
-rw-r--r-- | rst-mode/title | 9 |
3 files changed, 25 insertions, 0 deletions
diff --git a/rst-mode/chapter b/rst-mode/chapter new file mode 100644 index 0000000..c5e3483 --- /dev/null +++ b/rst-mode/chapter @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name : Chapter title +# key: chap +# -- +${1:Chapter} +${1:$(make-string (string-width yas-text) ?\=)} + +$0 diff --git a/rst-mode/section b/rst-mode/section new file mode 100644 index 0000000..1739ad8 --- /dev/null +++ b/rst-mode/section @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name : Section title +# key: sec +# -- +${1:Section} +${1:$(make-string (string-width yas-text) ?\-)} + +$0 diff --git a/rst-mode/title b/rst-mode/title new file mode 100644 index 0000000..88c32f8 --- /dev/null +++ b/rst-mode/title @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name : Document title +# key: tit +# -- +${1:$(make-string (string-width yas-text) ?\=)} +${1:Title} +${1:$(make-string (string-width yas-text) ?\=)} + +$0 |