From 8780bc95eaaca13630321d564ba6a25c34c89a8d Mon Sep 17 00:00:00 2001 From: Zhang Chiyuan Date: Wed, 12 Mar 2008 02:16:20 +0000 Subject: [PATCH] more snippets for rst-mode --- snippets/text-mode/python-mode/class | 1 + snippets/text-mode/python-mode/def | 1 + snippets/text-mode/rst-mode/chapter | 6 ++++++ snippets/text-mode/rst-mode/section | 6 ++++++ 4 files changed, 14 insertions(+) create mode 100644 snippets/text-mode/rst-mode/chapter create mode 100644 snippets/text-mode/rst-mode/section diff --git a/snippets/text-mode/python-mode/class b/snippets/text-mode/python-mode/class index 36f236f..2724106 100644 --- a/snippets/text-mode/python-mode/class +++ b/snippets/text-mode/python-mode/class @@ -1,3 +1,4 @@ +#contributor : Orestis Markou #name : class ... : # -- class ${1:cname}(${2:object}): diff --git a/snippets/text-mode/python-mode/def b/snippets/text-mode/python-mode/def index 1653770..70e248c 100644 --- a/snippets/text-mode/python-mode/def +++ b/snippets/text-mode/python-mode/def @@ -1,3 +1,4 @@ +#contributor : Orestis Markou #name : def ... : # -- def ${1:fname}(${self}): diff --git a/snippets/text-mode/rst-mode/chapter b/snippets/text-mode/rst-mode/chapter new file mode 100644 index 0000000..6474c00 --- /dev/null +++ b/snippets/text-mode/rst-mode/chapter @@ -0,0 +1,6 @@ +#name : Chapter title +# -- +${1:Chapter} +${1:$(make-string (string-width text) ?\=)} + +$0 \ No newline at end of file diff --git a/snippets/text-mode/rst-mode/section b/snippets/text-mode/rst-mode/section new file mode 100644 index 0000000..76087ed --- /dev/null +++ b/snippets/text-mode/rst-mode/section @@ -0,0 +1,6 @@ +#name : Section title +# -- +${1:Section} +${1:$(make-string (string-width text) ?\-)} + +$0 \ No newline at end of file