diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-24 23:29:38 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-24 23:29:38 +0200 |
commit | 7a6bb0f05e349068b0a89514f1da33d6d7de30a9 (patch) | |
tree | c202b81dfaf524e71e881c15aa509c45445a64b3 /emacs.d/lisp/yasnippet/snippets/ruby-mode/collections | |
parent | 66b95ab46d870f41c12c489eb21c9c82846d6112 (diff) | |
download | dotfiles-7a6bb0f05e349068b0a89514f1da33d6d7de30a9.tar.gz dotfiles-7a6bb0f05e349068b0a89514f1da33d6d7de30a9.tar.xz dotfiles-7a6bb0f05e349068b0a89514f1da33d6d7de30a9.zip |
emacs.d/lisp/yasnippet: added yasnippet
Diffstat (limited to '')
15 files changed, 45 insertions, 0 deletions
diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/all b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/all new file mode 100644 index 0000000..afb68a7 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/all @@ -0,0 +1,3 @@ +#name : all? { |...| ... } +# -- +all? { |${e}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/any b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/any new file mode 100644 index 0000000..2f4f9f1 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/any @@ -0,0 +1,3 @@ +#name : any? { |...| ... } +# -- +any? { |${e}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/classify b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/classify new file mode 100644 index 0000000..d1ad6f3 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/classify @@ -0,0 +1,3 @@ +#name : classify { |...| ... } +# -- +classify { |${e}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/collect b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/collect new file mode 100644 index 0000000..37cd4b5 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/collect @@ -0,0 +1,3 @@ +#name : collect { |...| ... } +# -- +collect { |${e}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/deli b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/deli new file mode 100644 index 0000000..f51d9a6 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/deli @@ -0,0 +1,3 @@ +#name : delete_if { |...| ... } +# -- +delete_if { |${e} $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/det b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/det new file mode 100644 index 0000000..599898c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/det @@ -0,0 +1,3 @@ +#name : detect { |...| ... } +# -- +detect { |${e}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/ea b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/ea new file mode 100644 index 0000000..40cb2cd --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/ea @@ -0,0 +1,3 @@ +#name : each { |...| ... } +# -- +each { |${e}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eac b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eac new file mode 100644 index 0000000..7a7ccd4 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eac @@ -0,0 +1,3 @@ +#name : each_cons(...) { |...| ... } +# -- +each_cons(${1:2}) { |${group}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eai b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eai new file mode 100644 index 0000000..b68cf69 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eai @@ -0,0 +1,3 @@ +#name : each_index { |i| ... } +# -- +each_index { |${i}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eav b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eav new file mode 100644 index 0000000..189ceff --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eav @@ -0,0 +1,3 @@ +#name : each_value { |val| ... } +# -- +each_value { |${val}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eawi b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eawi new file mode 100644 index 0000000..8718f7a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eawi @@ -0,0 +1,3 @@ +#name : each_with_index { |e, i| ... } +# -- +each_with_index { |${e}, ${i}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/inject b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/inject new file mode 100644 index 0000000..eaa0f28 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/inject @@ -0,0 +1,3 @@ +#name : inject(...) { |...| ... } +# -- +inject(${1:0}) { |${2:injection}, ${3:element}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/reject b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/reject new file mode 100644 index 0000000..032b06d --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/reject @@ -0,0 +1,3 @@ +#name : reject { |...| ... } +# -- +reject { |${1:element}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/select b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/select new file mode 100644 index 0000000..5ea4ef8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/select @@ -0,0 +1,3 @@ +#name : select { |...| ... } +# -- +select { |${1:element}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/zip b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/zip new file mode 100644 index 0000000..910de64 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/zip @@ -0,0 +1,3 @@ +#name : zip(...) { |...| ... } +# -- +zip(${enums}) { |${row}| $0 } |