Add some snippets

This commit is contained in:
Tom Willemse 2015-07-08 15:14:14 +02:00
parent f54d8a5930
commit dd58c6cf66
8 changed files with 44 additions and 1 deletions

View file

@ -0,0 +1,5 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: depends-on
# key: do
# --
(depends-on "$1")$0

View file

@ -1,5 +1,5 @@
# -*- mode: snippet; require-final-newline: nil -*- # -*- mode: snippet; require-final-newline: nil -*-
# name: face # name: face
# key: f # key: face
# -- # --
`($1 ((t (${2::foreground} $0)))) `($1 ((t (${2::foreground} $0))))

View file

@ -0,0 +1,7 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: PencilProperty
# key: p
# --
<Property name="$1"
displayName="$2"
type="$3">$4</Property>

View file

@ -0,0 +1,5 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: PropertyValue
# key: pv
# --
<PropertyValue name="$1">$2</PropertyValue>

View file

@ -0,0 +1,9 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: Shortcut
# key: s
# --
<Shortcut displayName="$1"
icon="$2"
to="$3">
$0
</Shortcut>

View file

@ -0,0 +1,7 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: describe
# key: desc
# --
describe '$1' do
$0
end

View file

@ -0,0 +1,5 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: fill_in
# key: fin
# --
fill_in '$1', with: $2

View file

@ -0,0 +1,5 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: reduce
# key: reduce
# --
reduce { |a, e| $0 }