mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
more snippets for rst-mode
This commit is contained in:
parent
d05cb05a9d
commit
8780bc95ea
@ -1,3 +1,4 @@
|
||||
#contributor : Orestis Markou
|
||||
#name : class ... :
|
||||
# --
|
||||
class ${1:cname}(${2:object}):
|
||||
|
@ -1,3 +1,4 @@
|
||||
#contributor : Orestis Markou
|
||||
#name : def ... :
|
||||
# --
|
||||
def ${1:fname}(${self}):
|
||||
|
6
snippets/text-mode/rst-mode/chapter
Normal file
6
snippets/text-mode/rst-mode/chapter
Normal file
@ -0,0 +1,6 @@
|
||||
#name : Chapter title
|
||||
# --
|
||||
${1:Chapter}
|
||||
${1:$(make-string (string-width text) ?\=)}
|
||||
|
||||
$0
|
6
snippets/text-mode/rst-mode/section
Normal file
6
snippets/text-mode/rst-mode/section
Normal file
@ -0,0 +1,6 @@
|
||||
#name : Section title
|
||||
# --
|
||||
${1:Section}
|
||||
${1:$(make-string (string-width text) ?\-)}
|
||||
|
||||
$0
|
Loading…
x
Reference in New Issue
Block a user