summaryrefslogtreecommitdiffstats
path: root/emacs.d/snippets
diff options
context:
space:
mode:
Diffstat (limited to 'emacs.d/snippets')
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/c++-mode/beginend3
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/c++-mode/class8
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/c++-mode/ns3
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/c++-mode/template3
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/c++-mode/using4
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/c-mode/fopen3
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/c-mode/printf6
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib7
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib.121
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib.221
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/class21
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment6
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.14
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.24
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.34
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/method10
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/namespace7
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/prop16
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/region6
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/using4
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/using.14
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/csharp-mode/using.24
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/do6
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/for6
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/if6
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/inc3
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/inc.13
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/main7
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/objc-mode/prop13
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/once8
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/struct6
-rw-r--r--emacs.d/snippets/text-mode/css-mode/bg3
-rw-r--r--emacs.d/snippets/text-mode/css-mode/bg.13
-rw-r--r--emacs.d/snippets/text-mode/css-mode/bor3
-rw-r--r--emacs.d/snippets/text-mode/css-mode/cl4
-rw-r--r--emacs.d/snippets/text-mode/css-mode/disp.block4
-rw-r--r--emacs.d/snippets/text-mode/css-mode/disp.inline4
-rw-r--r--emacs.d/snippets/text-mode/css-mode/disp.none4
-rw-r--r--emacs.d/snippets/text-mode/css-mode/ff4
-rw-r--r--emacs.d/snippets/text-mode/css-mode/fs4
-rw-r--r--emacs.d/snippets/text-mode/css-mode/mar.bottom4
-rw-r--r--emacs.d/snippets/text-mode/css-mode/mar.left4
-rw-r--r--emacs.d/snippets/text-mode/css-mode/mar.mar4
-rw-r--r--emacs.d/snippets/text-mode/css-mode/mar.margin4
-rw-r--r--emacs.d/snippets/text-mode/css-mode/mar.right4
-rw-r--r--emacs.d/snippets/text-mode/css-mode/mar.top4
-rw-r--r--emacs.d/snippets/text-mode/css-mode/pad.bottom4
-rw-r--r--emacs.d/snippets/text-mode/css-mode/pad.left4
-rw-r--r--emacs.d/snippets/text-mode/css-mode/pad.pad4
-rw-r--r--emacs.d/snippets/text-mode/css-mode/pad.padding4
-rw-r--r--emacs.d/snippets/text-mode/css-mode/pad.right4
-rw-r--r--emacs.d/snippets/text-mode/css-mode/pad.top4
-rw-r--r--emacs.d/snippets/text-mode/emacs-lisp-mode/.read_me11
-rw-r--r--emacs.d/snippets/text-mode/emacs-lisp-mode/defun11
-rw-r--r--emacs.d/snippets/text-mode/emacs-lisp-mode/dired.process_marked16
-rw-r--r--emacs.d/snippets/text-mode/emacs-lisp-mode/file.process17
-rw-r--r--emacs.d/snippets/text-mode/emacs-lisp-mode/file.read-lines17
-rw-r--r--emacs.d/snippets/text-mode/emacs-lisp-mode/find-replace17
-rw-r--r--emacs.d/snippets/text-mode/emacs-lisp-mode/grabstring4
-rw-r--r--emacs.d/snippets/text-mode/emacs-lisp-mode/grabthing4
-rw-r--r--emacs.d/snippets/text-mode/emacs-lisp-mode/traverse_dir6
-rw-r--r--emacs.d/snippets/text-mode/emacs-lisp-mode/word-or-region27
-rw-r--r--emacs.d/snippets/text-mode/email3
-rw-r--r--emacs.d/snippets/text-mode/erlang-mode/after4
-rw-r--r--emacs.d/snippets/text-mode/erlang-mode/begin5
-rw-r--r--emacs.d/snippets/text-mode/erlang-mode/beh4
-rw-r--r--emacs.d/snippets/text-mode/erlang-mode/case5
-rw-r--r--emacs.d/snippets/text-mode/erlang-mode/compile4
-rw-r--r--emacs.d/snippets/text-mode/erlang-mode/def4
-rw-r--r--emacs.d/snippets/text-mode/erlang-mode/exp5
-rw-r--r--emacs.d/snippets/text-mode/erlang-mode/fun3
-rw-r--r--emacs.d/snippets/text-mode/erlang-mode/if6
-rw-r--r--emacs.d/snippets/text-mode/erlang-mode/ifdef5
-rw-r--r--emacs.d/snippets/text-mode/erlang-mode/ifndef5
-rw-r--r--emacs.d/snippets/text-mode/erlang-mode/imp5
-rw-r--r--emacs.d/snippets/text-mode/erlang-mode/inc4
-rw-r--r--emacs.d/snippets/text-mode/erlang-mode/inc.lib4
-rw-r--r--emacs.d/snippets/text-mode/erlang-mode/loop8
-rw-r--r--emacs.d/snippets/text-mode/erlang-mode/mod6
-rw-r--r--emacs.d/snippets/text-mode/erlang-mode/rcv5
-rw-r--r--emacs.d/snippets/text-mode/erlang-mode/rcv.after6
-rw-r--r--emacs.d/snippets/text-mode/erlang-mode/rec4
-rw-r--r--emacs.d/snippets/text-mode/erlang-mode/try7
-rw-r--r--emacs.d/snippets/text-mode/erlang-mode/undef4
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/au4
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/bd4
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/c4
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/ch4
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/cx4
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/dc4
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/do6
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/dp4
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/eq4
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/ib4
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/ic4
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/ich4
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/if6
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/ii4
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/il4
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/in4
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/inc4
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/intr4
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/ir4
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/l4
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/pa4
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/pr6
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/re4
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/st4
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/su4
-rw-r--r--emacs.d/snippets/text-mode/f90-mode/wr4
-rw-r--r--emacs.d/snippets/text-mode/html-mode/body6
-rw-r--r--emacs.d/snippets/text-mode/html-mode/br4
-rw-r--r--emacs.d/snippets/text-mode/html-mode/code6
-rw-r--r--emacs.d/snippets/text-mode/html-mode/code.class6
-rw-r--r--emacs.d/snippets/text-mode/html-mode/dd5
-rw-r--r--emacs.d/snippets/text-mode/html-mode/div3
-rw-r--r--emacs.d/snippets/text-mode/html-mode/div.class6
-rw-r--r--emacs.d/snippets/text-mode/html-mode/div.id6
-rw-r--r--emacs.d/snippets/text-mode/html-mode/div.id-class6
-rw-r--r--emacs.d/snippets/text-mode/html-mode/dl7
-rw-r--r--emacs.d/snippets/text-mode/html-mode/dl.id7
-rw-r--r--emacs.d/snippets/text-mode/html-mode/doctype4
-rw-r--r--emacs.d/snippets/text-mode/html-mode/doctype.xhml14
-rw-r--r--emacs.d/snippets/text-mode/html-mode/doctype.xhtml1_14
-rw-r--r--emacs.d/snippets/text-mode/html-mode/doctype.xhtml1_strict4
-rw-r--r--emacs.d/snippets/text-mode/html-mode/doctype.xhtml1_transitional4
-rw-r--r--emacs.d/snippets/text-mode/html-mode/dov11
-rw-r--r--emacs.d/snippets/text-mode/html-mode/dt5
-rw-r--r--emacs.d/snippets/text-mode/html-mode/form6
-rw-r--r--emacs.d/snippets/text-mode/html-mode/h15
-rw-r--r--emacs.d/snippets/text-mode/html-mode/h25
-rw-r--r--emacs.d/snippets/text-mode/html-mode/h35
-rw-r--r--emacs.d/snippets/text-mode/html-mode/h45
-rw-r--r--emacs.d/snippets/text-mode/html-mode/h55
-rw-r--r--emacs.d/snippets/text-mode/html-mode/h65
-rw-r--r--emacs.d/snippets/text-mode/html-mode/head6
-rw-r--r--emacs.d/snippets/text-mode/html-mode/hr4
-rw-r--r--emacs.d/snippets/text-mode/html-mode/href4
-rw-r--r--emacs.d/snippets/text-mode/html-mode/html6
-rw-r--r--emacs.d/snippets/text-mode/html-mode/html.xmlns6
-rw-r--r--emacs.d/snippets/text-mode/html-mode/img4
-rw-r--r--emacs.d/snippets/text-mode/html-mode/input4
-rw-r--r--emacs.d/snippets/text-mode/html-mode/li5
-rw-r--r--emacs.d/snippets/text-mode/html-mode/li.class5
-rw-r--r--emacs.d/snippets/text-mode/html-mode/link.stylesheet4
-rw-r--r--emacs.d/snippets/text-mode/html-mode/link.stylesheet-ie6
-rw-r--r--emacs.d/snippets/text-mode/html-mode/mailto4
-rw-r--r--emacs.d/snippets/text-mode/html-mode/meta5
-rw-r--r--emacs.d/snippets/text-mode/html-mode/meta.http-equiv5
-rw-r--r--emacs.d/snippets/text-mode/html-mode/ol7
-rw-r--r--emacs.d/snippets/text-mode/html-mode/ol.class7
-rw-r--r--emacs.d/snippets/text-mode/html-mode/ol.id7
-rw-r--r--emacs.d/snippets/text-mode/html-mode/p4
-rw-r--r--emacs.d/snippets/text-mode/html-mode/pre6
-rw-r--r--emacs.d/snippets/text-mode/html-mode/quote6
-rw-r--r--emacs.d/snippets/text-mode/html-mode/script.javascript6
-rw-r--r--emacs.d/snippets/text-mode/html-mode/script.javascript-src4
-rw-r--r--emacs.d/snippets/text-mode/html-mode/span4
-rw-r--r--emacs.d/snippets/text-mode/html-mode/span.class4
-rw-r--r--emacs.d/snippets/text-mode/html-mode/span.id4
-rw-r--r--emacs.d/snippets/text-mode/html-mode/style6
-rw-r--r--emacs.d/snippets/text-mode/html-mode/table7
-rw-r--r--emacs.d/snippets/text-mode/html-mode/td5
-rw-r--r--emacs.d/snippets/text-mode/html-mode/textarea4
-rw-r--r--emacs.d/snippets/text-mode/html-mode/th5
-rw-r--r--emacs.d/snippets/text-mode/html-mode/title4
-rw-r--r--emacs.d/snippets/text-mode/html-mode/tr7
-rw-r--r--emacs.d/snippets/text-mode/html-mode/ul7
-rw-r--r--emacs.d/snippets/text-mode/html-mode/ul.class7
-rw-r--r--emacs.d/snippets/text-mode/html-mode/ul.id7
-rw-r--r--emacs.d/snippets/text-mode/latex-mode/begin7
-rw-r--r--emacs.d/snippets/text-mode/markdown-mode/+5
-rw-r--r--emacs.d/snippets/text-mode/markdown-mode/-5
-rw-r--r--emacs.d/snippets/text-mode/markdown-mode/_4
-rw-r--r--emacs.d/snippets/text-mode/markdown-mode/__4
-rw-r--r--emacs.d/snippets/text-mode/markdown-mode/`4
-rw-r--r--emacs.d/snippets/text-mode/markdown-mode/h1.16
-rw-r--r--emacs.d/snippets/text-mode/markdown-mode/h1.27
-rw-r--r--emacs.d/snippets/text-mode/markdown-mode/h2.16
-rw-r--r--emacs.d/snippets/text-mode/markdown-mode/h2.27
-rw-r--r--emacs.d/snippets/text-mode/markdown-mode/h36
-rw-r--r--emacs.d/snippets/text-mode/markdown-mode/h46
-rw-r--r--emacs.d/snippets/text-mode/markdown-mode/h56
-rw-r--r--emacs.d/snippets/text-mode/markdown-mode/h66
-rw-r--r--emacs.d/snippets/text-mode/markdown-mode/hr.17
-rw-r--r--emacs.d/snippets/text-mode/markdown-mode/hr.27
-rw-r--r--emacs.d/snippets/text-mode/markdown-mode/img4
-rw-r--r--emacs.d/snippets/text-mode/markdown-mode/link4
-rw-r--r--emacs.d/snippets/text-mode/markdown-mode/ol5
-rw-r--r--emacs.d/snippets/text-mode/markdown-mode/rimg4
-rw-r--r--emacs.d/snippets/text-mode/markdown-mode/rlb5
-rw-r--r--emacs.d/snippets/text-mode/markdown-mode/rlink4
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/body6
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/br4
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/code6
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/div4
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/doctype5
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/doctype.xhtml1_strict5
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/doctype.xhtml1_transitional5
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/form6
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/h15
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/h25
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/h35
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/h45
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/h55
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/h65
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/head6
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/hr4
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/href4
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/html6
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/img4
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/input4
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/li4
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/link4
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/meta5
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/name4
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/ol6
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/p4
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/pre6
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/quote6
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/span4
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/style6
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/table6
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/tag.1l4
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/tag.2l6
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/td4
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/th4
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/title4
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/tr6
-rw-r--r--emacs.d/snippets/text-mode/nxml-mode/ul6
-rw-r--r--emacs.d/snippets/text-mode/perl-mode/eval8
-rw-r--r--emacs.d/snippets/text-mode/perl-mode/for5
-rw-r--r--emacs.d/snippets/text-mode/perl-mode/fore5
-rw-r--r--emacs.d/snippets/text-mode/perl-mode/if5
-rw-r--r--emacs.d/snippets/text-mode/perl-mode/ife7
-rw-r--r--emacs.d/snippets/text-mode/perl-mode/ifee9
-rw-r--r--emacs.d/snippets/text-mode/perl-mode/sub5
-rw-r--r--emacs.d/snippets/text-mode/perl-mode/unless5
-rw-r--r--emacs.d/snippets/text-mode/perl-mode/while5
-rw-r--r--emacs.d/snippets/text-mode/perl-mode/xfore3
-rw-r--r--emacs.d/snippets/text-mode/perl-mode/xif3
-rw-r--r--emacs.d/snippets/text-mode/perl-mode/xunless3
-rw-r--r--emacs.d/snippets/text-mode/perl-mode/xwhile3
-rw-r--r--emacs.d/snippets/text-mode/python-mode/__3
-rw-r--r--emacs.d/snippets/text-mode/python-mode/class54
-rw-r--r--emacs.d/snippets/text-mode/python-mode/def35
-rw-r--r--emacs.d/snippets/text-mode/python-mode/defm33
-rw-r--r--emacs.d/snippets/text-mode/python-mode/for4
-rw-r--r--emacs.d/snippets/text-mode/python-mode/ifmain4
-rw-r--r--emacs.d/snippets/text-mode/python-mode/prop15
-rw-r--r--emacs.d/snippets/text-mode/python-mode/propg9
-rw-r--r--emacs.d/snippets/text-mode/python-mode/propsg12
-rw-r--r--emacs.d/snippets/text-mode/python-mode/while4
-rw-r--r--emacs.d/snippets/text-mode/rst-mode/chap6
-rw-r--r--emacs.d/snippets/text-mode/rst-mode/sec6
-rw-r--r--emacs.d/snippets/text-mode/rst-mode/tit7
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/#4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/=b6
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/Comp8
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/all4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/am4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/any4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/app6
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/bm6
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/case7
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/cla6
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/classify4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/cls13
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/collect4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/dee4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/deli4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/det4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/dow6
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/ea4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/eac4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/eai4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/eav4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/eawi4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/forin6
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/if6
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/ife8
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/inject4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/mm6
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/r4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/rb4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/reject4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/req4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/rreq4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/rw4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/select4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/tim4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/until6
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/upt6
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/w4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/when6
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/while6
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/y4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/zip4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/act10
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/act.arg10
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/actor10
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/ano4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/app6
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/arr.new4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/arr.val-new4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/asof4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/ass4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/ass.true4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/at.author4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/at.param4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/at.return4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/at.version4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/bang4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/case4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/case.match-all4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/cast4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/cc4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/cl6
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/cl.abs6
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/cl.abs-arg6
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/cl.arg6
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/clof4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/co4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/cons4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/cons.nil4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/def.arg4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/def.arg-body6
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/def.arg-ret4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/def.arg-ret-body6
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/def.body6
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/def.ret4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/def.ret-body6
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/def.simple4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/doc.class8
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/doc.def6
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/doc.file9
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/doc.file-scala16
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/doc.file-scala-api16
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/doc.scaladoc7
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/expect6
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/ext4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/for.extract4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/for.if6
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/for.loop6
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/for.multi9
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/foreach4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/hmap.new4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/hmap.val-new4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/hset.new4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/hset.val-new4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/if6
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/if.else8
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/imp4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/intercept6
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/isof4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/ls.new4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/ls.val-new4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/main6
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/map4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/map.new4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/match6
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/match.can11
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/match.option8
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/mix6
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/ob4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/pac4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/pr.newline4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/pr.simple4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/pr.string4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/pr.trace4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/pri4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/pri.param4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/pro4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/pro.param4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/suite8
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/test7
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/throw4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/tr6
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/tr.ext6
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/tr.ext-with6
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/tr.with6
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/try9
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/try.catch-finally11
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/try.finally8
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/tup.arrow4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/tup.paren4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/val4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/val.new4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/val.ret4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/var4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/var.new4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/var.ret4
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/whi6
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/with4
-rw-r--r--emacs.d/snippets/text-mode/snippet-mode/field5
-rw-r--r--emacs.d/snippets/text-mode/snippet-mode/mirror5
-rw-r--r--emacs.d/snippets/text-mode/snippet-mode/vars9
-rw-r--r--emacs.d/snippets/text-mode/sql-mode/column4
-rw-r--r--emacs.d/snippets/text-mode/sql-mode/constraint4
-rw-r--r--emacs.d/snippets/text-mode/sql-mode/constraint.14
-rw-r--r--emacs.d/snippets/text-mode/sql-mode/create10
-rw-r--r--emacs.d/snippets/text-mode/sql-mode/create.112
-rw-r--r--emacs.d/snippets/text-mode/sql-mode/references4
-rw-r--r--emacs.d/snippets/text-mode/time3
404 files changed, 2338 insertions, 0 deletions
diff --git a/emacs.d/snippets/text-mode/cc-mode/c++-mode/beginend b/emacs.d/snippets/text-mode/cc-mode/c++-mode/beginend
new file mode 100644
index 0000000..68303e2
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/c++-mode/beginend
@@ -0,0 +1,3 @@
+#name : v.begin(), v.end()
+# --
+${1:v}.begin(), $1.end \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/cc-mode/c++-mode/class b/emacs.d/snippets/text-mode/cc-mode/c++-mode/class
new file mode 100644
index 0000000..820fc6c
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/c++-mode/class
@@ -0,0 +1,8 @@
+#name : class ... { ... }
+# --
+class ${1:Name}
+{
+public:
+ ${1:$(yas/substr text "[^: ]*")}($2);
+ virtual ~${1:$(yas/substr text "[^: ]*")}();
+}; \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/cc-mode/c++-mode/ns b/emacs.d/snippets/text-mode/cc-mode/c++-mode/ns
new file mode 100644
index 0000000..0c2513f
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/c++-mode/ns
@@ -0,0 +1,3 @@
+#name : namespace ...
+# --
+namespace \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/cc-mode/c++-mode/template b/emacs.d/snippets/text-mode/cc-mode/c++-mode/template
new file mode 100644
index 0000000..7e50616
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/c++-mode/template
@@ -0,0 +1,3 @@
+#name : template <typename ...>
+# --
+template <typename ${T}> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/cc-mode/c++-mode/using b/emacs.d/snippets/text-mode/cc-mode/c++-mode/using
new file mode 100644
index 0000000..13d0f5d
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/c++-mode/using
@@ -0,0 +1,4 @@
+#name : using namespace ...
+# --
+using namespace ${std};
+$0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/cc-mode/c-mode/fopen b/emacs.d/snippets/text-mode/cc-mode/c-mode/fopen
new file mode 100644
index 0000000..044c743
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/c-mode/fopen
@@ -0,0 +1,3 @@
+#name : FILE *fp = fopen(..., ...);
+# --
+FILE *${fp} = fopen(${"file"}, "${r}");
diff --git a/emacs.d/snippets/text-mode/cc-mode/c-mode/printf b/emacs.d/snippets/text-mode/cc-mode/c-mode/printf
new file mode 100644
index 0000000..055461d
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/c-mode/printf
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name : printf
+# contributor : joaotavora
+# --
+printf ("${1:%s}\\n"${1:$(if (string-match "%" text) "," "\);")
+}$2${1:$(if (string-match "%" text) "\);" "")} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib
new file mode 100644
index 0000000..9e14e22
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib
@@ -0,0 +1,7 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : private attribute ....;
+# --
+/// <summary>
+/// $3
+/// </summary>
+private $1 $2;
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib.1 b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib.1
new file mode 100644
index 0000000..099cc7b
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib.1
@@ -0,0 +1,21 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : private attribute ....; public property ... ... { ... }
+# --
+/// <summary>
+/// $3
+/// </summary>
+private $1 $2;
+
+/// <summary>
+/// $4
+/// </summary>
+/// <value>$5</value>
+public $1 $2
+{
+ get {
+ return this.$2;
+ }
+ set {
+ this.$2 = value;
+ }
+}
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib.2 b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib.2
new file mode 100644
index 0000000..566eacf
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/attrib.2
@@ -0,0 +1,21 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : private _attribute ....; public Property ... ... { ... }
+# --
+/// <summary>
+/// $3
+/// </summary>
+private $1 ${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")};
+
+/// <summary>
+/// ${3:Description}
+/// </summary>
+/// <value><c>$1</c></value>
+public ${1:Type} ${2:Name}
+{
+ get {
+ return this.${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")};
+ }
+ set {
+ this.${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")} = value;
+ }
+}
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/class b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/class
new file mode 100644
index 0000000..1cce2e8
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/class
@@ -0,0 +1,21 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : class ... { ... }
+# --
+${5:public} class ${1:Name}
+{
+ #region Ctor & Destructor
+ /// <summary>
+ /// ${3:Standard Constructor}
+ /// </summary>
+ public $1($2)
+ {
+ }
+
+ /// <summary>
+ /// ${4:Default Destructor}
+ /// </summary>
+ public ~$1()
+ {
+ }
+ #endregion
+}
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment
new file mode 100644
index 0000000..3bd20d3
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment
@@ -0,0 +1,6 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : /// <summary> ... </summary>
+# --
+/// <summary>
+/// $1
+/// </summary>
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.1 b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.1
new file mode 100644
index 0000000..3c14ad9
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.1
@@ -0,0 +1,4 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : /// <param name="..."> ... </param>
+# --
+/// <param name="$1">$2</param>
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.2 b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.2
new file mode 100644
index 0000000..63a6a20
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.2
@@ -0,0 +1,4 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : /// <param name="..."> ... </param>
+# --
+/// <returns>$1</returns>
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.3 b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.3
new file mode 100644
index 0000000..394c323
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/comment.3
@@ -0,0 +1,4 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : /// <exception cref="..."> ... </exception>
+# --
+/// <exception cref="$1">$2</exception>
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/method b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/method
new file mode 100644
index 0000000..e9a5906
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/method
@@ -0,0 +1,10 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : public void Method { ... }
+# --
+/// <summary>
+/// ${5:Description}
+/// </summary>${2:$(if (string= (upcase text) "VOID") "" (format "%s%s%s" "\n/// <returns><c>" text "</c></returns>"))}
+${1:public} ${2:void} ${3:MethodName}($4)
+{
+$0
+}
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/namespace b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/namespace
new file mode 100644
index 0000000..af7c928
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/namespace
@@ -0,0 +1,7 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : namespace .. { ... }
+# --
+namespace $1
+{
+$0
+}
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/prop b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/prop
new file mode 100644
index 0000000..df9df91
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/prop
@@ -0,0 +1,16 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : property ... ... { ... }
+# --
+/// <summary>
+/// $5
+/// </summary>
+/// <value>$6</value>
+$1 $2 $3
+{
+ get {
+ return this.$4;
+ }
+ set {
+ this.$4 = value;
+ }
+}
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/region b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/region
new file mode 100644
index 0000000..83f9a24
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/region
@@ -0,0 +1,6 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : #region ... #endregion
+# --
+#region $1
+$0
+#endregion
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/using b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/using
new file mode 100644
index 0000000..704637e
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/using
@@ -0,0 +1,4 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : using ...;
+# --
+using $1;
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/using.1 b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/using.1
new file mode 100644
index 0000000..e9f0bb0
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/using.1
@@ -0,0 +1,4 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : using System;
+# --
+using System;
diff --git a/emacs.d/snippets/text-mode/cc-mode/csharp-mode/using.2 b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/using.2
new file mode 100644
index 0000000..0a3c07d
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/csharp-mode/using.2
@@ -0,0 +1,4 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : using System....;
+# --
+using System.$1;
diff --git a/emacs.d/snippets/text-mode/cc-mode/do b/emacs.d/snippets/text-mode/cc-mode/do
new file mode 100644
index 0000000..5f7a313
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/do
@@ -0,0 +1,6 @@
+#name : do { ... } while (...)
+# --
+do
+{
+ $0
+} while (${1:condition}); \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/cc-mode/for b/emacs.d/snippets/text-mode/cc-mode/for
new file mode 100644
index 0000000..c4cade6
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/for
@@ -0,0 +1,6 @@
+#name : for (...; ...; ...) { ... }
+# --
+for (${1:int i = 0}; ${2:i < N}; ${3:++i})
+{
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/cc-mode/if b/emacs.d/snippets/text-mode/cc-mode/if
new file mode 100644
index 0000000..c3fe10d
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/if
@@ -0,0 +1,6 @@
+#name : if (...) { ... }
+# --
+if (${1:condition})
+{
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/cc-mode/inc b/emacs.d/snippets/text-mode/cc-mode/inc
new file mode 100644
index 0000000..ae33328
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/inc
@@ -0,0 +1,3 @@
+#name : #include "..."
+# --
+#include "$1"
diff --git a/emacs.d/snippets/text-mode/cc-mode/inc.1 b/emacs.d/snippets/text-mode/cc-mode/inc.1
new file mode 100644
index 0000000..66326cd
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/inc.1
@@ -0,0 +1,3 @@
+#name : #include <...>
+# --
+#include <$1>
diff --git a/emacs.d/snippets/text-mode/cc-mode/main b/emacs.d/snippets/text-mode/cc-mode/main
new file mode 100644
index 0000000..9249049
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/main
@@ -0,0 +1,7 @@
+#name: int main(argc, argv) { ... }
+# --
+int main(int argc, char *argv[])
+{
+ $0
+ return 0;
+}
diff --git a/emacs.d/snippets/text-mode/cc-mode/objc-mode/prop b/emacs.d/snippets/text-mode/cc-mode/objc-mode/prop
new file mode 100644
index 0000000..4d585db
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/objc-mode/prop
@@ -0,0 +1,13 @@
+#name : foo { ... } ; setFoo { ... }
+# --
+- (${1:id})${2:foo}
+{
+ return $2;
+}
+
+- (void)set${2:$(capitalize text)}:($1)aValue
+{
+ [$2 autorelease];
+ $2 = [aValue retain];
+}
+$0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/cc-mode/once b/emacs.d/snippets/text-mode/cc-mode/once
new file mode 100644
index 0000000..1b63c39
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/once
@@ -0,0 +1,8 @@
+#name : #ifndef XXX; #define XXX; #endif
+# --
+#ifndef ${1:_`(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))`_H_}
+#define $1
+
+$0
+
+#endif /* $1 */ \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/cc-mode/struct b/emacs.d/snippets/text-mode/cc-mode/struct
new file mode 100644
index 0000000..f50dabf
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/struct
@@ -0,0 +1,6 @@
+#name : struct ... { ... }
+# --
+struct ${1:name}
+{
+ $0
+}; \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/css-mode/bg b/emacs.d/snippets/text-mode/css-mode/bg
new file mode 100644
index 0000000..d731807
--- /dev/null
+++ b/emacs.d/snippets/text-mode/css-mode/bg
@@ -0,0 +1,3 @@
+#name : background-color: ...
+# --
+background-color: #${1:DDD}; \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/css-mode/bg.1 b/emacs.d/snippets/text-mode/css-mode/bg.1
new file mode 100644
index 0000000..d31f540
--- /dev/null
+++ b/emacs.d/snippets/text-mode/css-mode/bg.1
@@ -0,0 +1,3 @@
+#name : background-image: ...
+# --
+background-image: url($1); \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/css-mode/bor b/emacs.d/snippets/text-mode/css-mode/bor
new file mode 100644
index 0000000..eb3a2b4
--- /dev/null
+++ b/emacs.d/snippets/text-mode/css-mode/bor
@@ -0,0 +1,3 @@
+#name : border size style color
+# --
+border: ${1:1px} ${2:solid} #${3:999}; \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/css-mode/cl b/emacs.d/snippets/text-mode/css-mode/cl
new file mode 100644
index 0000000..4fc7a8d
--- /dev/null
+++ b/emacs.d/snippets/text-mode/css-mode/cl
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : clear: ...
+# --
+clear: $1;
diff --git a/emacs.d/snippets/text-mode/css-mode/disp.block b/emacs.d/snippets/text-mode/css-mode/disp.block
new file mode 100644
index 0000000..f74ea3c
--- /dev/null
+++ b/emacs.d/snippets/text-mode/css-mode/disp.block
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : display: block
+# --
+display: block;
diff --git a/emacs.d/snippets/text-mode/css-mode/disp.inline b/emacs.d/snippets/text-mode/css-mode/disp.inline
new file mode 100644
index 0000000..30275a8
--- /dev/null
+++ b/emacs.d/snippets/text-mode/css-mode/disp.inline
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : display: inline
+# --
+display: inline;
diff --git a/emacs.d/snippets/text-mode/css-mode/disp.none b/emacs.d/snippets/text-mode/css-mode/disp.none
new file mode 100644
index 0000000..80632a5
--- /dev/null
+++ b/emacs.d/snippets/text-mode/css-mode/disp.none
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : display: none
+# --
+display: none;
diff --git a/emacs.d/snippets/text-mode/css-mode/ff b/emacs.d/snippets/text-mode/css-mode/ff
new file mode 100644
index 0000000..a7352cf
--- /dev/null
+++ b/emacs.d/snippets/text-mode/css-mode/ff
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : font-family: ...
+# --
+font-family: $1;
diff --git a/emacs.d/snippets/text-mode/css-mode/fs b/emacs.d/snippets/text-mode/css-mode/fs
new file mode 100644
index 0000000..c28cdbb
--- /dev/null
+++ b/emacs.d/snippets/text-mode/css-mode/fs
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : font-size: ...
+# --
+font-size: ${12px};
diff --git a/emacs.d/snippets/text-mode/css-mode/mar.bottom b/emacs.d/snippets/text-mode/css-mode/mar.bottom
new file mode 100644
index 0000000..9672f60
--- /dev/null
+++ b/emacs.d/snippets/text-mode/css-mode/mar.bottom
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : margin-bottom: ...
+# --
+margin-bottom: $1;
diff --git a/emacs.d/snippets/text-mode/css-mode/mar.left b/emacs.d/snippets/text-mode/css-mode/mar.left
new file mode 100644
index 0000000..414353e
--- /dev/null
+++ b/emacs.d/snippets/text-mode/css-mode/mar.left
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : margin-left: ...
+# --
+margin-left: $1;
diff --git a/emacs.d/snippets/text-mode/css-mode/mar.mar b/emacs.d/snippets/text-mode/css-mode/mar.mar
new file mode 100644
index 0000000..13354db
--- /dev/null
+++ b/emacs.d/snippets/text-mode/css-mode/mar.mar
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : margin: ...
+# --
+margin: $1;
diff --git a/emacs.d/snippets/text-mode/css-mode/mar.margin b/emacs.d/snippets/text-mode/css-mode/mar.margin
new file mode 100644
index 0000000..97de70c
--- /dev/null
+++ b/emacs.d/snippets/text-mode/css-mode/mar.margin
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : margin top right bottom left
+# --
+margin: ${top} ${right} ${bottom} ${left};
diff --git a/emacs.d/snippets/text-mode/css-mode/mar.right b/emacs.d/snippets/text-mode/css-mode/mar.right
new file mode 100644
index 0000000..47a4973
--- /dev/null
+++ b/emacs.d/snippets/text-mode/css-mode/mar.right
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : margin-right: ...
+# --
+margin-right: $1;
diff --git a/emacs.d/snippets/text-mode/css-mode/mar.top b/emacs.d/snippets/text-mode/css-mode/mar.top
new file mode 100644
index 0000000..c805754
--- /dev/null
+++ b/emacs.d/snippets/text-mode/css-mode/mar.top
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : margin-top: ...
+# --
+margin-top: $1;
diff --git a/emacs.d/snippets/text-mode/css-mode/pad.bottom b/emacs.d/snippets/text-mode/css-mode/pad.bottom
new file mode 100644
index 0000000..3b9495e
--- /dev/null
+++ b/emacs.d/snippets/text-mode/css-mode/pad.bottom
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : padding-bottom: ...
+# --
+padding-bottom: $1;
diff --git a/emacs.d/snippets/text-mode/css-mode/pad.left b/emacs.d/snippets/text-mode/css-mode/pad.left
new file mode 100644
index 0000000..ecae515
--- /dev/null
+++ b/emacs.d/snippets/text-mode/css-mode/pad.left
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : padding-left: ...
+# --
+padding-left: $1;
diff --git a/emacs.d/snippets/text-mode/css-mode/pad.pad b/emacs.d/snippets/text-mode/css-mode/pad.pad
new file mode 100644
index 0000000..ee3a682
--- /dev/null
+++ b/emacs.d/snippets/text-mode/css-mode/pad.pad
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : padding: ...
+# --
+padding: $1;
diff --git a/emacs.d/snippets/text-mode/css-mode/pad.padding b/emacs.d/snippets/text-mode/css-mode/pad.padding
new file mode 100644
index 0000000..c1009d3
--- /dev/null
+++ b/emacs.d/snippets/text-mode/css-mode/pad.padding
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : padding: top right bottom left
+# --
+padding: ${top} ${right} ${bottom} ${left};
diff --git a/emacs.d/snippets/text-mode/css-mode/pad.right b/emacs.d/snippets/text-mode/css-mode/pad.right
new file mode 100644
index 0000000..98a9e12
--- /dev/null
+++ b/emacs.d/snippets/text-mode/css-mode/pad.right
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : padding-right: ...
+# --
+padding-right: $1;
diff --git a/emacs.d/snippets/text-mode/css-mode/pad.top b/emacs.d/snippets/text-mode/css-mode/pad.top
new file mode 100644
index 0000000..34987f6
--- /dev/null
+++ b/emacs.d/snippets/text-mode/css-mode/pad.top
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : padding-top: ...
+# --
+padding-top: $1;
diff --git a/emacs.d/snippets/text-mode/emacs-lisp-mode/.read_me b/emacs.d/snippets/text-mode/emacs-lisp-mode/.read_me
new file mode 100644
index 0000000..9e6e532
--- /dev/null
+++ b/emacs.d/snippets/text-mode/emacs-lisp-mode/.read_me
@@ -0,0 +1,11 @@
+TITLE: Emacs Idiom Template Set. Version 1. 2009-02-22
+
+DESCRIPTION: Some useful templates for emacs lisp. This template set is based on useful elisp idioms on common tasks.
+
+LICENSING: GPL version 3.
+
+AUTHOR: Xah Lee
+
+Home Page: latest version at:
+• Emacs Lisp Idiom Templates
+ http://xahlee.org/emacs/elisp_idiom_templates.html
diff --git a/emacs.d/snippets/text-mode/emacs-lisp-mode/defun b/emacs.d/snippets/text-mode/emacs-lisp-mode/defun
new file mode 100644
index 0000000..0105d20
--- /dev/null
+++ b/emacs.d/snippets/text-mode/emacs-lisp-mode/defun
@@ -0,0 +1,11 @@
+#name : function template
+#contributor : Xah Lee
+# --
+(defun $1 ()
+ "thisandthat."
+ (interactive)
+ (let (var1)
+ (setq var1 some)
+ $0
+ )
+) \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/emacs-lisp-mode/dired.process_marked b/emacs.d/snippets/text-mode/emacs-lisp-mode/dired.process_marked
new file mode 100644
index 0000000..1b42597
--- /dev/null
+++ b/emacs.d/snippets/text-mode/emacs-lisp-mode/dired.process_marked
@@ -0,0 +1,16 @@
+#name : process marked files in dired
+#contributor : Xah Lee
+# --
+;; idiom for processing a list of files in dired's marked files
+
+;; suppose myProcessFile is your function that takes a file path
+;; and do some processing on the file
+
+(defun dired-myProcessFile ()
+ "apply myProcessFile function to marked files in dired."
+ (interactive)
+ (require 'dired)
+ (mapc 'myProcessFile (dired-get-marked-files))
+)
+
+;; to use it, type M-x dired-myProcessFile
diff --git a/emacs.d/snippets/text-mode/emacs-lisp-mode/file.process b/emacs.d/snippets/text-mode/emacs-lisp-mode/file.process
new file mode 100644
index 0000000..abd1a33
--- /dev/null
+++ b/emacs.d/snippets/text-mode/emacs-lisp-mode/file.process
@@ -0,0 +1,17 @@
+#name : a function that process a file
+#contributor : Xah Lee
+# --
+(defun doThisFile (fpath)
+ "Process the file at path FPATH ..."
+ (let ()
+ ;; create temp buffer without undo record or font lock. (more efficient)
+ ;; first space in temp buff name is necessary
+ (set-buffer (get-buffer-create " myTemp"))
+ (insert-file-contents fpath nil nil nil t)
+
+ ;; process it ...
+ ;; (goto-char 0) ; move to begining of file's content (in case it was open)
+ ;; ... do something here
+ ;; (write-file fpath) ;; write back to the file
+
+ (kill-buffer " myTemp")))
diff --git a/emacs.d/snippets/text-mode/emacs-lisp-mode/file.read-lines b/emacs.d/snippets/text-mode/emacs-lisp-mode/file.read-lines
new file mode 100644
index 0000000..b4a1942
--- /dev/null
+++ b/emacs.d/snippets/text-mode/emacs-lisp-mode/file.read-lines
@@ -0,0 +1,17 @@
+#name : read lines of a file
+#contributor : Xah Lee
+# --
+(defun read-lines (filePath)
+ "Return a list of lines in FILEPATH."
+ (with-temp-buffer
+ (insert-file-contents filePath)
+ (split-string
+ (buffer-string) "\n" t)) )
+
+;; process all lines
+(mapc
+ (lambda (aLine)
+ (message aLine) ; do your stuff here
+ )
+ (read-lines "inputFilePath")
+) \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/emacs-lisp-mode/find-replace b/emacs.d/snippets/text-mode/emacs-lisp-mode/find-replace
new file mode 100644
index 0000000..cefcf51
--- /dev/null
+++ b/emacs.d/snippets/text-mode/emacs-lisp-mode/find-replace
@@ -0,0 +1,17 @@
+#name : find and replace on region
+#contributor : Xah Lee
+# --
+(defun replace-html-chars-region (start end)
+ "Replace “<” to “&lt;” and other chars in HTML.
+This works on the current region."
+ (interactive "r")
+ (save-restriction
+ (narrow-to-region start end)
+ (goto-char (point-min))
+ (while (search-forward "&" nil t) (replace-match "&amp;" nil t))
+ (goto-char (point-min))
+ (while (search-forward "<" nil t) (replace-match "&lt;" nil t))
+ (goto-char (point-min))
+ (while (search-forward ">" nil t) (replace-match "&gt;" nil t))
+ )
+ )
diff --git a/emacs.d/snippets/text-mode/emacs-lisp-mode/grabstring b/emacs.d/snippets/text-mode/emacs-lisp-mode/grabstring
new file mode 100644
index 0000000..55600b1
--- /dev/null
+++ b/emacs.d/snippets/text-mode/emacs-lisp-mode/grabstring
@@ -0,0 +1,4 @@
+#name : grab buffer substring
+#contributor : Xah Lee
+# --
+(setq $0 (buffer-substring-no-properties myStartPos myEndPos))
diff --git a/emacs.d/snippets/text-mode/emacs-lisp-mode/grabthing b/emacs.d/snippets/text-mode/emacs-lisp-mode/grabthing
new file mode 100644
index 0000000..772b8dc
--- /dev/null
+++ b/emacs.d/snippets/text-mode/emacs-lisp-mode/grabthing
@@ -0,0 +1,4 @@
+#name : grab word under cursor
+#contributor : Xah Lee
+# --
+(setq $0 (thing-at-point 'symbol))
diff --git a/emacs.d/snippets/text-mode/emacs-lisp-mode/traverse_dir b/emacs.d/snippets/text-mode/emacs-lisp-mode/traverse_dir
new file mode 100644
index 0000000..2859cbd
--- /dev/null
+++ b/emacs.d/snippets/text-mode/emacs-lisp-mode/traverse_dir
@@ -0,0 +1,6 @@
+#name : traversing a directory
+#contributor : Xah Lee
+# --
+;; apply a function to all files in a dir
+(require 'find-lisp)
+(mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$"))
diff --git a/emacs.d/snippets/text-mode/emacs-lisp-mode/word-or-region b/emacs.d/snippets/text-mode/emacs-lisp-mode/word-or-region
new file mode 100644
index 0000000..66a59e4
--- /dev/null
+++ b/emacs.d/snippets/text-mode/emacs-lisp-mode/word-or-region
@@ -0,0 +1,27 @@
+#name : Command that works on region or word
+#contributor : Xah Lee
+# --
+;; example of a command that works on current word or text selection
+(defun down-case-word-or-region ()
+ "Lower case the current word or text selection."
+(interactive)
+(let (pos1 pos2 meat)
+ (if (and transient-mark-mode mark-active)
+ (setq pos1 (region-beginning)
+ pos2 (region-end))
+ (setq pos1 (car (bounds-of-thing-at-point 'symbol))
+ pos2 (cdr (bounds-of-thing-at-point 'symbol))))
+
+ ; now, pos1 and pos2 are the starting and ending positions
+ ; of the current word, or current text selection if exists
+
+ ;; put your code here.
+ $0
+ ;; Some example of things you might want to do
+ (downcase-region pos1 pos2) ; example of a func that takes region as args
+ (setq meat (buffer-substring-no-properties pos1 pos2)) ; grab the text.
+ (delete-region pos1 pos2) ; get rid of it
+ (insert "newText") ; insert your new text
+
+ )
+)
diff --git a/emacs.d/snippets/text-mode/email b/emacs.d/snippets/text-mode/email
new file mode 100644
index 0000000..1ac7f94
--- /dev/null
+++ b/emacs.d/snippets/text-mode/email
@@ -0,0 +1,3 @@
+#name : (user's email)
+# --
+`(replace-regexp-in-string "@" "@NOSPAM." user-mail-address)` \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/erlang-mode/after b/emacs.d/snippets/text-mode/erlang-mode/after
new file mode 100644
index 0000000..264e201
--- /dev/null
+++ b/emacs.d/snippets/text-mode/erlang-mode/after
@@ -0,0 +1,4 @@
+#name : after ... ->
+# --
+after
+ $1 -> $0
diff --git a/emacs.d/snippets/text-mode/erlang-mode/begin b/emacs.d/snippets/text-mode/erlang-mode/begin
new file mode 100644
index 0000000..7b48494
--- /dev/null
+++ b/emacs.d/snippets/text-mode/erlang-mode/begin
@@ -0,0 +1,5 @@
+#name : begin ... end
+# --
+begin
+ $0
+end
diff --git a/emacs.d/snippets/text-mode/erlang-mode/beh b/emacs.d/snippets/text-mode/erlang-mode/beh
new file mode 100644
index 0000000..4975b26
--- /dev/null
+++ b/emacs.d/snippets/text-mode/erlang-mode/beh
@@ -0,0 +1,4 @@
+#name : -behaviour(...).
+# --
+-behaviour(${1:gen_server}).
+$0
diff --git a/emacs.d/snippets/text-mode/erlang-mode/case b/emacs.d/snippets/text-mode/erlang-mode/case
new file mode 100644
index 0000000..5bed114
--- /dev/null
+++ b/emacs.d/snippets/text-mode/erlang-mode/case
@@ -0,0 +1,5 @@
+#name : case ... of ... end
+# --
+case $1 of
+ $0
+end
diff --git a/emacs.d/snippets/text-mode/erlang-mode/compile b/emacs.d/snippets/text-mode/erlang-mode/compile
new file mode 100644
index 0000000..ae3a4d8
--- /dev/null
+++ b/emacs.d/snippets/text-mode/erlang-mode/compile
@@ -0,0 +1,4 @@
+#name : -compile(...).
+# --
+-compile([${1:export_all}]).
+$0
diff --git a/emacs.d/snippets/text-mode/erlang-mode/def b/emacs.d/snippets/text-mode/erlang-mode/def
new file mode 100644
index 0000000..6fb92f1
--- /dev/null
+++ b/emacs.d/snippets/text-mode/erlang-mode/def
@@ -0,0 +1,4 @@
+#name : -define(...,...).
+# --
+-define($1,$2).
+$0
diff --git a/emacs.d/snippets/text-mode/erlang-mode/exp b/emacs.d/snippets/text-mode/erlang-mode/exp
new file mode 100644
index 0000000..67f56da
--- /dev/null
+++ b/emacs.d/snippets/text-mode/erlang-mode/exp
@@ -0,0 +1,5 @@
+#name : -export([]).
+#contributor : hitesh <hitesh.jasani@gmail.com>
+# --
+-export([${1:start/0}]).
+$0
diff --git a/emacs.d/snippets/text-mode/erlang-mode/fun b/emacs.d/snippets/text-mode/erlang-mode/fun
new file mode 100644
index 0000000..77f8293
--- /dev/null
+++ b/emacs.d/snippets/text-mode/erlang-mode/fun
@@ -0,0 +1,3 @@
+#name : fun (...) -> ... end
+# --
+fun ($1) -> $0 end
diff --git a/emacs.d/snippets/text-mode/erlang-mode/if b/emacs.d/snippets/text-mode/erlang-mode/if
new file mode 100644
index 0000000..45674c4
--- /dev/null
+++ b/emacs.d/snippets/text-mode/erlang-mode/if
@@ -0,0 +1,6 @@
+#name : if ... -> ... ; true -> ... end
+# --
+if
+ $1 -> $2;
+ true -> $0
+end
diff --git a/emacs.d/snippets/text-mode/erlang-mode/ifdef b/emacs.d/snippets/text-mode/erlang-mode/ifdef
new file mode 100644
index 0000000..ea89ecf
--- /dev/null
+++ b/emacs.d/snippets/text-mode/erlang-mode/ifdef
@@ -0,0 +1,5 @@
+#name : -ifdef(...). ... -endif.
+# --
+-ifdef($1).
+$0
+-endif.
diff --git a/emacs.d/snippets/text-mode/erlang-mode/ifndef b/emacs.d/snippets/text-mode/erlang-mode/ifndef
new file mode 100644
index 0000000..dcd67a7
--- /dev/null
+++ b/emacs.d/snippets/text-mode/erlang-mode/ifndef
@@ -0,0 +1,5 @@
+#name : -ifndef(...). ... -endif.
+# --
+-ifndef($1).
+$0
+-endif.
diff --git a/emacs.d/snippets/text-mode/erlang-mode/imp b/emacs.d/snippets/text-mode/erlang-mode/imp
new file mode 100644
index 0000000..c035ddd
--- /dev/null
+++ b/emacs.d/snippets/text-mode/erlang-mode/imp
@@ -0,0 +1,5 @@
+#name : -import([]).
+#contributor : hitesh <hitesh.jasani@gmail.com>
+# --
+-import(${1:lists}, [${2:map/2, sum/1}]).
+$0
diff --git a/emacs.d/snippets/text-mode/erlang-mode/inc b/emacs.d/snippets/text-mode/erlang-mode/inc
new file mode 100644
index 0000000..f7b2161
--- /dev/null
+++ b/emacs.d/snippets/text-mode/erlang-mode/inc
@@ -0,0 +1,4 @@
+#name : -include("...").
+# --
+-include("$1").
+$0
diff --git a/emacs.d/snippets/text-mode/erlang-mode/inc.lib b/emacs.d/snippets/text-mode/erlang-mode/inc.lib
new file mode 100644
index 0000000..09a6723
--- /dev/null
+++ b/emacs.d/snippets/text-mode/erlang-mode/inc.lib
@@ -0,0 +1,4 @@
+#name : -include_lib("...").
+# --
+-include_lib("$1").
+$0
diff --git a/emacs.d/snippets/text-mode/erlang-mode/loop b/emacs.d/snippets/text-mode/erlang-mode/loop
new file mode 100644
index 0000000..0205802
--- /dev/null
+++ b/emacs.d/snippets/text-mode/erlang-mode/loop
@@ -0,0 +1,8 @@
+#name : loop(...) -> receive _ -> loop(...) end.
+# --
+${1:loop}($2) ->
+ receive
+ ${3:_} ->
+ $1($2)
+ end.
+$0
diff --git a/emacs.d/snippets/text-mode/erlang-mode/mod b/emacs.d/snippets/text-mode/erlang-mode/mod
new file mode 100644
index 0000000..7275d39
--- /dev/null
+++ b/emacs.d/snippets/text-mode/erlang-mode/mod
@@ -0,0 +1,6 @@
+#name : -module().
+#contributor : hitesh <hitesh.jasani@gmail.com>
+# --
+-module(${1:`(file-name-nondirectory
+ (file-name-sans-extension (or (buffer-file-name) (buffer-name))))`}).
+$0
diff --git a/emacs.d/snippets/text-mode/erlang-mode/rcv b/emacs.d/snippets/text-mode/erlang-mode/rcv
new file mode 100644
index 0000000..804fb3f
--- /dev/null
+++ b/emacs.d/snippets/text-mode/erlang-mode/rcv
@@ -0,0 +1,5 @@
+#name : receive ... -> ... end
+# --
+receive
+ $1 -> $0
+end
diff --git a/emacs.d/snippets/text-mode/erlang-mode/rcv.after b/emacs.d/snippets/text-mode/erlang-mode/rcv.after
new file mode 100644
index 0000000..51046df
--- /dev/null
+++ b/emacs.d/snippets/text-mode/erlang-mode/rcv.after
@@ -0,0 +1,6 @@
+#name : receive after ... -> ... end
+# --
+receive
+after
+ $1 -> $0
+end
diff --git a/emacs.d/snippets/text-mode/erlang-mode/rec b/emacs.d/snippets/text-mode/erlang-mode/rec
new file mode 100644
index 0000000..0d67834
--- /dev/null
+++ b/emacs.d/snippets/text-mode/erlang-mode/rec
@@ -0,0 +1,4 @@
+#name : -record(...,{...}).
+# --
+-record($1,{$2}).
+$0
diff --git a/emacs.d/snippets/text-mode/erlang-mode/try b/emacs.d/snippets/text-mode/erlang-mode/try
new file mode 100644
index 0000000..fa5c9c2
--- /dev/null
+++ b/emacs.d/snippets/text-mode/erlang-mode/try
@@ -0,0 +1,7 @@
+#name : try ... of ... catch after end
+# --
+try $1 of
+ $0
+catch
+after
+end
diff --git a/emacs.d/snippets/text-mode/erlang-mode/undef b/emacs.d/snippets/text-mode/erlang-mode/undef
new file mode 100644
index 0000000..7ab5dd4
--- /dev/null
+++ b/emacs.d/snippets/text-mode/erlang-mode/undef
@@ -0,0 +1,4 @@
+#name : -undef(...).
+# --
+-undef($1).
+$0
diff --git a/emacs.d/snippets/text-mode/f90-mode/au b/emacs.d/snippets/text-mode/f90-mode/au
new file mode 100644
index 0000000..1f0af73
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/au
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : automatic
+# --
+automatic $0
diff --git a/emacs.d/snippets/text-mode/f90-mode/bd b/emacs.d/snippets/text-mode/f90-mode/bd
new file mode 100644
index 0000000..8840102
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/bd
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : block data
+# --
+block data $0
diff --git a/emacs.d/snippets/text-mode/f90-mode/c b/emacs.d/snippets/text-mode/f90-mode/c
new file mode 100644
index 0000000..c7182e4
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/c
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : continue
+# --
+continue $0
diff --git a/emacs.d/snippets/text-mode/f90-mode/ch b/emacs.d/snippets/text-mode/f90-mode/ch
new file mode 100644
index 0000000..7e6b4cb
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/ch
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : character
+# --
+character $0
diff --git a/emacs.d/snippets/text-mode/f90-mode/cx b/emacs.d/snippets/text-mode/f90-mode/cx
new file mode 100644
index 0000000..8feb41e
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/cx
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : complex
+# --
+complex $0
diff --git a/emacs.d/snippets/text-mode/f90-mode/dc b/emacs.d/snippets/text-mode/f90-mode/dc
new file mode 100644
index 0000000..1992b1b
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/dc
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : double complex
+# --
+double complex $0
diff --git a/emacs.d/snippets/text-mode/f90-mode/do b/emacs.d/snippets/text-mode/f90-mode/do
new file mode 100644
index 0000000..2c117fd
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/do
@@ -0,0 +1,6 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : do while (...) end do
+# --
+do while (${1:condition})
+ $0
+end do
diff --git a/emacs.d/snippets/text-mode/f90-mode/dp b/emacs.d/snippets/text-mode/f90-mode/dp
new file mode 100644
index 0000000..ad014b7
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/dp
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : double precision
+# --
+double precision $0
diff --git a/emacs.d/snippets/text-mode/f90-mode/eq b/emacs.d/snippets/text-mode/f90-mode/eq
new file mode 100644
index 0000000..0c6d09f
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/eq
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : equivalence
+# --
+equivalence $0
diff --git a/emacs.d/snippets/text-mode/f90-mode/ib b/emacs.d/snippets/text-mode/f90-mode/ib
new file mode 100644
index 0000000..9275a12
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/ib
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : implicit byte
+# --
+implicit byte $0
diff --git a/emacs.d/snippets/text-mode/f90-mode/ic b/emacs.d/snippets/text-mode/f90-mode/ic
new file mode 100644
index 0000000..79842ea
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/ic
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : implicit complex
+# --
+implicit complex $0
diff --git a/emacs.d/snippets/text-mode/f90-mode/ich b/emacs.d/snippets/text-mode/f90-mode/ich
new file mode 100644
index 0000000..53c7f81
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/ich
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : implicit character
+# --
+implicit character $0
diff --git a/emacs.d/snippets/text-mode/f90-mode/if b/emacs.d/snippets/text-mode/f90-mode/if
new file mode 100644
index 0000000..b4fb526
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/if
@@ -0,0 +1,6 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : if then end if
+# --
+if ( ${1:condition} ) then
+ $0
+end if
diff --git a/emacs.d/snippets/text-mode/f90-mode/ii b/emacs.d/snippets/text-mode/f90-mode/ii
new file mode 100644
index 0000000..4b1fee5
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/ii
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : implicit integer
+# --
+implicit integer $0
diff --git a/emacs.d/snippets/text-mode/f90-mode/il b/emacs.d/snippets/text-mode/f90-mode/il
new file mode 100644
index 0000000..8658af5
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/il
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : implicit logical
+# --
+implicit logical $0
diff --git a/emacs.d/snippets/text-mode/f90-mode/in b/emacs.d/snippets/text-mode/f90-mode/in
new file mode 100644
index 0000000..0c1d5e1
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/in
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : implicit none
+# --
+implicit none
diff --git a/emacs.d/snippets/text-mode/f90-mode/inc b/emacs.d/snippets/text-mode/f90-mode/inc
new file mode 100644
index 0000000..dd649c4
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/inc
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : include
+# --
+include $0
diff --git a/emacs.d/snippets/text-mode/f90-mode/intr b/emacs.d/snippets/text-mode/f90-mode/intr
new file mode 100644
index 0000000..147fffd
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/intr
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : intrinsic
+# --
+intrinsic $0
diff --git a/emacs.d/snippets/text-mode/f90-mode/ir b/emacs.d/snippets/text-mode/f90-mode/ir
new file mode 100644
index 0000000..fb37082
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/ir
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : implicit real
+# --
+implicit real $0
diff --git a/emacs.d/snippets/text-mode/f90-mode/l b/emacs.d/snippets/text-mode/f90-mode/l
new file mode 100644
index 0000000..8605d69
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/l
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : logical
+# --
+logical $0
diff --git a/emacs.d/snippets/text-mode/f90-mode/pa b/emacs.d/snippets/text-mode/f90-mode/pa
new file mode 100644
index 0000000..1b1b503
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/pa
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : parameter
+# --
+parameter $0
diff --git a/emacs.d/snippets/text-mode/f90-mode/pr b/emacs.d/snippets/text-mode/f90-mode/pr
new file mode 100644
index 0000000..e0f8baa
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/pr
@@ -0,0 +1,6 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : program ... end program ...
+# --
+program ${1:name}
+ $0
+end program ${1:name}
diff --git a/emacs.d/snippets/text-mode/f90-mode/re b/emacs.d/snippets/text-mode/f90-mode/re
new file mode 100644
index 0000000..08c7ba0
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/re
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : read (*,*)
+# --
+read (${1:*},${2:*}) $0
diff --git a/emacs.d/snippets/text-mode/f90-mode/st b/emacs.d/snippets/text-mode/f90-mode/st
new file mode 100644
index 0000000..23ae7d0
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/st
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : structure
+# --
+structure $0
diff --git a/emacs.d/snippets/text-mode/f90-mode/su b/emacs.d/snippets/text-mode/f90-mode/su
new file mode 100644
index 0000000..d3857b8
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/su
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : subroutine
+# --
+subroutine $0
diff --git a/emacs.d/snippets/text-mode/f90-mode/wr b/emacs.d/snippets/text-mode/f90-mode/wr
new file mode 100644
index 0000000..1ac3eb9
--- /dev/null
+++ b/emacs.d/snippets/text-mode/f90-mode/wr
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : write (*,*)
+# --
+write (${1:*},${2:*}) $0
diff --git a/emacs.d/snippets/text-mode/html-mode/body b/emacs.d/snippets/text-mode/html-mode/body
new file mode 100644
index 0000000..c924f8c
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/body
@@ -0,0 +1,6 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <body>...</body>
+# --
+<body$1>
+ $0
+</body> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/br b/emacs.d/snippets/text-mode/html-mode/br
new file mode 100644
index 0000000..3492098
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/br
@@ -0,0 +1,4 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <br />
+# --
+<br /> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/code b/emacs.d/snippets/text-mode/html-mode/code
new file mode 100644
index 0000000..6f558ec
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/code
@@ -0,0 +1,6 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <code>...</code>
+# --
+<code>
+ $0
+</code> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/code.class b/emacs.d/snippets/text-mode/html-mode/code.class
new file mode 100644
index 0000000..b910eb7
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/code.class
@@ -0,0 +1,6 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <code class="...">...</code>
+# --
+<code class="$1">
+ $0
+</code> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/dd b/emacs.d/snippets/text-mode/html-mode/dd
new file mode 100644
index 0000000..8120b13
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/dd
@@ -0,0 +1,5 @@
+#contributor : Rodrigo Setti <rodrigosetti@gmail.com>
+#name : <dd> ... </dd>
+#group : list
+# --
+<dd>$1</dd> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/div b/emacs.d/snippets/text-mode/html-mode/div
new file mode 100644
index 0000000..1c9c0c8
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/div
@@ -0,0 +1,3 @@
+#name : <div...>...</div>
+# --
+<div${1: id="${2:some_id}"}${3: class="${4:some_class}"}>$0</div> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/div.class b/emacs.d/snippets/text-mode/html-mode/div.class
new file mode 100644
index 0000000..11c12d6
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/div.class
@@ -0,0 +1,6 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <div class="...">...</div>
+# --
+<div class="$1">
+ $0
+</div> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/div.id b/emacs.d/snippets/text-mode/html-mode/div.id
new file mode 100644
index 0000000..ccde64d
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/div.id
@@ -0,0 +1,6 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <div id="...">...</div>
+# --
+<div id="$1">
+ $0
+</div> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/div.id-class b/emacs.d/snippets/text-mode/html-mode/div.id-class
new file mode 100644
index 0000000..bce8920
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/div.id-class
@@ -0,0 +1,6 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <div id="..." class="...">...</div>
+# --
+<div id="$1" class="$2">
+ $0
+</div> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/dl b/emacs.d/snippets/text-mode/html-mode/dl
new file mode 100644
index 0000000..be11bb5
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/dl
@@ -0,0 +1,7 @@
+#contributor : Rodrigo Setti <rodrigosetti@gmail.com>
+#name : <dl> ... </dl>
+#group : list
+# --
+<dl>
+ $0
+</dl>
diff --git a/emacs.d/snippets/text-mode/html-mode/dl.id b/emacs.d/snippets/text-mode/html-mode/dl.id
new file mode 100644
index 0000000..16aba53
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/dl.id
@@ -0,0 +1,7 @@
+#contributor : Rodrigo Setti <rodrigosetti@gmail.com>
+#name : <dl> ... </dl>
+#group : list
+# --
+<dl id="$1">
+ $0
+</dl> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/doctype b/emacs.d/snippets/text-mode/html-mode/doctype
new file mode 100644
index 0000000..a60dfb6
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/doctype
@@ -0,0 +1,4 @@
+#name : Doctype HTML 4.01 Strict
+#group : meta
+# --
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/doctype.xhml1 b/emacs.d/snippets/text-mode/html-mode/doctype.xhml1
new file mode 100644
index 0000000..5d95e07
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/doctype.xhml1
@@ -0,0 +1,4 @@
+#name : DocType XHTML 1.0 frameset
+#group : meta
+# --
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/doctype.xhtml1_1 b/emacs.d/snippets/text-mode/html-mode/doctype.xhtml1_1
new file mode 100644
index 0000000..fec46d7
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/doctype.xhtml1_1
@@ -0,0 +1,4 @@
+#name : DocType XHTML 1.1
+#group : meta
+# --
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/doctype.xhtml1_strict b/emacs.d/snippets/text-mode/html-mode/doctype.xhtml1_strict
new file mode 100644
index 0000000..20d95d3
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/doctype.xhtml1_strict
@@ -0,0 +1,4 @@
+#name : DocType XHTML 1.0 Strict
+#group : meta
+# --
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/doctype.xhtml1_transitional b/emacs.d/snippets/text-mode/html-mode/doctype.xhtml1_transitional
new file mode 100644
index 0000000..c5255fc
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/doctype.xhtml1_transitional
@@ -0,0 +1,4 @@
+#name : DocType XHTML 1.0 Transitional
+#group : meta
+# --
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/dov b/emacs.d/snippets/text-mode/html-mode/dov
new file mode 100644
index 0000000..e8341ea
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/dov
@@ -0,0 +1,11 @@
+#name : <dov...>...</dov>
+# --
+a mirror up here $3
+
+
+<dov ${1:id="${2:some_id and here comes another nested field: ${3:nested_shit}}"}>
+ $0
+</dov>
+<dov $1>
+ actually some other shit and $3
+</dov>
diff --git a/emacs.d/snippets/text-mode/html-mode/dt b/emacs.d/snippets/text-mode/html-mode/dt
new file mode 100644
index 0000000..f385cec
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/dt
@@ -0,0 +1,5 @@
+#contributor : Rodrigo Setti <rodrigosetti@gmail.com>
+#name : <dt> ... </dt>
+#group : list
+# --
+<dt>$1</dt> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/form b/emacs.d/snippets/text-mode/html-mode/form
new file mode 100644
index 0000000..f1c066d
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/form
@@ -0,0 +1,6 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name :<form method="..." id="..." action="..."></form>
+# --
+<form method="$1" id="$2" action="$3">
+ $0
+</form> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/h1 b/emacs.d/snippets/text-mode/html-mode/h1
new file mode 100644
index 0000000..414e457
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/h1
@@ -0,0 +1,5 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <h1>...</h1>
+#group : header
+# --
+<h1>$1</h1> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/h2 b/emacs.d/snippets/text-mode/html-mode/h2
new file mode 100644
index 0000000..3722a29
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/h2
@@ -0,0 +1,5 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <h2>...</h2>
+#group : header
+# --
+<h2>$1</h2> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/h3 b/emacs.d/snippets/text-mode/html-mode/h3
new file mode 100644
index 0000000..a1eaab1
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/h3
@@ -0,0 +1,5 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <h3>...</h3>
+#group : header
+# --
+<h3>$1</h3> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/h4 b/emacs.d/snippets/text-mode/html-mode/h4
new file mode 100644
index 0000000..df71628
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/h4
@@ -0,0 +1,5 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <h4>...</h4>
+#group : header
+# --
+<h4>$1</h4> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/h5 b/emacs.d/snippets/text-mode/html-mode/h5
new file mode 100644
index 0000000..0109822
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/h5
@@ -0,0 +1,5 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <h5>...</h5>
+#group : header
+# --
+<h5>$1</h5> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/h6 b/emacs.d/snippets/text-mode/html-mode/h6
new file mode 100644
index 0000000..21c718f
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/h6
@@ -0,0 +1,5 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <h6>...</h6>
+#group : header
+# --
+<h6>$1</h6> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/head b/emacs.d/snippets/text-mode/html-mode/head
new file mode 100644
index 0000000..d639a73
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/head
@@ -0,0 +1,6 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <head>...</head>
+# --
+<head>
+ $0
+</head> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/hr b/emacs.d/snippets/text-mode/html-mode/hr
new file mode 100644
index 0000000..c2c330c
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/hr
@@ -0,0 +1,4 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <hr />
+# --
+<hr />
diff --git a/emacs.d/snippets/text-mode/html-mode/href b/emacs.d/snippets/text-mode/html-mode/href
new file mode 100644
index 0000000..121d589
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/href
@@ -0,0 +1,4 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <a href="...">...</a>
+# --
+<a href="$1">$2</a> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/html b/emacs.d/snippets/text-mode/html-mode/html
new file mode 100644
index 0000000..958aa6d
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/html
@@ -0,0 +1,6 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <html>...</html>
+# --
+<html>
+ $0
+</html>
diff --git a/emacs.d/snippets/text-mode/html-mode/html.xmlns b/emacs.d/snippets/text-mode/html-mode/html.xmlns
new file mode 100644
index 0000000..7dd7ee4
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/html.xmlns
@@ -0,0 +1,6 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <html xmlns="...">...</html>
+# --
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="${1:en}" lang="${2:en}">
+ $0
+</html>
diff --git a/emacs.d/snippets/text-mode/html-mode/img b/emacs.d/snippets/text-mode/html-mode/img
new file mode 100644
index 0000000..897f605
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/img
@@ -0,0 +1,4 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <img src="..." class="..." alt="..." />
+# --
+<img src="$1" class="$2" alt="$3" /> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/input b/emacs.d/snippets/text-mode/html-mode/input
new file mode 100644
index 0000000..c79ba87
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/input
@@ -0,0 +1,4 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <input ... />
+# --
+<input type="$1" name="$2" value="$3" /> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/li b/emacs.d/snippets/text-mode/html-mode/li
new file mode 100644
index 0000000..c5139fa
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/li
@@ -0,0 +1,5 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <li>...</li>
+#group : list
+# --
+<li>$1</li> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/li.class b/emacs.d/snippets/text-mode/html-mode/li.class
new file mode 100644
index 0000000..90f0c65
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/li.class
@@ -0,0 +1,5 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <li class="...">...</li>
+#group : list
+# --
+<li class="$1">$2</li> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/link.stylesheet b/emacs.d/snippets/text-mode/html-mode/link.stylesheet
new file mode 100644
index 0000000..6c9de74
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/link.stylesheet
@@ -0,0 +1,4 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <link stylesheet="..." />
+# --
+<link rel="${1:stylesheet}" href="${2:url}" type="${3:text/css}" media="${4:screen}" /> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/link.stylesheet-ie b/emacs.d/snippets/text-mode/html-mode/link.stylesheet-ie
new file mode 100644
index 0000000..4f6a776
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/link.stylesheet-ie
@@ -0,0 +1,6 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <!--[if IE]><link stylesheet="..." /><![endif]-->
+# --
+<!--[if IE]>
+<link rel="${1:stylesheet}" href="${2:url}" type="${3:text/css}" media="${4:screen}" />
+<![endif]--> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/mailto b/emacs.d/snippets/text-mode/html-mode/mailto
new file mode 100644
index 0000000..419f2a5
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/mailto
@@ -0,0 +1,4 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <a href="mailto:...@...">...</a>
+# --
+<a href="mailto:$1@$2">$0</a> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/meta b/emacs.d/snippets/text-mode/html-mode/meta
new file mode 100644
index 0000000..30319ef
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/meta
@@ -0,0 +1,5 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#group : meta
+#name : <meta name="..." content="..." />
+# --
+<meta name="${1:generator}" content="${2:content}" /> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/meta.http-equiv b/emacs.d/snippets/text-mode/html-mode/meta.http-equiv
new file mode 100644
index 0000000..c059a44
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/meta.http-equiv
@@ -0,0 +1,5 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <meta http-equiv="..." content="..." />
+#group : meta
+# --
+<meta name="${1:Content-Type}" content="${2:text/html; charset=UTF-8}" /> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/ol b/emacs.d/snippets/text-mode/html-mode/ol
new file mode 100644
index 0000000..58899fa
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/ol
@@ -0,0 +1,7 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <ol>...</ol>
+#group : list
+# --
+<ol>
+ $0
+</ol> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/ol.class b/emacs.d/snippets/text-mode/html-mode/ol.class
new file mode 100644
index 0000000..b091f08
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/ol.class
@@ -0,0 +1,7 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <ol class="...">...</ol>
+#group : list
+# --
+<ol class="$1">
+ $0
+</ol> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/ol.id b/emacs.d/snippets/text-mode/html-mode/ol.id
new file mode 100644
index 0000000..13c7c06
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/ol.id
@@ -0,0 +1,7 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <ol id="...">...</ol>
+#group : list
+# --
+<ol id="$1">
+ $0
+</ol> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/p b/emacs.d/snippets/text-mode/html-mode/p
new file mode 100644
index 0000000..649d9a2
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/p
@@ -0,0 +1,4 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <p>...</p>
+# --
+<p>$1</p> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/pre b/emacs.d/snippets/text-mode/html-mode/pre
new file mode 100644
index 0000000..bfebb3c
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/pre
@@ -0,0 +1,6 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <pre>...</pre>
+# --
+<pre>
+ $0
+</pre> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/quote b/emacs.d/snippets/text-mode/html-mode/quote
new file mode 100644
index 0000000..65ded74
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/quote
@@ -0,0 +1,6 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <blockquote>...</blockquote>
+# --
+<blockquote>
+ $1
+</blockquote> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/script.javascript b/emacs.d/snippets/text-mode/html-mode/script.javascript
new file mode 100644
index 0000000..bf0c3b5
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/script.javascript
@@ -0,0 +1,6 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name :<script type="text/javascript">...</script>
+# --
+<script type="text/javascript">
+ $0
+</script> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/script.javascript-src b/emacs.d/snippets/text-mode/html-mode/script.javascript-src
new file mode 100644
index 0000000..b64c4dc
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/script.javascript-src
@@ -0,0 +1,4 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name :<script type="text/javascript" src="..."></script>
+# --
+<script type="text/javascript" src="$1"></script> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/span b/emacs.d/snippets/text-mode/html-mode/span
new file mode 100644
index 0000000..149758d
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/span
@@ -0,0 +1,4 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <span>...</span>
+# --
+<span>$1</span> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/span.class b/emacs.d/snippets/text-mode/html-mode/span.class
new file mode 100644
index 0000000..2d5ee55
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/span.class
@@ -0,0 +1,4 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <span class="...">...</span>
+# --
+<span class="$1">$2</span> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/span.id b/emacs.d/snippets/text-mode/html-mode/span.id
new file mode 100644
index 0000000..30a81bc
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/span.id
@@ -0,0 +1,4 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <span id="...">...</span>
+# --
+<span id="$1">$2</span> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/style b/emacs.d/snippets/text-mode/html-mode/style
new file mode 100644
index 0000000..300bead
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/style
@@ -0,0 +1,6 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <style type="text/css" media="...">...</style>
+# --
+<style type="text/css" media="${1:screen}">
+ $0
+</style> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/table b/emacs.d/snippets/text-mode/html-mode/table
new file mode 100644
index 0000000..561614f
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/table
@@ -0,0 +1,7 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <table ...>...</table>
+#group : table
+# --
+<table width="$1" cellspacing="$2" cellpadding="$3" border="$4">
+ $0
+</table> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/td b/emacs.d/snippets/text-mode/html-mode/td
new file mode 100644
index 0000000..4f494eb
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/td
@@ -0,0 +1,5 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <td>...</td>
+#group : table
+# --
+<td$1>$2</td> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/textarea b/emacs.d/snippets/text-mode/html-mode/textarea
new file mode 100644
index 0000000..058498f
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/textarea
@@ -0,0 +1,4 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <textarea ...></textarea>
+# --
+<textarea name="$1" id="$2" rows="$3" cols="$4" tabindex="$5"></textarea> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/th b/emacs.d/snippets/text-mode/html-mode/th
new file mode 100644
index 0000000..3b5fab1
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/th
@@ -0,0 +1,5 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <th>...</th>
+#group : table
+# --
+<th$1>$2</th> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/title b/emacs.d/snippets/text-mode/html-mode/title
new file mode 100644
index 0000000..21794cd
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/title
@@ -0,0 +1,4 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <title>...</title>
+# --
+<title>$1</title> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/tr b/emacs.d/snippets/text-mode/html-mode/tr
new file mode 100644
index 0000000..3878a1c
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/tr
@@ -0,0 +1,7 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <tr>...</tr>
+#group : table
+# --
+<tr>
+ $0
+</tr> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/ul b/emacs.d/snippets/text-mode/html-mode/ul
new file mode 100644
index 0000000..981e6e7
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/ul
@@ -0,0 +1,7 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <ul>...</ul>
+#group : list
+# --
+<ul>
+ $0
+</ul> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/ul.class b/emacs.d/snippets/text-mode/html-mode/ul.class
new file mode 100644
index 0000000..c1e3e91
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/ul.class
@@ -0,0 +1,7 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <ul class="...">...</ul>
+#group : list
+# --
+<ul class="$1">
+ $0
+</ul> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/html-mode/ul.id b/emacs.d/snippets/text-mode/html-mode/ul.id
new file mode 100644
index 0000000..ababf37
--- /dev/null
+++ b/emacs.d/snippets/text-mode/html-mode/ul.id
@@ -0,0 +1,7 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <ul id="...">...</ul>
+#group : list
+# --
+<ul id="$1">
+ $0
+</ul> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/latex-mode/begin b/emacs.d/snippets/text-mode/latex-mode/begin
new file mode 100644
index 0000000..dc42d2f
--- /dev/null
+++ b/emacs.d/snippets/text-mode/latex-mode/begin
@@ -0,0 +1,7 @@
+#contributor : Rodrigo Setti <rodrigosetti@gmail.com>
+#name : \begin{environment} ... \end{environment}
+# --
+
+\begin{${1:environment}}
+$0
+\end{$1}
diff --git a/emacs.d/snippets/text-mode/markdown-mode/+ b/emacs.d/snippets/text-mode/markdown-mode/+
new file mode 100644
index 0000000..0407169
--- /dev/null
+++ b/emacs.d/snippets/text-mode/markdown-mode/+
@@ -0,0 +1,5 @@
+#name : Unordered List
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
++ ${1:Text}
++$0
diff --git a/emacs.d/snippets/text-mode/markdown-mode/- b/emacs.d/snippets/text-mode/markdown-mode/-
new file mode 100644
index 0000000..9d5c51d
--- /dev/null
+++ b/emacs.d/snippets/text-mode/markdown-mode/-
@@ -0,0 +1,5 @@
+#name : Unordered List
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+- ${1:Text}
+-$0
diff --git a/emacs.d/snippets/text-mode/markdown-mode/_ b/emacs.d/snippets/text-mode/markdown-mode/_
new file mode 100644
index 0000000..50ab476
--- /dev/null
+++ b/emacs.d/snippets/text-mode/markdown-mode/_
@@ -0,0 +1,4 @@
+#name : Emphasis
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+_${1:Text}_ $0
diff --git a/emacs.d/snippets/text-mode/markdown-mode/__ b/emacs.d/snippets/text-mode/markdown-mode/__
new file mode 100644
index 0000000..b6304f3
--- /dev/null
+++ b/emacs.d/snippets/text-mode/markdown-mode/__
@@ -0,0 +1,4 @@
+#name : Strong
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+**${1:Text}** $0
diff --git a/emacs.d/snippets/text-mode/markdown-mode/` b/emacs.d/snippets/text-mode/markdown-mode/`
new file mode 100644
index 0000000..ae58211
--- /dev/null
+++ b/emacs.d/snippets/text-mode/markdown-mode/`
@@ -0,0 +1,4 @@
+#name : Inline Code
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+\`${1:Code}\` $0
diff --git a/emacs.d/snippets/text-mode/markdown-mode/h1.1 b/emacs.d/snippets/text-mode/markdown-mode/h1.1
new file mode 100644
index 0000000..8bb7ea2
--- /dev/null
+++ b/emacs.d/snippets/text-mode/markdown-mode/h1.1
@@ -0,0 +1,6 @@
+#name : Header 1 (#)
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+# ${1:Header 1} #
+
+$0
diff --git a/emacs.d/snippets/text-mode/markdown-mode/h1.2 b/emacs.d/snippets/text-mode/markdown-mode/h1.2
new file mode 100644
index 0000000..d2e7b5b
--- /dev/null
+++ b/emacs.d/snippets/text-mode/markdown-mode/h1.2
@@ -0,0 +1,7 @@
+#name : Header 1 (=)
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+${1:Header 1}
+${1:$(make-string (string-width text) ?\=)}
+
+$0
diff --git a/emacs.d/snippets/text-mode/markdown-mode/h2.1 b/emacs.d/snippets/text-mode/markdown-mode/h2.1
new file mode 100644
index 0000000..bfee3fc
--- /dev/null
+++ b/emacs.d/snippets/text-mode/markdown-mode/h2.1
@@ -0,0 +1,6 @@
+#name : Header 2 (##)
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+## ${1:Header 1} ##
+
+$0
diff --git a/emacs.d/snippets/text-mode/markdown-mode/h2.2 b/emacs.d/snippets/text-mode/markdown-mode/h2.2
new file mode 100644
index 0000000..af06045
--- /dev/null
+++ b/emacs.d/snippets/text-mode/markdown-mode/h2.2
@@ -0,0 +1,7 @@
+#name : Header 2 (-)
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+${1:Header 2}
+${1:$(make-string (string-width text) ?\-)}
+
+$0
diff --git a/emacs.d/snippets/text-mode/markdown-mode/h3 b/emacs.d/snippets/text-mode/markdown-mode/h3
new file mode 100644
index 0000000..44a6104
--- /dev/null
+++ b/emacs.d/snippets/text-mode/markdown-mode/h3
@@ -0,0 +1,6 @@
+#name : Header 3
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+### ${1:Header 3} ###
+
+$0
diff --git a/emacs.d/snippets/text-mode/markdown-mode/h4 b/emacs.d/snippets/text-mode/markdown-mode/h4
new file mode 100644
index 0000000..315140a
--- /dev/null
+++ b/emacs.d/snippets/text-mode/markdown-mode/h4
@@ -0,0 +1,6 @@
+#name : Header 4
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+#### ${1:Header 4} ####
+
+$0
diff --git a/emacs.d/snippets/text-mode/markdown-mode/h5 b/emacs.d/snippets/text-mode/markdown-mode/h5
new file mode 100644
index 0000000..f50a785
--- /dev/null
+++ b/emacs.d/snippets/text-mode/markdown-mode/h5
@@ -0,0 +1,6 @@
+#name : Header 5
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+##### ${1:Header 5} #####
+
+$0
diff --git a/emacs.d/snippets/text-mode/markdown-mode/h6 b/emacs.d/snippets/text-mode/markdown-mode/h6
new file mode 100644
index 0000000..1cdfebb
--- /dev/null
+++ b/emacs.d/snippets/text-mode/markdown-mode/h6
@@ -0,0 +1,6 @@
+#name : Header 6
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+###### ${1:Header 6} ######
+
+$0
diff --git a/emacs.d/snippets/text-mode/markdown-mode/hr.1 b/emacs.d/snippets/text-mode/markdown-mode/hr.1
new file mode 100644
index 0000000..5fbe4f4
--- /dev/null
+++ b/emacs.d/snippets/text-mode/markdown-mode/hr.1
@@ -0,0 +1,7 @@
+#name : Horizontal Rule (-)
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+
+----------
+
+$0
diff --git a/emacs.d/snippets/text-mode/markdown-mode/hr.2 b/emacs.d/snippets/text-mode/markdown-mode/hr.2
new file mode 100644
index 0000000..2d4de22
--- /dev/null
+++ b/emacs.d/snippets/text-mode/markdown-mode/hr.2
@@ -0,0 +1,7 @@
+#name : Horizontal Rule (*)
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+
+*******
+
+$0
diff --git a/emacs.d/snippets/text-mode/markdown-mode/img b/emacs.d/snippets/text-mode/markdown-mode/img
new file mode 100644
index 0000000..69ee77d
--- /dev/null
+++ b/emacs.d/snippets/text-mode/markdown-mode/img
@@ -0,0 +1,4 @@
+#name : Image
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+![${1:Alt Text}](${2:URL} $3) $0
diff --git a/emacs.d/snippets/text-mode/markdown-mode/link b/emacs.d/snippets/text-mode/markdown-mode/link
new file mode 100644
index 0000000..dd7f99b
--- /dev/null
+++ b/emacs.d/snippets/text-mode/markdown-mode/link
@@ -0,0 +1,4 @@
+#name : Link
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+[${1:Link Text}](${2:URL} $3) $0
diff --git a/emacs.d/snippets/text-mode/markdown-mode/ol b/emacs.d/snippets/text-mode/markdown-mode/ol
new file mode 100644
index 0000000..e715669
--- /dev/null
+++ b/emacs.d/snippets/text-mode/markdown-mode/ol
@@ -0,0 +1,5 @@
+#name : Ordered List
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+${1:1}. ${2:Text}
+${1:$(number-to-string (1+ (string-to-number text)))}. $0
diff --git a/emacs.d/snippets/text-mode/markdown-mode/rimg b/emacs.d/snippets/text-mode/markdown-mode/rimg
new file mode 100644
index 0000000..caafb60
--- /dev/null
+++ b/emacs.d/snippets/text-mode/markdown-mode/rimg
@@ -0,0 +1,4 @@
+#name : Referenced Image
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+![${1:Alt Text}][$2] $0
diff --git a/emacs.d/snippets/text-mode/markdown-mode/rlb b/emacs.d/snippets/text-mode/markdown-mode/rlb
new file mode 100644
index 0000000..681d9f0
--- /dev/null
+++ b/emacs.d/snippets/text-mode/markdown-mode/rlb
@@ -0,0 +1,5 @@
+#name : Reference Label
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+[${1:Reference}]: ${2:URL} $3
+$0
diff --git a/emacs.d/snippets/text-mode/markdown-mode/rlink b/emacs.d/snippets/text-mode/markdown-mode/rlink
new file mode 100644
index 0000000..e35a0c0
--- /dev/null
+++ b/emacs.d/snippets/text-mode/markdown-mode/rlink
@@ -0,0 +1,4 @@
+#name : Reference Link
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+[${1:Link Text}][$2] $0
diff --git a/emacs.d/snippets/text-mode/nxml-mode/body b/emacs.d/snippets/text-mode/nxml-mode/body
new file mode 100644
index 0000000..ddcf0cf
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/body
@@ -0,0 +1,6 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <body>...</body>
+# --
+<body$1>
+ $0
+</body> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/br b/emacs.d/snippets/text-mode/nxml-mode/br
new file mode 100644
index 0000000..ba35773
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/br
@@ -0,0 +1,4 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <br />
+# --
+<br /> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/code b/emacs.d/snippets/text-mode/nxml-mode/code
new file mode 100644
index 0000000..b7c43fd
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/code
@@ -0,0 +1,6 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <code>...</code>
+# --
+<code>
+ $0
+</code> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/div b/emacs.d/snippets/text-mode/nxml-mode/div
new file mode 100644
index 0000000..90fbc2e
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/div
@@ -0,0 +1,4 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <div...>...</div>
+# --
+<div$1>$0</div> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/doctype b/emacs.d/snippets/text-mode/nxml-mode/doctype
new file mode 100644
index 0000000..3fdcf17
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/doctype
@@ -0,0 +1,5 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : DocType XHTML 1.1
+#group : meta
+# --
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/doctype.xhtml1_strict b/emacs.d/snippets/text-mode/nxml-mode/doctype.xhtml1_strict
new file mode 100644
index 0000000..eca5860
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/doctype.xhtml1_strict
@@ -0,0 +1,5 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : DocType XHTML 1.0 Strict
+#group : meta
+# --
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/doctype.xhtml1_transitional b/emacs.d/snippets/text-mode/nxml-mode/doctype.xhtml1_transitional
new file mode 100644
index 0000000..fba232a
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/doctype.xhtml1_transitional
@@ -0,0 +1,5 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : DocType XHTML 1.0 Transitional
+#group : meta
+# --
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/form b/emacs.d/snippets/text-mode/nxml-mode/form
new file mode 100644
index 0000000..252253e
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/form
@@ -0,0 +1,6 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name :<form method="..." action="..."></form>
+# --
+<form method="$1" action="$2">
+ $0
+</form> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/h1 b/emacs.d/snippets/text-mode/nxml-mode/h1
new file mode 100644
index 0000000..bc72fd6
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/h1
@@ -0,0 +1,5 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <h1>...</h1>
+#group : header
+# --
+<h1>$1</h1> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/h2 b/emacs.d/snippets/text-mode/nxml-mode/h2
new file mode 100644
index 0000000..b790e56
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/h2
@@ -0,0 +1,5 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <h2>...</h2>
+#group : header
+# --
+<h2>$1</h2> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/h3 b/emacs.d/snippets/text-mode/nxml-mode/h3
new file mode 100644
index 0000000..7dfd9d7
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/h3
@@ -0,0 +1,5 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <h3>...</h3>
+#group : header
+# --
+<h3>$1</h3> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/h4 b/emacs.d/snippets/text-mode/nxml-mode/h4
new file mode 100644
index 0000000..b782998
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/h4
@@ -0,0 +1,5 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <h4>...</h4>
+#group : header
+# --
+<h4>$1</h4> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/h5 b/emacs.d/snippets/text-mode/nxml-mode/h5
new file mode 100644
index 0000000..13a51a1
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/h5
@@ -0,0 +1,5 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <h5>...</h5>
+#group : header
+# --
+<h5>$1</h5> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/h6 b/emacs.d/snippets/text-mode/nxml-mode/h6
new file mode 100644
index 0000000..b2f0c55
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/h6
@@ -0,0 +1,5 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <h6>...</h6>
+#group : header
+# --
+<h6>$1</h6> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/head b/emacs.d/snippets/text-mode/nxml-mode/head
new file mode 100644
index 0000000..91347b9
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/head
@@ -0,0 +1,6 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <head>...</head>
+# --
+<head>
+ $0
+</head> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/hr b/emacs.d/snippets/text-mode/nxml-mode/hr
new file mode 100644
index 0000000..a17e1db
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/hr
@@ -0,0 +1,4 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <hr />
+# --
+<hr />
diff --git a/emacs.d/snippets/text-mode/nxml-mode/href b/emacs.d/snippets/text-mode/nxml-mode/href
new file mode 100644
index 0000000..0db2fae
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/href
@@ -0,0 +1,4 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <a href="...">...</a>
+# --
+<a href="$1">$2</a> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/html b/emacs.d/snippets/text-mode/nxml-mode/html
new file mode 100644
index 0000000..85e09f7
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/html
@@ -0,0 +1,6 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <html xmlns="...">...</html>
+# --
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="${1:en}" lang="${2:en}">
+ $0
+</html>
diff --git a/emacs.d/snippets/text-mode/nxml-mode/img b/emacs.d/snippets/text-mode/nxml-mode/img
new file mode 100644
index 0000000..1f4382b
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/img
@@ -0,0 +1,4 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <img src="..." alt="..." />
+# --
+<img src="$1" alt="$2" /> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/input b/emacs.d/snippets/text-mode/nxml-mode/input
new file mode 100644
index 0000000..80c3503
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/input
@@ -0,0 +1,4 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <input ... />
+# --
+<input type="$1" name="$2" value="$3" /> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/li b/emacs.d/snippets/text-mode/nxml-mode/li
new file mode 100644
index 0000000..c952682
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/li
@@ -0,0 +1,4 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <li>...</li>
+# --
+<li>$1</li> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/link b/emacs.d/snippets/text-mode/nxml-mode/link
new file mode 100644
index 0000000..d93b7a5
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/link
@@ -0,0 +1,4 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <link stylesheet="..." />
+# --
+<link rel="${1:stylesheet}" href="${2:url}" type="${3:text/css}" media="${4:screen}" /> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/meta b/emacs.d/snippets/text-mode/nxml-mode/meta
new file mode 100644
index 0000000..dfee1f2
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/meta
@@ -0,0 +1,5 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <meta name="..." content="..." />
+#group : meta
+# --
+<meta name="${1:generator}" content="${2:content}" /> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/name b/emacs.d/snippets/text-mode/nxml-mode/name
new file mode 100644
index 0000000..592d0da
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/name
@@ -0,0 +1,4 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <a name="..."></a>
+# --
+<a name="$1"></a> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/ol b/emacs.d/snippets/text-mode/nxml-mode/ol
new file mode 100644
index 0000000..16cfe8d
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/ol
@@ -0,0 +1,6 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <ol>...</ol>
+# --
+<ol>
+ $0
+</ol> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/p b/emacs.d/snippets/text-mode/nxml-mode/p
new file mode 100644
index 0000000..6845ba5
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/p
@@ -0,0 +1,4 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <p>...</p>
+# --
+<p>$1</p> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/pre b/emacs.d/snippets/text-mode/nxml-mode/pre
new file mode 100644
index 0000000..d70b722
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/pre
@@ -0,0 +1,6 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <pre>...</pre>
+# --
+<pre>
+ $0
+</pre> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/quote b/emacs.d/snippets/text-mode/nxml-mode/quote
new file mode 100644
index 0000000..20fed1e
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/quote
@@ -0,0 +1,6 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <blockquote>...</blockquote>
+# --
+<blockquote>
+ $1
+</blockquote> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/span b/emacs.d/snippets/text-mode/nxml-mode/span
new file mode 100644
index 0000000..a0bba2a
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/span
@@ -0,0 +1,4 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <span>...</span>
+# --
+<span>$1</span> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/style b/emacs.d/snippets/text-mode/nxml-mode/style
new file mode 100644
index 0000000..b80be1c
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/style
@@ -0,0 +1,6 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <style type="text/css" media="...">...</style>
+# --
+<style type="text/css" media="${1:screen}">
+ $0
+</style> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/table b/emacs.d/snippets/text-mode/nxml-mode/table
new file mode 100644
index 0000000..03fd119
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/table
@@ -0,0 +1,6 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <table>...</table>
+# --
+<table>
+ $0
+</table> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/tag.1l b/emacs.d/snippets/text-mode/nxml-mode/tag.1l
new file mode 100644
index 0000000..8988635
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/tag.1l
@@ -0,0 +1,4 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <tag>...</tag>
+# --
+<${1:tag}>$2</$1>$0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/tag.2l b/emacs.d/snippets/text-mode/nxml-mode/tag.2l
new file mode 100644
index 0000000..08b4a26
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/tag.2l
@@ -0,0 +1,6 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <tag> \n...\n</tag>
+# --
+<${1:tag}>
+ $2
+</$1>$0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/td b/emacs.d/snippets/text-mode/nxml-mode/td
new file mode 100644
index 0000000..f4615a7
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/td
@@ -0,0 +1,4 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <td>...</td>
+# --
+<td$1>$2</td> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/th b/emacs.d/snippets/text-mode/nxml-mode/th
new file mode 100644
index 0000000..d988b20
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/th
@@ -0,0 +1,4 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <th>...</th>
+# --
+<th$1>$2</th> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/title b/emacs.d/snippets/text-mode/nxml-mode/title
new file mode 100644
index 0000000..7cd238a
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/title
@@ -0,0 +1,4 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <title>...</title>
+# --
+<title>$1</title> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/tr b/emacs.d/snippets/text-mode/nxml-mode/tr
new file mode 100644
index 0000000..c72daf2
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/tr
@@ -0,0 +1,6 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <tr>...</tr>
+# --
+<tr>
+ $0
+</tr> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/nxml-mode/ul b/emacs.d/snippets/text-mode/nxml-mode/ul
new file mode 100644
index 0000000..dac5a66
--- /dev/null
+++ b/emacs.d/snippets/text-mode/nxml-mode/ul
@@ -0,0 +1,6 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <ul>...</ul>
+# --
+<ul>
+ $0
+</ul> \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/perl-mode/eval b/emacs.d/snippets/text-mode/perl-mode/eval
new file mode 100644
index 0000000..c1f1e1b
--- /dev/null
+++ b/emacs.d/snippets/text-mode/perl-mode/eval
@@ -0,0 +1,8 @@
+#name : eval { ... } if ($@) { ... }
+# --
+eval {
+ ${1:# do something risky...}
+};
+if (\$@) {
+ ${2:# handle failure...}
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/perl-mode/for b/emacs.d/snippets/text-mode/perl-mode/for
new file mode 100644
index 0000000..ec5532f
--- /dev/null
+++ b/emacs.d/snippets/text-mode/perl-mode/for
@@ -0,0 +1,5 @@
+#name : for (...) { ... }
+# --
+for (my \$${1:var} = 0; \$$1 < ${2:expression}; \$$1++) {
+ ${3:# body...}
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/perl-mode/fore b/emacs.d/snippets/text-mode/perl-mode/fore
new file mode 100644
index 0000000..c878a0e
--- /dev/null
+++ b/emacs.d/snippets/text-mode/perl-mode/fore
@@ -0,0 +1,5 @@
+#name : foreach ... { ... }
+# --
+foreach my \$${1:x} (@${2:array}) {
+ ${3:# body...}
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/perl-mode/if b/emacs.d/snippets/text-mode/perl-mode/if
new file mode 100644
index 0000000..3191b97
--- /dev/null
+++ b/emacs.d/snippets/text-mode/perl-mode/if
@@ -0,0 +1,5 @@
+#name : if (...) { ... }
+# --
+if ($1) {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/perl-mode/ife b/emacs.d/snippets/text-mode/perl-mode/ife
new file mode 100644
index 0000000..23f7cf6
--- /dev/null
+++ b/emacs.d/snippets/text-mode/perl-mode/ife
@@ -0,0 +1,7 @@
+#name : if (...) { ... } else { ... }
+# --
+if ($1) {
+ $2
+} else {
+ $3
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/perl-mode/ifee b/emacs.d/snippets/text-mode/perl-mode/ifee
new file mode 100644
index 0000000..7c187d1
--- /dev/null
+++ b/emacs.d/snippets/text-mode/perl-mode/ifee
@@ -0,0 +1,9 @@
+#name : if, elsif, else ...
+# --
+if ($1) {
+ ${2:# body...}
+} elsif ($3) {
+ ${4:# elsif...}
+} else {
+ ${5:# else...}
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/perl-mode/sub b/emacs.d/snippets/text-mode/perl-mode/sub
new file mode 100644
index 0000000..5ab54d7
--- /dev/null
+++ b/emacs.d/snippets/text-mode/perl-mode/sub
@@ -0,0 +1,5 @@
+#name : sub ... { ... }
+# --
+sub ${1:function_name} {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/perl-mode/unless b/emacs.d/snippets/text-mode/perl-mode/unless
new file mode 100644
index 0000000..baeffa2
--- /dev/null
+++ b/emacs.d/snippets/text-mode/perl-mode/unless
@@ -0,0 +1,5 @@
+#name : unless (...) { ... }
+# --
+unless ($1) {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/perl-mode/while b/emacs.d/snippets/text-mode/perl-mode/while
new file mode 100644
index 0000000..9c2c470
--- /dev/null
+++ b/emacs.d/snippets/text-mode/perl-mode/while
@@ -0,0 +1,5 @@
+#name : while (...) { ... }
+# --
+while ($1) {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/perl-mode/xfore b/emacs.d/snippets/text-mode/perl-mode/xfore
new file mode 100644
index 0000000..58e455d
--- /dev/null
+++ b/emacs.d/snippets/text-mode/perl-mode/xfore
@@ -0,0 +1,3 @@
+#name : ... foreach ...
+# --
+${1:expression} foreach @${2:array}; \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/perl-mode/xif b/emacs.d/snippets/text-mode/perl-mode/xif
new file mode 100644
index 0000000..1d4dba8
--- /dev/null
+++ b/emacs.d/snippets/text-mode/perl-mode/xif
@@ -0,0 +1,3 @@
+#name : ... if ...
+# --
+${1:expression} if ${2:condition} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/perl-mode/xunless b/emacs.d/snippets/text-mode/perl-mode/xunless
new file mode 100644
index 0000000..f456db3
--- /dev/null
+++ b/emacs.d/snippets/text-mode/perl-mode/xunless
@@ -0,0 +1,3 @@
+#name : ... unless ...
+# --
+${1:expression} unless ${2:condition} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/perl-mode/xwhile b/emacs.d/snippets/text-mode/perl-mode/xwhile
new file mode 100644
index 0000000..2515586
--- /dev/null
+++ b/emacs.d/snippets/text-mode/perl-mode/xwhile
@@ -0,0 +1,3 @@
+#name : ... while ...
+# --
+${1:expression} while ${2:condition}; \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/python-mode/__ b/emacs.d/snippets/text-mode/python-mode/__
new file mode 100644
index 0000000..a67dc49
--- /dev/null
+++ b/emacs.d/snippets/text-mode/python-mode/__
@@ -0,0 +1,3 @@
+#name : __...__
+# --
+__${init}__ \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/python-mode/class b/emacs.d/snippets/text-mode/python-mode/class
new file mode 100644
index 0000000..72f339b
--- /dev/null
+++ b/emacs.d/snippets/text-mode/python-mode/class
@@ -0,0 +1,54 @@
+# -*- coding: utf-8 -*-
+# name: class
+# contributor: Orestis Markou
+# contributor: Nishio Hirokazu
+# contributor: Yasser González Fernández <yglez@uh.cu>
+# --
+class ${1:ClassName}(${2:object}):
+ """$3
+ """
+
+ def __init__(self, $4):
+ """$5
+ ${4:$
+ (let* ((indent
+ (concat "\n" (make-string (current-column) 32)))
+ (args
+ (mapconcat
+ '(lambda (x)
+ (if (not (string= (nth 0 x) ""))
+ (concat "- " (char-to-string 96) (nth 0 x)
+ (char-to-string 96) ":")))
+ (mapcar
+ '(lambda (x)
+ (mapcar
+ (lambda (x)
+ (replace-regexp-in-string "[[:blank:]]*$" ""
+ (replace-regexp-in-string "^[[:blank:]]*" "" x))) x))
+ (mapcar '(lambda (x) (split-string x "="))
+ (split-string text ",")))
+ indent)))
+ (if (string= args "")
+ (make-string 3 34)
+ (mapconcat
+ 'identity
+ (list "" "Arguments:" args (make-string 3 34))
+ indent)))
+ }
+ ${4:$
+ (mapconcat
+ '(lambda (x)
+ (if (not (string= (nth 0 x) ""))
+ (concat "self._" (nth 0 x) " = " (nth 0 x))))
+ (mapcar
+ '(lambda (x)
+ (mapcar
+ '(lambda (x)
+ (replace-regexp-in-string "[[:blank:]]*$" ""
+ (replace-regexp-in-string "^[[:blank:]]*" "" x)))
+ x))
+ (mapcar '(lambda (x) (split-string x "="))
+ (split-string text ",")))
+ (concat "\n" (make-string (current-column) 32)))
+ }
+ $0
diff --git a/emacs.d/snippets/text-mode/python-mode/def b/emacs.d/snippets/text-mode/python-mode/def
new file mode 100644
index 0000000..f82f791
--- /dev/null
+++ b/emacs.d/snippets/text-mode/python-mode/def
@@ -0,0 +1,35 @@
+# -*- coding: utf-8 -*-
+# name: def
+# contributor: Orestis Markou
+# contributor: Yasser González Fernández <yglez@uh.cu>
+# --
+def ${1:name}($2):
+ """$3
+ ${2:$
+ (let*
+ ((indent
+ (concat "\n" (make-string (current-column) 32)))
+ (args
+ (mapconcat
+ '(lambda (x)
+ (if (not (string= (nth 0 x) ""))
+ (concat "- " (char-to-string 96) (nth 0 x)
+ (char-to-string 96) ":")))
+ (mapcar
+ '(lambda (x)
+ (mapcar
+ '(lambda (x)
+ (replace-regexp-in-string "[[:blank:]]*$" ""
+ (replace-regexp-in-string "^[[:blank:]]*" "" x)))
+ x))
+ (mapcar '(lambda (x) (split-string x "="))
+ (split-string text ",")))
+ indent)))
+ (if (string= args "")
+ (make-string 3 34)
+ (mapconcat
+ 'identity
+ (list "" "Arguments:" args (make-string 3 34))
+ indent)))
+ }
+ $0
diff --git a/emacs.d/snippets/text-mode/python-mode/defm b/emacs.d/snippets/text-mode/python-mode/defm
new file mode 100644
index 0000000..dc25827
--- /dev/null
+++ b/emacs.d/snippets/text-mode/python-mode/defm
@@ -0,0 +1,33 @@
+# -*- coding: utf-8 -*-
+# name: defm
+# contributor: Yasser Gonz¨¢lez Fern¨¢ndez <yglez@uh.cu>
+# --
+def ${1:name}(self, $2):
+ """$3
+ ${2:$
+ (let* ((indent
+ (concat "\n" (make-string (current-column) 32)))
+ (args
+ (mapconcat
+ '(lambda (x)
+ (if (not (string= (nth 0 x) ""))
+ (concat "- " (char-to-string 96) (nth 0 x)
+ (char-to-string 96) ":")))
+ (mapcar
+ '(lambda (x)
+ (mapcar
+ '(lambda (x)
+ (replace-regexp-in-string "[[:blank:]]*$" ""
+ (replace-regexp-in-string "^[[:blank:]]*" "" x)))
+ x))
+ (mapcar '(lambda (x) (split-string x "="))
+ (split-string text ",")))
+ indent)))
+ (if (string= args "")
+ (make-string 3 34)
+ (mapconcat
+ 'identity
+ (list "" "Arguments:" args (make-string 3 34))
+ indent)))
+ }
+ $0
diff --git a/emacs.d/snippets/text-mode/python-mode/for b/emacs.d/snippets/text-mode/python-mode/for
new file mode 100644
index 0000000..84f3ddd
--- /dev/null
+++ b/emacs.d/snippets/text-mode/python-mode/for
@@ -0,0 +1,4 @@
+#name : for ... in ... : ...
+# --
+for ${var} in ${collection}:
+ $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/python-mode/ifmain b/emacs.d/snippets/text-mode/python-mode/ifmain
new file mode 100644
index 0000000..6224923
--- /dev/null
+++ b/emacs.d/snippets/text-mode/python-mode/ifmain
@@ -0,0 +1,4 @@
+#name : if __name__ == '__main__': ...
+# --
+if __name__ == '__main__':
+ $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/python-mode/prop b/emacs.d/snippets/text-mode/python-mode/prop
new file mode 100644
index 0000000..107730a
--- /dev/null
+++ b/emacs.d/snippets/text-mode/python-mode/prop
@@ -0,0 +1,15 @@
+# contributor: Mads D. Kristensen <madsdk@gmail.com>
+# name: prop
+# --
+def ${1:foo}():
+ doc = """${2:Doc string}"""
+ def fget(self):
+ return self._$1
+ def fset(self, value):
+ self._$1 = value
+ def fdel(self):
+ del self._$1
+ return locals()
+$1 = property(**$1())
+
+$0
diff --git a/emacs.d/snippets/text-mode/python-mode/propg b/emacs.d/snippets/text-mode/python-mode/propg
new file mode 100644
index 0000000..7e994b6
--- /dev/null
+++ b/emacs.d/snippets/text-mode/python-mode/propg
@@ -0,0 +1,9 @@
+#contributor : Julio Carlos Menendez <godinblack@gmail.com>
+#name : _get_foo ... foo=property(...)
+# --
+def _get_${1:foo}(self):
+ return self._$1
+
+$1 = property(_get_$1)
+
+$0
diff --git a/emacs.d/snippets/text-mode/python-mode/propsg b/emacs.d/snippets/text-mode/python-mode/propsg
new file mode 100644
index 0000000..e09d82a
--- /dev/null
+++ b/emacs.d/snippets/text-mode/python-mode/propsg
@@ -0,0 +1,12 @@
+#contributor : Julio Carlos Menendez <godinblack@gmail.com>
+#name : _get_foo ... _set_foo ... foo=property(...)
+# --
+def _set_${1:foo}(self, value):
+ self._$1 = value
+
+def _get_$1(self):
+ return self._$1
+
+$1 = property(_get_$1, _set_$1)
+
+$0
diff --git a/emacs.d/snippets/text-mode/python-mode/while b/emacs.d/snippets/text-mode/python-mode/while
new file mode 100644
index 0000000..704dd7c
--- /dev/null
+++ b/emacs.d/snippets/text-mode/python-mode/while
@@ -0,0 +1,4 @@
+#name : while ... : ...
+# --
+while ${condition}:
+ $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/rst-mode/chap b/emacs.d/snippets/text-mode/rst-mode/chap
new file mode 100644
index 0000000..6474c00
--- /dev/null
+++ b/emacs.d/snippets/text-mode/rst-mode/chap
@@ -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/emacs.d/snippets/text-mode/rst-mode/sec b/emacs.d/snippets/text-mode/rst-mode/sec
new file mode 100644
index 0000000..76087ed
--- /dev/null
+++ b/emacs.d/snippets/text-mode/rst-mode/sec
@@ -0,0 +1,6 @@
+#name : Section title
+# --
+${1:Section}
+${1:$(make-string (string-width text) ?\-)}
+
+$0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/rst-mode/tit b/emacs.d/snippets/text-mode/rst-mode/tit
new file mode 100644
index 0000000..cac2e77
--- /dev/null
+++ b/emacs.d/snippets/text-mode/rst-mode/tit
@@ -0,0 +1,7 @@
+#name : Document title
+# --
+${1:$(make-string (string-width text) ?\=)}
+${1:Title}
+${1:$(make-string (string-width text) ?\=)}
+
+$0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/# b/emacs.d/snippets/text-mode/ruby-mode/#
new file mode 100644
index 0000000..33581c8
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/#
@@ -0,0 +1,4 @@
+#name : # =>
+#group : general
+# --
+# => \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/=b b/emacs.d/snippets/text-mode/ruby-mode/=b
new file mode 100644
index 0000000..22a013f
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/=b
@@ -0,0 +1,6 @@
+#name : =begin rdoc ... =end
+#group : general
+# --
+=begin rdoc
+ $0
+=end \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/Comp b/emacs.d/snippets/text-mode/ruby-mode/Comp
new file mode 100644
index 0000000..03f2b35
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/Comp
@@ -0,0 +1,8 @@
+#name : include Comparable; def <=> ... end
+#group : definitions
+# --
+include Comparable
+
+def <=> other
+ $0
+end \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/all b/emacs.d/snippets/text-mode/ruby-mode/all
new file mode 100644
index 0000000..a98a9f4
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/all
@@ -0,0 +1,4 @@
+#name : all? { |...| ... }
+#group : collections
+# --
+all? { |${e}| $0 } \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/am b/emacs.d/snippets/text-mode/ruby-mode/am
new file mode 100644
index 0000000..7675a97
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/am
@@ -0,0 +1,4 @@
+#name : alias_method new, old
+#group : definitions
+# --
+alias_method :${new_name}, :${old_name} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/any b/emacs.d/snippets/text-mode/ruby-mode/any
new file mode 100644
index 0000000..d0b6dd2
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/any
@@ -0,0 +1,4 @@
+#name : any? { |...| ... }
+#group : collections
+# --
+any? { |${e}| $0 } \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/app b/emacs.d/snippets/text-mode/ruby-mode/app
new file mode 100644
index 0000000..19bf60a
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/app
@@ -0,0 +1,6 @@
+#name : if __FILE__ == $PROGRAM_NAME ... end
+#group : general
+# --
+if __FILE__ == $PROGRAM_NAME
+ $0
+end \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/bm b/emacs.d/snippets/text-mode/ruby-mode/bm
new file mode 100644
index 0000000..4789f64
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/bm
@@ -0,0 +1,6 @@
+#name : Benchmark.bmbm(...) do ... end
+#group : general
+# --
+Benchmark.bmbm(${1:10}) do |x|
+ $0
+end \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/case b/emacs.d/snippets/text-mode/ruby-mode/case
new file mode 100644
index 0000000..40c3529
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/case
@@ -0,0 +1,7 @@
+#name : case ... end
+#group : general
+# --
+case ${1:object}
+when ${2:condition}
+ $0
+end \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/cla b/emacs.d/snippets/text-mode/ruby-mode/cla
new file mode 100644
index 0000000..81ccf45
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/cla
@@ -0,0 +1,6 @@
+#name : class << self ... end
+#group : definitions
+# --
+class << ${self}
+ $0
+end \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/classify b/emacs.d/snippets/text-mode/ruby-mode/classify
new file mode 100644
index 0000000..2378afa
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/classify
@@ -0,0 +1,4 @@
+#name : classify { |...| ... }
+#group : collections
+# --
+classify { |${e}| $0 } \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/cls b/emacs.d/snippets/text-mode/ruby-mode/cls
new file mode 100644
index 0000000..da28fb7
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/cls
@@ -0,0 +1,13 @@
+#name : class ... end
+#contributor : hitesh <hitesh.jasani@gmail.com>
+#group : definitions
+# --
+class ${1:`(let ((fn (capitalize (file-name-nondirectory
+ (file-name-sans-extension
+ (or (buffer-file-name)
+ (buffer-name (current-buffer))))))))
+ (cond
+ ((string-match "_" fn) (replace-match "" nil nil fn))
+ (t fn)))`}
+ $0
+end
diff --git a/emacs.d/snippets/text-mode/ruby-mode/collect b/emacs.d/snippets/text-mode/ruby-mode/collect
new file mode 100644
index 0000000..934014a
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/collect
@@ -0,0 +1,4 @@
+#name : collect { |...| ... }
+#group : collections
+# --
+collect { |${e}| $0 } \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/dee b/emacs.d/snippets/text-mode/ruby-mode/dee
new file mode 100644
index 0000000..56d0a18
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/dee
@@ -0,0 +1,4 @@
+#name : deep_copy(...)
+#group : general
+# --
+Marshal.load(Marshal.dump($0)) \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/deli b/emacs.d/snippets/text-mode/ruby-mode/deli
new file mode 100644
index 0000000..843b154
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/deli
@@ -0,0 +1,4 @@
+#name : delete_if { |...| ... }
+#group : collections
+# --
+delete_if { |${e} $0 } \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/det b/emacs.d/snippets/text-mode/ruby-mode/det
new file mode 100644
index 0000000..6a17da9
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/det
@@ -0,0 +1,4 @@
+#name : detect { |...| ... }
+#group : collections
+# --
+detect { |${e}| $0 } \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/dow b/emacs.d/snippets/text-mode/ruby-mode/dow
new file mode 100644
index 0000000..3b65271
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/dow
@@ -0,0 +1,6 @@
+#name : downto(...) { |n| ... }
+#group : control structure
+# --
+downto(${0}) { |${n}|
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/ea b/emacs.d/snippets/text-mode/ruby-mode/ea
new file mode 100644
index 0000000..9cdf8dc
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/ea
@@ -0,0 +1,4 @@
+#name : each { |...| ... }
+#group : collections
+# --
+each { |${e}| $0 } \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/eac b/emacs.d/snippets/text-mode/ruby-mode/eac
new file mode 100644
index 0000000..f0d9cb1
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/eac
@@ -0,0 +1,4 @@
+#name : each_cons(...) { |...| ... }
+#group : collections
+# --
+each_cons(${1:2}) { |${group}| $0 } \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/eai b/emacs.d/snippets/text-mode/ruby-mode/eai
new file mode 100644
index 0000000..5b0ed67
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/eai
@@ -0,0 +1,4 @@
+#name : each_index { |i| ... }
+#group : collections
+# --
+each_index { |${i}| $0 } \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/eav b/emacs.d/snippets/text-mode/ruby-mode/eav
new file mode 100644
index 0000000..558e5b4
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/eav
@@ -0,0 +1,4 @@
+#name : each_value { |val| ... }
+#group : collections
+# --
+each_value { |${val}| $0 } \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/eawi b/emacs.d/snippets/text-mode/ruby-mode/eawi
new file mode 100644
index 0000000..edf8418
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/eawi
@@ -0,0 +1,4 @@
+#name : each_with_index { |e, i| ... }
+#group : collections
+# --
+each_with_index { |${e}, ${i}| $0 } \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/forin b/emacs.d/snippets/text-mode/ruby-mode/forin
new file mode 100644
index 0000000..36b4387
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/forin
@@ -0,0 +1,6 @@
+#name : for ... in ...; ... end
+#group : control structure
+# --
+for ${1:element} in ${2:collection}
+ $0
+end \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/if b/emacs.d/snippets/text-mode/ruby-mode/if
new file mode 100644
index 0000000..077b097
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/if
@@ -0,0 +1,6 @@
+#name : if ... end
+#group : control structure
+# --
+if ${1:condition}
+ $0
+end \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/ife b/emacs.d/snippets/text-mode/ruby-mode/ife
new file mode 100644
index 0000000..e57d395
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/ife
@@ -0,0 +1,8 @@
+#name : if ... else ... end
+#group : control structure
+# --
+if ${1:condition}
+ $2
+else
+ $3
+end \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/inject b/emacs.d/snippets/text-mode/ruby-mode/inject
new file mode 100644
index 0000000..37932e5
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/inject
@@ -0,0 +1,4 @@
+#name : inject(...) { |...| ... }
+#group : collections
+# --
+inject(${1:0}) { |${2:injection}, ${3:element}| $0 } \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/mm b/emacs.d/snippets/text-mode/ruby-mode/mm
new file mode 100644
index 0000000..3f62b10
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/mm
@@ -0,0 +1,6 @@
+#name : def method_missing ... end
+#group : definitions
+# --
+def method_missing(method, *args)
+ $0
+end \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/r b/emacs.d/snippets/text-mode/ruby-mode/r
new file mode 100644
index 0000000..2e7b797
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/r
@@ -0,0 +1,4 @@
+#name : attr_reader ...
+#group : definitions
+# --
+attr_reader : \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/rb b/emacs.d/snippets/text-mode/ruby-mode/rb
new file mode 100644
index 0000000..74d26dd
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/rb
@@ -0,0 +1,4 @@
+#name : /usr/bin/ruby -wKU
+#group : general
+# --
+#!/usr/bin/ruby -wKU
diff --git a/emacs.d/snippets/text-mode/ruby-mode/reject b/emacs.d/snippets/text-mode/ruby-mode/reject
new file mode 100644
index 0000000..c2501bc
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/reject
@@ -0,0 +1,4 @@
+#name : reject { |...| ... }
+#group : collections
+# --
+reject { |${1:element}| $0 } \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/req b/emacs.d/snippets/text-mode/ruby-mode/req
new file mode 100644
index 0000000..3e001ec
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/req
@@ -0,0 +1,4 @@
+#name : require "..."
+#group : general
+# --
+require "$0" \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/rreq b/emacs.d/snippets/text-mode/ruby-mode/rreq
new file mode 100644
index 0000000..0b9c6a4
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/rreq
@@ -0,0 +1,4 @@
+#name : require File.join(File.dirname(__FILE__), ...)
+#group : general
+# --
+require File.join(File.dirname(__FILE__), $0) \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/rw b/emacs.d/snippets/text-mode/ruby-mode/rw
new file mode 100644
index 0000000..a364675
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/rw
@@ -0,0 +1,4 @@
+#name : attr_accessor ...
+#group : definitions
+# --
+attr_accessor : \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/select b/emacs.d/snippets/text-mode/ruby-mode/select
new file mode 100644
index 0000000..78bca8f
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/select
@@ -0,0 +1,4 @@
+#name : select { |...| ... }
+#group : collections
+# --
+select { |${1:element}| $0 } \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/tim b/emacs.d/snippets/text-mode/ruby-mode/tim
new file mode 100644
index 0000000..0da115f
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/tim
@@ -0,0 +1,4 @@
+#name : times { |n| ... }
+#group : control structure
+# --
+times { |${n}| $0 } \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/until b/emacs.d/snippets/text-mode/ruby-mode/until
new file mode 100644
index 0000000..476966a
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/until
@@ -0,0 +1,6 @@
+#name : until ... end
+#group: control structure
+# --
+until ${condition}
+ $0
+end \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/upt b/emacs.d/snippets/text-mode/ruby-mode/upt
new file mode 100644
index 0000000..6fc6810
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/upt
@@ -0,0 +1,6 @@
+#name : upto(...) { |n| ... }
+#group : control structure
+# --
+upto(${n}) { |${i}|
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/w b/emacs.d/snippets/text-mode/ruby-mode/w
new file mode 100644
index 0000000..9edbfcb
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/w
@@ -0,0 +1,4 @@
+#name : attr_writer ...
+#group : definitions
+# --
+attr_writer : \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/when b/emacs.d/snippets/text-mode/ruby-mode/when
new file mode 100644
index 0000000..9b06f21
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/when
@@ -0,0 +1,6 @@
+#name : when ... end
+#group : control structure
+# --
+when ${condition}
+ $0
+end \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/while b/emacs.d/snippets/text-mode/ruby-mode/while
new file mode 100644
index 0000000..4c9ad35
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/while
@@ -0,0 +1,6 @@
+#name : while ... end
+#group : control structure
+# --
+while ${condition}
+ $0
+end \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/y b/emacs.d/snippets/text-mode/ruby-mode/y
new file mode 100644
index 0000000..0ddf0f9
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/y
@@ -0,0 +1,4 @@
+#name : :yields: arguments (rdoc)
+#group : general
+# --
+:yields: $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/zip b/emacs.d/snippets/text-mode/ruby-mode/zip
new file mode 100644
index 0000000..56f4266
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/zip
@@ -0,0 +1,4 @@
+#name : zip(...) { |...| ... }
+#group : collections
+# --
+zip(${enums}) { |${row}| $0 } \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/act b/emacs.d/snippets/text-mode/scala-mode/act
new file mode 100644
index 0000000..fce52fc
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/act
@@ -0,0 +1,10 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : def act = { ..}
+# --
+def act = {
+ loop {
+ react {
+ $0
+ }
+ }
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/act.arg b/emacs.d/snippets/text-mode/scala-mode/act.arg
new file mode 100644
index 0000000..fc6df9e
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/act.arg
@@ -0,0 +1,10 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : def act(arg: T) = { ..}
+# --
+def act(${1:arg}: ${2:type}) = {
+ loop {
+ react {
+ $0
+ }
+ }
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/actor b/emacs.d/snippets/text-mode/scala-mode/actor
new file mode 100644
index 0000000..d38a183
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/actor
@@ -0,0 +1,10 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : val a = actor { ..}
+# --
+val a = actor {
+ loop {
+ react {
+ $0
+ }
+ }
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/ano b/emacs.d/snippets/text-mode/scala-mode/ano
new file mode 100644
index 0000000..b949801
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/ano
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : (args) => ...
+# --
+($1) => ${2:body} $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/app b/emacs.d/snippets/text-mode/scala-mode/app
new file mode 100644
index 0000000..b89bab9
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/app
@@ -0,0 +1,6 @@
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : object name extends Application
+# --
+object ${1:name} extends Application {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/arr.new b/emacs.d/snippets/text-mode/scala-mode/arr.new
new file mode 100644
index 0000000..e3297ca
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/arr.new
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : Array[T](..)
+# --
+Array[${1:value}](${2:args}) $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/arr.val-new b/emacs.d/snippets/text-mode/scala-mode/arr.val-new
new file mode 100644
index 0000000..4de4720
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/arr.val-new
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : val a = Array[T](..)
+# --
+val ${1:arr} = Array[${2:value}](${3:args}) $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/asof b/emacs.d/snippets/text-mode/scala-mode/asof
new file mode 100644
index 0000000..3b2b209
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/asof
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : asInstanceOf[T]
+# --
+asInstanceOf[${1:type}] $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/ass b/emacs.d/snippets/text-mode/scala-mode/ass
new file mode 100644
index 0000000..653dcef
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/ass
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : assert(x === y)
+# --
+assert(${1:x} === ${2:y}) $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/ass.true b/emacs.d/snippets/text-mode/scala-mode/ass.true
new file mode 100644
index 0000000..923c518
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/ass.true
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : assert(true)
+# --
+assert(true) $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/at.author b/emacs.d/snippets/text-mode/scala-mode/at.author
new file mode 100644
index 0000000..82fe4cc
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/at.author
@@ -0,0 +1,4 @@
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : @author name
+# --
+@author ${1:name} $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/at.param b/emacs.d/snippets/text-mode/scala-mode/at.param
new file mode 100644
index 0000000..72b6e79
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/at.param
@@ -0,0 +1,4 @@
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : @param name description
+# --
+@param ${1:name} ${2:description} $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/at.return b/emacs.d/snippets/text-mode/scala-mode/at.return
new file mode 100644
index 0000000..9c3f41c
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/at.return
@@ -0,0 +1,4 @@
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : @return description
+# --
+@return ${1:description} $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/at.version b/emacs.d/snippets/text-mode/scala-mode/at.version
new file mode 100644
index 0000000..1158ce2
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/at.version
@@ -0,0 +1,4 @@
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : @version number
+# --
+@version ${1:0.1} $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/bang b/emacs.d/snippets/text-mode/scala-mode/bang
new file mode 100644
index 0000000..a547da8
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/bang
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : actor ! message
+# --
+${1:actor} ! ${2:message} $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/case b/emacs.d/snippets/text-mode/scala-mode/case
new file mode 100644
index 0000000..13d6aec
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/case
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : case pattern =>
+# --
+case ${1:pattern} => $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/case.match-all b/emacs.d/snippets/text-mode/scala-mode/case.match-all
new file mode 100644
index 0000000..028bf5f
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/case.match-all
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : case _ =>
+# --
+case _ => $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/cast b/emacs.d/snippets/text-mode/scala-mode/cast
new file mode 100644
index 0000000..3b2b209
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/cast
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : asInstanceOf[T]
+# --
+asInstanceOf[${1:type}] $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/cc b/emacs.d/snippets/text-mode/scala-mode/cc
new file mode 100644
index 0000000..7ed1142
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/cc
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : case class T(arg: A)
+# --
+case class ${1:name}(${2:arg}: ${3:type}) $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/cl b/emacs.d/snippets/text-mode/scala-mode/cl
new file mode 100644
index 0000000..1fd712c
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/cl
@@ -0,0 +1,6 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : class T { .. }
+# --
+class ${1:name} {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/cl.abs b/emacs.d/snippets/text-mode/scala-mode/cl.abs
new file mode 100644
index 0000000..402dec7
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/cl.abs
@@ -0,0 +1,6 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : abstract class T { .. }
+# --
+abstract class ${1:name} {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/cl.abs-arg b/emacs.d/snippets/text-mode/scala-mode/cl.abs-arg
new file mode 100644
index 0000000..fe29524
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/cl.abs-arg
@@ -0,0 +1,6 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : abstract class T(args) { .. }
+# --
+abstract class ${1:name}(${2:args}) {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/cl.arg b/emacs.d/snippets/text-mode/scala-mode/cl.arg
new file mode 100644
index 0000000..f82460f
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/cl.arg
@@ -0,0 +1,6 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : class T(args) { .. }
+# --
+class ${1:name}(${2:args}) {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/clof b/emacs.d/snippets/text-mode/scala-mode/clof
new file mode 100644
index 0000000..955726c
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/clof
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : classOf[T]
+# --
+classOf[${1:type}] $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/co b/emacs.d/snippets/text-mode/scala-mode/co
new file mode 100644
index 0000000..75b1f3b
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/co
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : case object T
+# --
+case object ${1:name} $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/cons b/emacs.d/snippets/text-mode/scala-mode/cons
new file mode 100644
index 0000000..a48e4ff
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/cons
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : element1 :: element2
+# --
+${1:element1} :: ${2:element2} $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/cons.nil b/emacs.d/snippets/text-mode/scala-mode/cons.nil
new file mode 100644
index 0000000..c288f93
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/cons.nil
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : element1 :: Nil
+# --
+${1:element1} :: Nil $0
diff --git a/emacs.d/snippets/text-mode/scala-mode/def.arg b/emacs.d/snippets/text-mode/scala-mode/def.arg
new file mode 100644
index 0000000..7765bbf
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/def.arg
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : def f(arg: T) = ...
+# --
+def ${1:name}(${2:args}) = $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/def.arg-body b/emacs.d/snippets/text-mode/scala-mode/def.arg-body
new file mode 100644
index 0000000..e6e278e
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/def.arg-body
@@ -0,0 +1,6 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : def f(arg: T) = {...}
+# --
+def ${1:name}(${2:args}) = {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/def.arg-ret b/emacs.d/snippets/text-mode/scala-mode/def.arg-ret
new file mode 100644
index 0000000..dddb9ce
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/def.arg-ret
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : def f(arg: T): R = ...
+# --
+def ${1:name}(${2:args}): ${3:Unit} = $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/def.arg-ret-body b/emacs.d/snippets/text-mode/scala-mode/def.arg-ret-body
new file mode 100644
index 0000000..862f7fd
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/def.arg-ret-body
@@ -0,0 +1,6 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : def f(arg: T): R = {...}
+# --
+def ${1:name}(${2:args}): ${3:Unit} = {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/def.body b/emacs.d/snippets/text-mode/scala-mode/def.body
new file mode 100644
index 0000000..858908c
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/def.body
@@ -0,0 +1,6 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : def f = {...}
+# --
+def ${1:name} = {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/def.ret b/emacs.d/snippets/text-mode/scala-mode/def.ret
new file mode 100644
index 0000000..e5483fb
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/def.ret
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : def f: R = ...
+# --
+def ${1:name}: ${2:Unit} = $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/def.ret-body b/emacs.d/snippets/text-mode/scala-mode/def.ret-body
new file mode 100644
index 0000000..f342e04
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/def.ret-body
@@ -0,0 +1,6 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : def f: R = {...}
+# --
+def ${1:name}: ${3:Unit} = {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/def.simple b/emacs.d/snippets/text-mode/scala-mode/def.simple
new file mode 100644
index 0000000..4814c73
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/def.simple
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : def f = ...
+# --
+def ${1:name} = $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/doc.class b/emacs.d/snippets/text-mode/scala-mode/doc.class
new file mode 100644
index 0000000..60442f1
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/doc.class
@@ -0,0 +1,8 @@
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : /** cls/trt/obj name */
+# --
+/**
+ * `(scala-mode-find-clstrtobj-name-doc)`
+ * ${1:description}
+ * $0
+ */ \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/doc.def b/emacs.d/snippets/text-mode/scala-mode/doc.def
new file mode 100644
index 0000000..8a3d614
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/doc.def
@@ -0,0 +1,6 @@
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : /** method name */
+# --
+/**
+ * `(scala-mode-def-and-args-doc)`
+ */ \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/doc.file b/emacs.d/snippets/text-mode/scala-mode/doc.file
new file mode 100644
index 0000000..7da4289
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/doc.file
@@ -0,0 +1,9 @@
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : /** file name */
+# --
+/**
+ * `(scala-mode-file-doc)`
+ * $0
+ * @author ${1:name}
+ * @version ${2:0.1}
+ */ \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/doc.file-scala b/emacs.d/snippets/text-mode/scala-mode/doc.file-scala
new file mode 100644
index 0000000..6719348
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/doc.file-scala
@@ -0,0 +1,16 @@
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : /** scala file */
+# --
+/* __ *\
+** ________ ___ / / ___ Scala $3 **
+** / __/ __// _ | / / / _ | (c) 2005-`(format-time-string "%Y")` , LAMP/EPFL **
+** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
+** /____/\___/_/ |_/____/_/ | | **
+** |/ **
+\* */
+/**
+ * $0
+ * @author ${1:name}
+ * @version ${2:0.1}
+ * $Id$
+ */ \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/doc.file-scala-api b/emacs.d/snippets/text-mode/scala-mode/doc.file-scala-api
new file mode 100644
index 0000000..4a762f5
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/doc.file-scala-api
@@ -0,0 +1,16 @@
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : /** scala api file */
+# --
+/* __ *\
+** ________ ___ / / ___ Scala API **
+** / __/ __// _ | / / / _ | (c) 2005-`(format-time-string "%Y")`, LAMP/EPFL **
+** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
+** /____/\___/_/ |_/____/_/ | | **
+** |/ **
+\* */
+/**
+ * $0
+ * @author ${1:name}
+ * @version ${2:0.1}
+ * $Id$
+ */ \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/doc.scaladoc b/emacs.d/snippets/text-mode/scala-mode/doc.scaladoc
new file mode 100644
index 0000000..038428c
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/doc.scaladoc
@@ -0,0 +1,7 @@
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : /** ... */
+# --
+/**
+ * ${1:description}
+ * $0
+ */ \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/expect b/emacs.d/snippets/text-mode/scala-mode/expect
new file mode 100644
index 0000000..94c742c
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/expect
@@ -0,0 +1,6 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : expect(value) { ..}
+# --
+expect(${1:reply}) {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/ext b/emacs.d/snippets/text-mode/scala-mode/ext
new file mode 100644
index 0000000..e256317
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/ext
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : extends T
+# --
+extends $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/for.extract b/emacs.d/snippets/text-mode/scala-mode/for.extract
new file mode 100644
index 0000000..60f1155
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/for.extract
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : x <- xs
+# --
+${1:x} <- ${2:xs} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/for.if b/emacs.d/snippets/text-mode/scala-mode/for.if
new file mode 100644
index 0000000..f44c544
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/for.if
@@ -0,0 +1,6 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : for (x <- xs if guard) { ... }
+# --
+for (${1:x} <- ${2:xs} if ${3:guard}) {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/for.loop b/emacs.d/snippets/text-mode/scala-mode/for.loop
new file mode 100644
index 0000000..050d5e8
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/for.loop
@@ -0,0 +1,6 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : for (x <- xs) { ... }
+# --
+for (${1:x} <- ${2:xs}) {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/for.multi b/emacs.d/snippets/text-mode/scala-mode/for.multi
new file mode 100644
index 0000000..c512067
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/for.multi
@@ -0,0 +1,9 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : for {x <- xs \ y <- ys} { yield }
+# --
+for {
+ ${1:x} <- ${2:xs}
+ ${3:x} <- ${4:xs}
+} {
+ yield $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/foreach b/emacs.d/snippets/text-mode/scala-mode/foreach
new file mode 100644
index 0000000..cafdd00
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/foreach
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : foreach(x => ..)
+# --
+foreach(${1:x} => ${2:body}) $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/hmap.new b/emacs.d/snippets/text-mode/scala-mode/hmap.new
new file mode 100644
index 0000000..dd564a0
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/hmap.new
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : new HashMap[K, V]
+# --
+new HashMap[${1:key}, ${2:value}] $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/hmap.val-new b/emacs.d/snippets/text-mode/scala-mode/hmap.val-new
new file mode 100644
index 0000000..2f4a3c2
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/hmap.val-new
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : val m = new HashMap[K, V]
+# --
+val ${1:m} = new HashMap[${2:key}, ${3:value}] $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/hset.new b/emacs.d/snippets/text-mode/scala-mode/hset.new
new file mode 100644
index 0000000..d1be3ee
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/hset.new
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : new HashSet[K]
+# --
+new HashSet[${1:key}] $0
diff --git a/emacs.d/snippets/text-mode/scala-mode/hset.val-new b/emacs.d/snippets/text-mode/scala-mode/hset.val-new
new file mode 100644
index 0000000..ba792a2
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/hset.val-new
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : val m = new HashSet[K]
+# --
+val ${1:m} = new HashSet[${2:key}] $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/if b/emacs.d/snippets/text-mode/scala-mode/if
new file mode 100644
index 0000000..24891c0
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/if
@@ -0,0 +1,6 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : if (cond) { .. }
+# --
+if (${1:condition}) {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/if.else b/emacs.d/snippets/text-mode/scala-mode/if.else
new file mode 100644
index 0000000..ebff471
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/if.else
@@ -0,0 +1,8 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : if (cond) { .. } else { .. }
+# --
+if (${1:condition}) {
+ $2
+} else {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/imp b/emacs.d/snippets/text-mode/scala-mode/imp
new file mode 100644
index 0000000..cf5efa1
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/imp
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : import ..
+# --
+import $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/intercept b/emacs.d/snippets/text-mode/scala-mode/intercept
new file mode 100644
index 0000000..4725eaa
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/intercept
@@ -0,0 +1,6 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : intercept(classOf[T]) { ..}
+# --
+intercept(classOf[${1:Exception]}) {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/isof b/emacs.d/snippets/text-mode/scala-mode/isof
new file mode 100644
index 0000000..a3538c8
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/isof
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : isInstanceOf[T]
+# --
+isInstanceOf[${1:type}] $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/ls.new b/emacs.d/snippets/text-mode/scala-mode/ls.new
new file mode 100644
index 0000000..7a28e61
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/ls.new
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : List(..)
+# --
+List(${1:args}, ${2:args}) $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/ls.val-new b/emacs.d/snippets/text-mode/scala-mode/ls.val-new
new file mode 100644
index 0000000..37138f0
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/ls.val-new
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : val l = List(..)
+# --
+val ${1:l} = List(${2:args}, ${3:args}) $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/main b/emacs.d/snippets/text-mode/scala-mode/main
new file mode 100644
index 0000000..ad314b3
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/main
@@ -0,0 +1,6 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name: def main(args: Array[String]) = { ... }
+# --
+def main(args: Array[String]) = {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/map b/emacs.d/snippets/text-mode/scala-mode/map
new file mode 100644
index 0000000..17322a5
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/map
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : map(x => ..)
+# --
+map(${1:x} => ${2:body}) $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/map.new b/emacs.d/snippets/text-mode/scala-mode/map.new
new file mode 100644
index 0000000..21c95fb
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/map.new
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : Map(key -> value)
+# --
+Map(${1:key} -> ${2:value}) $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/match b/emacs.d/snippets/text-mode/scala-mode/match
new file mode 100644
index 0000000..e85fac1
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/match
@@ -0,0 +1,6 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : cc match { .. }
+# --
+${1:cc} match {
+ case ${2:pattern} => $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/match.can b/emacs.d/snippets/text-mode/scala-mode/match.can
new file mode 100644
index 0000000..77d475b
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/match.can
@@ -0,0 +1,11 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : can match { case Full(res) => .. }
+# --
+${1:option} match {
+ case Full(res) => $0
+
+ case Empty =>
+
+ case Failure(msg, _, _) =>
+
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/match.option b/emacs.d/snippets/text-mode/scala-mode/match.option
new file mode 100644
index 0000000..5b098f1
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/match.option
@@ -0,0 +1,8 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : option match { case None => .. }
+# --
+${1:option} match {
+ case None => $0
+ case Some(res) =>
+
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/mix b/emacs.d/snippets/text-mode/scala-mode/mix
new file mode 100644
index 0000000..5261e32
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/mix
@@ -0,0 +1,6 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : trait T { .. }
+# --
+trait ${1:name} {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/ob b/emacs.d/snippets/text-mode/scala-mode/ob
new file mode 100644
index 0000000..efbc82e
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/ob
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : object name extends T
+# --
+object ${1:name} extends ${2:type} $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/pac b/emacs.d/snippets/text-mode/scala-mode/pac
new file mode 100644
index 0000000..ed32216
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/pac
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : package ..
+# --
+package $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/pr.newline b/emacs.d/snippets/text-mode/scala-mode/pr.newline
new file mode 100644
index 0000000..77088cb
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/pr.newline
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : println(..)
+# --
+println(${1:obj}) $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/pr.simple b/emacs.d/snippets/text-mode/scala-mode/pr.simple
new file mode 100644
index 0000000..3a73f9d
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/pr.simple
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : print(..)
+# --
+print(${1:obj}) $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/pr.string b/emacs.d/snippets/text-mode/scala-mode/pr.string
new file mode 100644
index 0000000..9c06ef7
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/pr.string
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : println("..")
+# --
+println("${1:msg}") $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/pr.trace b/emacs.d/snippets/text-mode/scala-mode/pr.trace
new file mode 100644
index 0000000..9a0579c
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/pr.trace
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : println("obj: " + obj)
+# --
+println("${1:obj}: " + ${1:obj}) $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/pri b/emacs.d/snippets/text-mode/scala-mode/pri
new file mode 100644
index 0000000..643ef2c
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/pri
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : private
+# --
+private $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/pri.param b/emacs.d/snippets/text-mode/scala-mode/pri.param
new file mode 100644
index 0000000..e53638a
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/pri.param
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : private[this]
+# --
+private[${1:this}] $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/pro b/emacs.d/snippets/text-mode/scala-mode/pro
new file mode 100644
index 0000000..e4b7b59
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/pro
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : protected
+# --
+protected $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/pro.param b/emacs.d/snippets/text-mode/scala-mode/pro.param
new file mode 100644
index 0000000..712b050
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/pro.param
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : protected[this]
+# --
+protected[${1:this}] $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/suite b/emacs.d/snippets/text-mode/scala-mode/suite
new file mode 100644
index 0000000..a65cea7
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/suite
@@ -0,0 +1,8 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : class T extends Suite { .. }
+# --
+import org.scalatest._
+
+class ${1:name} extends Suite {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/test b/emacs.d/snippets/text-mode/scala-mode/test
new file mode 100644
index 0000000..c4d13f6
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/test
@@ -0,0 +1,7 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : @Test def testX = ...
+# --
+//@Test
+def test${1:name} = {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/throw b/emacs.d/snippets/text-mode/scala-mode/throw
new file mode 100644
index 0000000..f9a4932
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/throw
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : throw new Exception
+# --
+throw new ${1:Exception}(${2:msg}) $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/tr b/emacs.d/snippets/text-mode/scala-mode/tr
new file mode 100644
index 0000000..68d8162
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/tr
@@ -0,0 +1,6 @@
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : trait T { .. }
+# --
+trait ${1:name} {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/tr.ext b/emacs.d/snippets/text-mode/scala-mode/tr.ext
new file mode 100644
index 0000000..2b82154
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/tr.ext
@@ -0,0 +1,6 @@
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : trait T extends C { .. }
+# --
+trait ${1:name} extends ${2:class} {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/tr.ext-with b/emacs.d/snippets/text-mode/scala-mode/tr.ext-with
new file mode 100644
index 0000000..8edb409
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/tr.ext-with
@@ -0,0 +1,6 @@
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : trait T1 extends C with T2 { .. }
+# --
+trait ${1:name} extends ${2:class} with ${3:trait} {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/tr.with b/emacs.d/snippets/text-mode/scala-mode/tr.with
new file mode 100644
index 0000000..19801eb
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/tr.with
@@ -0,0 +1,6 @@
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : trait T1 with T2 { .. }
+# --
+trait ${1:name} with ${2:trait} {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/try b/emacs.d/snippets/text-mode/scala-mode/try
new file mode 100644
index 0000000..0c33f10
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/try
@@ -0,0 +1,9 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : try { .. } catch { case e => ..}
+# --
+try {
+ $0
+} catch {
+ case ${1:e}: ${2:Exception} =>
+ ${1:println(\"ERROR: \" + e) // TODO: handle exception}\n}
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/try.catch-finally b/emacs.d/snippets/text-mode/scala-mode/try.catch-finally
new file mode 100644
index 0000000..f146a20
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/try.catch-finally
@@ -0,0 +1,11 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : try { .. } catch { case e => ..} finally { ..}
+# --
+try {
+ $0
+} catch {
+ case ${1:e}: ${2:Exception} =>
+ ${1:println(\"ERROR: \" + e) // TODO: handle exception}\n}
+} finally {
+
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/try.finally b/emacs.d/snippets/text-mode/scala-mode/try.finally
new file mode 100644
index 0000000..63625f2
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/try.finally
@@ -0,0 +1,8 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : try { .. } finally { .. }
+# --
+try {
+
+} finally {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/tup.arrow b/emacs.d/snippets/text-mode/scala-mode/tup.arrow
new file mode 100644
index 0000000..4e7ad69
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/tup.arrow
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : element1 -> element2
+# --
+${1:element1} -> ${2:element2} $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/tup.paren b/emacs.d/snippets/text-mode/scala-mode/tup.paren
new file mode 100644
index 0000000..4bff202
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/tup.paren
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : (element1, element2)
+# --
+(${1:element1}, ${2:element2}) $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/val b/emacs.d/snippets/text-mode/scala-mode/val
new file mode 100644
index 0000000..3067cd4
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/val
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : val name = ..
+# --
+val ${1:name} = ${2:obj} $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/val.new b/emacs.d/snippets/text-mode/scala-mode/val.new
new file mode 100644
index 0000000..35a0c6a
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/val.new
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : val name = new ..
+# --
+val ${1:name} = new ${2:obj} $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/val.ret b/emacs.d/snippets/text-mode/scala-mode/val.ret
new file mode 100644
index 0000000..4bf4f10
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/val.ret
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : val name: T = ..
+# --
+val ${1:name}: ${2:T} = ${3:obj} $0
diff --git a/emacs.d/snippets/text-mode/scala-mode/var b/emacs.d/snippets/text-mode/scala-mode/var
new file mode 100644
index 0000000..662d6c8
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/var
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : var name = ..
+# --
+var ${1:name} = ${2:obj} $0
diff --git a/emacs.d/snippets/text-mode/scala-mode/var.new b/emacs.d/snippets/text-mode/scala-mode/var.new
new file mode 100644
index 0000000..d681c4a
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/var.new
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : var name = new ..
+# --
+var ${1:name} = new ${2:obj} $0
diff --git a/emacs.d/snippets/text-mode/scala-mode/var.ret b/emacs.d/snippets/text-mode/scala-mode/var.ret
new file mode 100644
index 0000000..9d0ac3a
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/var.ret
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : var name: T = ..
+# --
+var ${1:name}: ${2:T} = ${3:obj} $0
diff --git a/emacs.d/snippets/text-mode/scala-mode/whi b/emacs.d/snippets/text-mode/scala-mode/whi
new file mode 100644
index 0000000..082c139
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/whi
@@ -0,0 +1,6 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : while(cond) { .. }
+# --
+while (${1:condition}) {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/scala-mode/with b/emacs.d/snippets/text-mode/scala-mode/with
new file mode 100644
index 0000000..6bd94e4
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/with
@@ -0,0 +1,4 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : with T
+# --
+with $0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/snippet-mode/field b/emacs.d/snippets/text-mode/snippet-mode/field
new file mode 100644
index 0000000..bdaf0d4
--- /dev/null
+++ b/emacs.d/snippets/text-mode/snippet-mode/field
@@ -0,0 +1,5 @@
+# name : ${ ... } field
+# contributor : joaotavora
+# key : $f
+# --
+\${${1:${2:n}:}$3${4:\$(${5:lisp-fn})}\}$0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/snippet-mode/mirror b/emacs.d/snippets/text-mode/snippet-mode/mirror
new file mode 100644
index 0000000..1c32eeb
--- /dev/null
+++ b/emacs.d/snippets/text-mode/snippet-mode/mirror
@@ -0,0 +1,5 @@
+# name : ${n:$(...)} mirror
+# key : $m
+# contributor : joaotavora
+# --
+\${${2:n}:${4:\$(${5:reflection-fn})}\}$0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/snippet-mode/vars b/emacs.d/snippets/text-mode/snippet-mode/vars
new file mode 100644
index 0000000..ea5a8c7
--- /dev/null
+++ b/emacs.d/snippets/text-mode/snippet-mode/vars
@@ -0,0 +1,9 @@
+# name : Snippet header
+# contributor : joaotavora
+# --
+# name : $1${2:
+# key : ${3:expand-key}}${4:
+# group : ${5:group}}
+# contributor : $6
+# --
+$0 \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/sql-mode/column b/emacs.d/snippets/text-mode/sql-mode/column
new file mode 100644
index 0000000..90e4963
--- /dev/null
+++ b/emacs.d/snippets/text-mode/sql-mode/column
@@ -0,0 +1,4 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : , ColumnName ColumnType NOT NULL...
+# --
+ , ${1:Name} ${2:Type} ${3:NOT NULL}
diff --git a/emacs.d/snippets/text-mode/sql-mode/constraint b/emacs.d/snippets/text-mode/sql-mode/constraint
new file mode 100644
index 0000000..989e508
--- /dev/null
+++ b/emacs.d/snippets/text-mode/sql-mode/constraint
@@ -0,0 +1,4 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : CONSTRAINT [..] PRIMARY KEY ...
+# --
+CONSTRAINT [${1:PK_Name}] PRIMARY KEY ${2:CLUSTERED} ([${3:ColumnName}])
diff --git a/emacs.d/snippets/text-mode/sql-mode/constraint.1 b/emacs.d/snippets/text-mode/sql-mode/constraint.1
new file mode 100644
index 0000000..98d89f0
--- /dev/null
+++ b/emacs.d/snippets/text-mode/sql-mode/constraint.1
@@ -0,0 +1,4 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : CONSTRAINT [..] FOREIGN KEY ...
+# --
+CONSTRAINT [${1:FK_Name}] FOREIGN KEY ${2:CLUSTERED} ([${3:ColumnName}])
diff --git a/emacs.d/snippets/text-mode/sql-mode/create b/emacs.d/snippets/text-mode/sql-mode/create
new file mode 100644
index 0000000..a34624d
--- /dev/null
+++ b/emacs.d/snippets/text-mode/sql-mode/create
@@ -0,0 +1,10 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : create table ...
+# --
+CREATE TABLE [${1:dbo}].[${2:TableName}]
+(
+ ${3:Id} ${4:INT IDENTITY(1,1)} ${5:NOT NULL}
+$0
+ CONSTRAINT [${6:PK_}] PRIMARY KEY ${7:CLUSTERED} ([$3])
+)
+GO
diff --git a/emacs.d/snippets/text-mode/sql-mode/create.1 b/emacs.d/snippets/text-mode/sql-mode/create.1
new file mode 100644
index 0000000..1323daf
--- /dev/null
+++ b/emacs.d/snippets/text-mode/sql-mode/create.1
@@ -0,0 +1,12 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : create procedure ...
+# --
+CREATE PROCEDURE [${1:dbo}].[${2:Name}]
+(
+ $3 $4 = ${5:NULL} ${6:OUTPUT}
+)
+AS
+BEGIN
+$0
+END
+GO
diff --git a/emacs.d/snippets/text-mode/sql-mode/references b/emacs.d/snippets/text-mode/sql-mode/references
new file mode 100644
index 0000000..f2e4eab
--- /dev/null
+++ b/emacs.d/snippets/text-mode/sql-mode/references
@@ -0,0 +1,4 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : REFERENCES ...
+# --
+REFERENCES ${1:TableName}([${2:ColumnName}])
diff --git a/emacs.d/snippets/text-mode/time b/emacs.d/snippets/text-mode/time
new file mode 100644
index 0000000..d744f1a
--- /dev/null
+++ b/emacs.d/snippets/text-mode/time
@@ -0,0 +1,3 @@
+#name : (current time)
+# --
+`(current-time-string)` \ No newline at end of file