summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Luaces Fernández <aluaces@udc.es>2015-05-13 19:45:06 +0100
committerAlberto Luaces Fernández <aluaces@udc.es>2015-05-13 19:45:06 +0100
commitf4123b269fe5af6d04d68a643d16fea9fa388e2d (patch)
tree4361a69e833eaa18c49cad6bf594c9cddfcc6f89
Import yasnippet-snippets_0~git20150512.orig.tar.gz
[dgit import orig yasnippet-snippets_0~git20150512.orig.tar.gz]
-rw-r--r--.gitignore1
-rw-r--r--.nosearch1
-rw-r--r--CONTRIBUTORS.txt4
-rw-r--r--LICENSE18
-rw-r--r--README.md40
-rw-r--r--antlr-mode/project8
-rw-r--r--antlr-mode/property6
-rw-r--r--antlr-mode/target7
-rw-r--r--applescript-mode/.yas-parents1
-rw-r--r--c++-mode/.yas-parents1
-rw-r--r--c++-mode/assert5
-rw-r--r--c++-mode/beginend5
-rw-r--r--c++-mode/boost_require7
-rw-r--r--c++-mode/cerr5
-rw-r--r--c++-mode/cin5
-rw-r--r--c++-mode/class11
-rw-r--r--c++-mode/const_[]8
-rw-r--r--c++-mode/constructor8
-rw-r--r--c++-mode/cout8
-rw-r--r--c++-mode/cpp5
-rw-r--r--c++-mode/cstd5
-rw-r--r--c++-mode/d+=5
-rw-r--r--c++-mode/d_operator5
-rw-r--r--c++-mode/d_operator[]5
-rw-r--r--c++-mode/d_operator[]_const5
-rw-r--r--c++-mode/d_operator_istream5
-rw-r--r--c++-mode/d_operator_ostream5
-rw-r--r--c++-mode/delete5
-rw-r--r--c++-mode/delete[]5
-rw-r--r--c++-mode/doc7
-rw-r--r--c++-mode/dynamic_casting5
-rw-r--r--c++-mode/enum7
-rw-r--r--c++-mode/fixture9
-rw-r--r--c++-mode/fori7
-rw-r--r--c++-mode/friend5
-rw-r--r--c++-mode/fun_declaration5
-rw-r--r--c++-mode/function8
-rw-r--r--c++-mode/gtest6
-rw-r--r--c++-mode/ignore5
-rw-r--r--c++-mode/inline5
-rw-r--r--c++-mode/io5
-rw-r--r--c++-mode/iterator5
-rw-r--r--c++-mode/map5
-rw-r--r--c++-mode/module8
-rw-r--r--c++-mode/namespace9
-rw-r--r--c++-mode/ns4
-rw-r--r--c++-mode/operator!=9
-rw-r--r--c++-mode/operator+11
-rw-r--r--c++-mode/operator+=10
-rw-r--r--c++-mode/operator=14
-rw-r--r--c++-mode/operator==9
-rw-r--r--c++-mode/operator[]9
-rw-r--r--c++-mode/operator_istream10
-rw-r--r--c++-mode/operator_ostream10
-rw-r--r--c++-mode/ostream5
-rw-r--r--c++-mode/pack10
-rw-r--r--c++-mode/private6
-rw-r--r--c++-mode/protected6
-rw-r--r--c++-mode/public6
-rw-r--r--c++-mode/sstream5
-rw-r--r--c++-mode/std5
-rw-r--r--c++-mode/std_colon5
-rw-r--r--c++-mode/str5
-rw-r--r--c++-mode/template6
-rw-r--r--c++-mode/test case9
-rw-r--r--c++-mode/test_main10
-rw-r--r--c++-mode/test_suite10
-rw-r--r--c++-mode/this5
-rw-r--r--c++-mode/throw5
-rw-r--r--c++-mode/try10
-rw-r--r--c++-mode/tryw9
-rw-r--r--c++-mode/using5
-rw-r--r--c++-mode/vector5
-rw-r--r--c-mode/.yas-parents1
-rw-r--r--c-mode/assert6
-rw-r--r--c-mode/compile5
-rw-r--r--c-mode/define5
-rw-r--r--c-mode/fopen4
-rw-r--r--c-mode/malloc6
-rw-r--r--c-mode/packed5
-rw-r--r--c-mode/printf5
-rw-r--r--c-mode/stdio5
-rw-r--r--c-mode/stdlib5
-rw-r--r--c-mode/string5
-rw-r--r--c-mode/union7
-rw-r--r--c-mode/unistd5
-rw-r--r--cc-mode/case8
-rw-r--r--cc-mode/do7
-rw-r--r--cc-mode/else7
-rw-r--r--cc-mode/fopen5
-rw-r--r--cc-mode/for7
-rw-r--r--cc-mode/for_n8
-rw-r--r--cc-mode/if7
-rw-r--r--cc-mode/ifdef9
-rw-r--r--cc-mode/inc5
-rw-r--r--cc-mode/inc.15
-rw-r--r--cc-mode/main9
-rw-r--r--cc-mode/math6
-rw-r--r--cc-mode/once9
-rw-r--r--cc-mode/printf6
-rw-r--r--cc-mode/struct7
-rw-r--r--cc-mode/switch11
-rw-r--r--cc-mode/ternary5
-rw-r--r--cc-mode/typedef5
-rw-r--r--cc-mode/while7
-rw-r--r--chef-mode/action5
-rw-r--r--chef-mode/bash14
-rw-r--r--chef-mode/cookbook_file10
-rw-r--r--chef-mode/cron10
-rw-r--r--chef-mode/cronf16
-rw-r--r--chef-mode/deploy18
-rw-r--r--chef-mode/directory11
-rw-r--r--chef-mode/directoryf13
-rw-r--r--chef-mode/env7
-rw-r--r--chef-mode/execute10
-rw-r--r--chef-mode/executef18
-rw-r--r--chef-mode/file11
-rw-r--r--chef-mode/filef14
-rw-r--r--chef-mode/git11
-rw-r--r--chef-mode/group10
-rw-r--r--chef-mode/http_request7
-rw-r--r--chef-mode/http_requestp10
-rw-r--r--chef-mode/ignore_failure5
-rw-r--r--chef-mode/inc5
-rw-r--r--chef-mode/link7
-rw-r--r--chef-mode/linkf10
-rw-r--r--chef-mode/log5
-rw-r--r--chef-mode/machine10
-rw-r--r--chef-mode/meta10
-rw-r--r--chef-mode/not_if5
-rw-r--r--chef-mode/notifies5
-rw-r--r--chef-mode/only_if5
-rw-r--r--chef-mode/pac8
-rw-r--r--chef-mode/pak8
-rw-r--r--chef-mode/provider5
-rw-r--r--chef-mode/python11
-rw-r--r--chef-mode/remote_file11
-rw-r--r--chef-mode/retries6
-rw-r--r--chef-mode/role12
-rw-r--r--chef-mode/ruby9
-rw-r--r--chef-mode/script15
-rw-r--r--chef-mode/service8
-rw-r--r--chef-mode/servicep9
-rw-r--r--chef-mode/subscribes5
-rw-r--r--chef-mode/supports5
-rw-r--r--chef-mode/template10
-rw-r--r--chef-mode/templatev11
-rw-r--r--chef-mode/user14
l---------cider-repl-mode1
-rw-r--r--clojure-mode/.yas-parents1
-rw-r--r--clojure-mode/bench7
-rw-r--r--clojure-mode/bp4
-rw-r--r--clojure-mode/def4
-rw-r--r--clojure-mode/defm7
-rw-r--r--clojure-mode/defn7
-rw-r--r--clojure-mode/defr8
-rw-r--r--clojure-mode/deft8
-rw-r--r--clojure-mode/doseq6
-rw-r--r--clojure-mode/fn5
-rw-r--r--clojure-mode/for5
-rw-r--r--clojure-mode/if8
-rw-r--r--clojure-mode/ifl7
-rw-r--r--clojure-mode/import4
-rw-r--r--clojure-mode/is5
-rw-r--r--clojure-mode/let7
-rw-r--r--clojure-mode/map5
-rw-r--r--clojure-mode/map.lambda5
-rw-r--r--clojure-mode/mdoc5
-rw-r--r--clojure-mode/ns22
-rw-r--r--clojure-mode/opts6
-rw-r--r--clojure-mode/pr6
-rw-r--r--clojure-mode/print6
-rw-r--r--clojure-mode/reduce5
-rw-r--r--clojure-mode/require4
-rw-r--r--clojure-mode/test6
-rw-r--r--clojure-mode/try7
-rw-r--r--clojure-mode/use4
-rw-r--r--clojure-mode/when7
-rw-r--r--clojure-mode/whenl7
-rw-r--r--cmake-mode/add_executable6
-rw-r--r--cmake-mode/add_library6
-rw-r--r--cmake-mode/cmake_minimum_required5
-rw-r--r--cmake-mode/foreach7
-rw-r--r--cmake-mode/function7
-rw-r--r--cmake-mode/if7
-rw-r--r--cmake-mode/ifelse9
-rw-r--r--cmake-mode/include5
-rw-r--r--cmake-mode/macro7
-rw-r--r--cmake-mode/message5
-rw-r--r--cmake-mode/option5
-rw-r--r--cmake-mode/project5
-rw-r--r--cmake-mode/set5
-rw-r--r--conf-unix-mode/.yas-parents1
-rw-r--r--conf-unix-mode/section8
-rw-r--r--cperl-mode/.yas-parents1
-rw-r--r--cpp-omnet-mode/EV5
-rw-r--r--cpp-omnet-mode/emit_signal5
-rw-r--r--cpp-omnet-mode/intuniform5
-rw-r--r--cpp-omnet-mode/math5
-rw-r--r--cpp-omnet-mode/nan5
-rw-r--r--cpp-omnet-mode/omnet5
-rw-r--r--cpp-omnet-mode/parameter_omnetpp5
-rw-r--r--cpp-omnet-mode/scheduleAt5
-rw-r--r--cpp-omnet-mode/uniform6
-rw-r--r--csharp-mode/.yas-parents1
-rw-r--r--csharp-mode/attrib8
-rw-r--r--csharp-mode/attrib.122
-rw-r--r--csharp-mode/attrib.222
-rw-r--r--csharp-mode/class22
-rw-r--r--csharp-mode/comment7
-rw-r--r--csharp-mode/comment.15
-rw-r--r--csharp-mode/comment.25
-rw-r--r--csharp-mode/comment.35
-rw-r--r--csharp-mode/method11
-rw-r--r--csharp-mode/namespace8
-rw-r--r--csharp-mode/prop17
-rw-r--r--csharp-mode/region7
-rw-r--r--csharp-mode/using5
-rw-r--r--csharp-mode/using.15
-rw-r--r--csharp-mode/using.25
-rw-r--r--css-mode/bg3
-rw-r--r--css-mode/bg.13
-rw-r--r--css-mode/bor3
-rw-r--r--css-mode/cl4
-rw-r--r--css-mode/disp.block4
-rw-r--r--css-mode/disp.inline4
-rw-r--r--css-mode/disp.none4
-rw-r--r--css-mode/ff4
-rw-r--r--css-mode/fs4
-rw-r--r--css-mode/mar.bottom4
-rw-r--r--css-mode/mar.left4
-rw-r--r--css-mode/mar.mar4
-rw-r--r--css-mode/mar.margin4
-rw-r--r--css-mode/mar.right4
-rw-r--r--css-mode/mar.top4
-rw-r--r--css-mode/pad.bottom4
-rw-r--r--css-mode/pad.left4
-rw-r--r--css-mode/pad.pad4
-rw-r--r--css-mode/pad.padding4
-rw-r--r--css-mode/pad.right4
-rw-r--r--css-mode/pad.top4
-rw-r--r--css-mode/v10
-rw-r--r--elixir-mode/.yas-parents1
-rw-r--r--elixir-mode/case7
-rw-r--r--elixir-mode/cond7
-rw-r--r--elixir-mode/def7
-rw-r--r--elixir-mode/defmacro7
-rw-r--r--elixir-mode/defmacrop7
-rw-r--r--elixir-mode/defmodule7
-rw-r--r--elixir-mode/defp7
-rw-r--r--elixir-mode/doc7
-rw-r--r--elixir-mode/mdoc7
-rw-r--r--emacs-lisp-mode/.read_me7
-rwxr-xr-xemacs-lisp-mode/add-hook6
-rwxr-xr-xemacs-lisp-mode/and6
-rwxr-xr-xemacs-lisp-mode/append5
-rwxr-xr-xemacs-lisp-mode/apply5
-rwxr-xr-xemacs-lisp-mode/aref5
-rwxr-xr-xemacs-lisp-mode/aset5
-rwxr-xr-xemacs-lisp-mode/assq5
-rwxr-xr-xemacs-lisp-mode/autoload5
-rwxr-xr-xemacs-lisp-mode/backward-char6
-rwxr-xr-xemacs-lisp-mode/beginning-of-line6
-rwxr-xr-xemacs-lisp-mode/bounds-of-thing-at-point6
-rwxr-xr-xemacs-lisp-mode/buffer-file-name6
-rwxr-xr-xemacs-lisp-mode/buffer-modified-p6
-rwxr-xr-xemacs-lisp-mode/buffer-substring6
-rwxr-xr-xemacs-lisp-mode/buffer-substring-no-properties6
-rwxr-xr-xemacs-lisp-mode/car5
-rwxr-xr-xemacs-lisp-mode/cdr5
-rwxr-xr-xemacs-lisp-mode/concat5
-rwxr-xr-xemacs-lisp-mode/cond8
-rwxr-xr-xemacs-lisp-mode/condition-case6
-rwxr-xr-xemacs-lisp-mode/cons5
-rwxr-xr-xemacs-lisp-mode/consp5
-rwxr-xr-xemacs-lisp-mode/copy-directory6
-rwxr-xr-xemacs-lisp-mode/copy-file6
-rwxr-xr-xemacs-lisp-mode/current-buffer6
-rwxr-xr-xemacs-lisp-mode/custom-autoload6
-rwxr-xr-xemacs-lisp-mode/defalias5
-rwxr-xr-xemacs-lisp-mode/defcustom5
-rwxr-xr-xemacs-lisp-mode/define-key6
-rwxr-xr-xemacs-lisp-mode/defsubst5
-rw-r--r--emacs-lisp-mode/defun7
-rwxr-xr-xemacs-lisp-mode/defvar4
-rwxr-xr-xemacs-lisp-mode/delete-char6
-rwxr-xr-xemacs-lisp-mode/delete-directory6
-rwxr-xr-xemacs-lisp-mode/delete-file6
-rwxr-xr-xemacs-lisp-mode/delete-region6
-rwxr-xr-xemacs-lisp-mode/directory-files6
-rw-r--r--emacs-lisp-mode/dired.process_marked16
-rwxr-xr-xemacs-lisp-mode/dolist5
-rwxr-xr-xemacs-lisp-mode/end-of-line6
-rwxr-xr-xemacs-lisp-mode/eq5
-rwxr-xr-xemacs-lisp-mode/equal5
-rwxr-xr-xemacs-lisp-mode/error5
-rwxr-xr-xemacs-lisp-mode/expand-file-name6
-rwxr-xr-xemacs-lisp-mode/f5
-rwxr-xr-xemacs-lisp-mode/fboundp5
-rwxr-xr-xemacs-lisp-mode/file-name-directory6
-rwxr-xr-xemacs-lisp-mode/file-name-extension6
-rwxr-xr-xemacs-lisp-mode/file-name-nondirectory6
-rwxr-xr-xemacs-lisp-mode/file-name-sans-extension6
-rwxr-xr-xemacs-lisp-mode/file-relative-name6
-rw-r--r--emacs-lisp-mode/file.process17
-rw-r--r--emacs-lisp-mode/file.read-lines17
-rwxr-xr-xemacs-lisp-mode/find-file6
-rw-r--r--emacs-lisp-mode/find-replace17
-rwxr-xr-xemacs-lisp-mode/format5
-rwxr-xr-xemacs-lisp-mode/forward-char6
-rwxr-xr-xemacs-lisp-mode/forward-line6
-rwxr-xr-xemacs-lisp-mode/funcall5
-rwxr-xr-xemacs-lisp-mode/function5
-rwxr-xr-xemacs-lisp-mode/get5
-rwxr-xr-xemacs-lisp-mode/global-set-key6
-rwxr-xr-xemacs-lisp-mode/goto-char6
-rw-r--r--emacs-lisp-mode/grabstring4
-rw-r--r--emacs-lisp-mode/grabthing4
-rw-r--r--emacs-lisp-mode/hash5
-rwxr-xr-xemacs-lisp-mode/if5
-rwxr-xr-xemacs-lisp-mode/insert6
-rwxr-xr-xemacs-lisp-mode/insert-file-contents6
-rwxr-xr-xemacs-lisp-mode/interactive5
-rwxr-xr-xemacs-lisp-mode/kbd5
-rwxr-xr-xemacs-lisp-mode/kill-buffer6
-rwxr-xr-xemacs-lisp-mode/lambda5
-rwxr-xr-xemacs-lisp-mode/length5
-rwxr-xr-xemacs-lisp-mode/let8
-rwxr-xr-xemacs-lisp-mode/line-beginning-position6
-rwxr-xr-xemacs-lisp-mode/line-end-position6
-rwxr-xr-xemacs-lisp-mode/list5
-rwxr-xr-xemacs-lisp-mode/looking-at6
-rwxr-xr-xemacs-lisp-mode/make-directory6
-rwxr-xr-xemacs-lisp-mode/make-local-variable6
-rwxr-xr-xemacs-lisp-mode/mapc5
-rwxr-xr-xemacs-lisp-mode/mapcar5
-rwxr-xr-xemacs-lisp-mode/match-beginning6
-rwxr-xr-xemacs-lisp-mode/match-end6
-rwxr-xr-xemacs-lisp-mode/match-string6
-rwxr-xr-xemacs-lisp-mode/memq5
-rwxr-xr-xemacs-lisp-mode/message6
-rw-r--r--emacs-lisp-mode/minor_mode20
-rwxr-xr-xemacs-lisp-mode/not6
-rwxr-xr-xemacs-lisp-mode/nth5
-rwxr-xr-xemacs-lisp-mode/null5
-rwxr-xr-xemacs-lisp-mode/number-to-string6
-rwxr-xr-xemacs-lisp-mode/or6
-rwxr-xr-xemacs-lisp-mode/point6
-rwxr-xr-xemacs-lisp-mode/point-max5
-rwxr-xr-xemacs-lisp-mode/point-min6
-rwxr-xr-xemacs-lisp-mode/princ5
-rwxr-xr-xemacs-lisp-mode/print5
-rwxr-xr-xemacs-lisp-mode/progn5
-rwxr-xr-xemacs-lisp-mode/push5
-rwxr-xr-xemacs-lisp-mode/put5
-rwxr-xr-xemacs-lisp-mode/re-search-backward6
-rwxr-xr-xemacs-lisp-mode/re-search-forward6
-rwxr-xr-xemacs-lisp-mode/region-active-p6
-rwxr-xr-xemacs-lisp-mode/region-beginning6
-rwxr-xr-xemacs-lisp-mode/region-end6
-rwxr-xr-xemacs-lisp-mode/rename-file6
-rwxr-xr-xemacs-lisp-mode/repeat5
-rwxr-xr-xemacs-lisp-mode/replace-regexp6
-rwxr-xr-xemacs-lisp-mode/replace-regexp-in-string6
-rwxr-xr-xemacs-lisp-mode/require5
-rwxr-xr-xemacs-lisp-mode/save-buffer6
-rwxr-xr-xemacs-lisp-mode/save-excursion6
-rwxr-xr-xemacs-lisp-mode/search-backward6
-rwxr-xr-xemacs-lisp-mode/search-backward-regexp6
-rwxr-xr-xemacs-lisp-mode/search-forward6
-rwxr-xr-xemacs-lisp-mode/search-forward-regexp6
-rwxr-xr-xemacs-lisp-mode/set5
-rwxr-xr-xemacs-lisp-mode/set-buffer6
-rwxr-xr-xemacs-lisp-mode/set-file-modes6
-rwxr-xr-xemacs-lisp-mode/set-mark6
-rwxr-xr-xemacs-lisp-mode/setq6
-rwxr-xr-xemacs-lisp-mode/skip-chars-backward6
-rwxr-xr-xemacs-lisp-mode/skip-chars-forward6
-rwxr-xr-xemacs-lisp-mode/split-string6
-rwxr-xr-xemacs-lisp-mode/string5
-rwxr-xr-xemacs-lisp-mode/string-match6
-rwxr-xr-xemacs-lisp-mode/string-to-number6
-rwxr-xr-xemacs-lisp-mode/string=5
-rwxr-xr-xemacs-lisp-mode/stringp5
-rwxr-xr-xemacs-lisp-mode/substring5
-rwxr-xr-xemacs-lisp-mode/thing-at-point6
-rw-r--r--emacs-lisp-mode/traverse_dir6
-rwxr-xr-xemacs-lisp-mode/unless5
-rwxr-xr-xemacs-lisp-mode/vector6
-rwxr-xr-xemacs-lisp-mode/when5
-rwxr-xr-xemacs-lisp-mode/while5
-rwxr-xr-xemacs-lisp-mode/widget-get6
-rwxr-xr-xemacs-lisp-mode/with-current-buffer6
-rw-r--r--emacs-lisp-mode/word-or-region27
-rw-r--r--emacs-lisp-mode/word_regexp5
-rwxr-xr-xemacs-lisp-mode/x-dired.process_marked17
-rwxr-xr-xemacs-lisp-mode/x-file.process18
-rwxr-xr-xemacs-lisp-mode/x-file.read-lines18
-rwxr-xr-xemacs-lisp-mode/x-find-replace18
-rwxr-xr-xemacs-lisp-mode/x-grabstring5
-rwxr-xr-xemacs-lisp-mode/x-grabthing5
-rwxr-xr-xemacs-lisp-mode/x-traverse_dir7
-rwxr-xr-xemacs-lisp-mode/x-word-or-region28
-rwxr-xr-xemacs-lisp-mode/y-or-n-p6
-rwxr-xr-xemacs-lisp-mode/yes-or-no-p5
l---------enh-ruby-mode1
l---------ensime-mode1
-rw-r--r--erc-mode/blist5
-rw-r--r--erc-mode/help5
-rw-r--r--erlang-mode/after4
-rw-r--r--erlang-mode/begin5
-rw-r--r--erlang-mode/beh4
-rw-r--r--erlang-mode/case5
-rw-r--r--erlang-mode/compile4
-rw-r--r--erlang-mode/def4
-rw-r--r--erlang-mode/exp5
-rw-r--r--erlang-mode/fun3
-rw-r--r--erlang-mode/if6
-rw-r--r--erlang-mode/ifdef5
-rw-r--r--erlang-mode/ifndef5
-rw-r--r--erlang-mode/imp5
-rw-r--r--erlang-mode/inc4
-rw-r--r--erlang-mode/inc.lib4
-rw-r--r--erlang-mode/loop8
-rw-r--r--erlang-mode/mod6
-rw-r--r--erlang-mode/rcv5
-rw-r--r--erlang-mode/rcv.after6
-rw-r--r--erlang-mode/rec4
-rw-r--r--erlang-mode/try7
-rw-r--r--erlang-mode/undef4
-rw-r--r--f90-mode/au4
-rw-r--r--f90-mode/bd4
-rw-r--r--f90-mode/c4
-rw-r--r--f90-mode/ch4
-rw-r--r--f90-mode/cx4
-rw-r--r--f90-mode/dc4
-rw-r--r--f90-mode/do8
-rw-r--r--f90-mode/dp4
-rw-r--r--f90-mode/eq4
-rw-r--r--f90-mode/forall8
-rw-r--r--f90-mode/function12
-rw-r--r--f90-mode/ib4
-rw-r--r--f90-mode/ic4
-rw-r--r--f90-mode/ich4
-rw-r--r--f90-mode/if6
-rw-r--r--f90-mode/ii4
-rw-r--r--f90-mode/il4
-rw-r--r--f90-mode/in4
-rw-r--r--f90-mode/inc4
-rw-r--r--f90-mode/intr4
-rw-r--r--f90-mode/ir4
-rw-r--r--f90-mode/l4
-rw-r--r--f90-mode/module12
-rw-r--r--f90-mode/pa4
-rw-r--r--f90-mode/pr11
-rw-r--r--f90-mode/program11
-rw-r--r--f90-mode/puref12
-rw-r--r--f90-mode/purefunc12
-rw-r--r--f90-mode/pures10
-rw-r--r--f90-mode/puresub10
-rw-r--r--f90-mode/re4
-rw-r--r--f90-mode/st4
-rw-r--r--f90-mode/su10
-rw-r--r--f90-mode/subroutine10
-rw-r--r--f90-mode/until9
-rw-r--r--f90-mode/where9
-rw-r--r--f90-mode/while8
-rw-r--r--f90-mode/wr4
-rw-r--r--fundamental-mode/.yas-setup.el8
-rw-r--r--git-commit-mode/.yas-parents1
-rw-r--r--git-commit-mode/fixes5
-rw-r--r--git-commit-mode/references5
-rw-r--r--go-mode/benchmark10
-rw-r--r--go-mode/const6
-rw-r--r--go-mode/const(7
-rw-r--r--go-mode/dd6
-rw-r--r--go-mode/default6
-rw-r--r--go-mode/else7
-rw-r--r--go-mode/error8
-rw-r--r--go-mode/example8
-rw-r--r--go-mode/for7
-rw-r--r--go-mode/forrange8
-rw-r--r--go-mode/func8
-rw-r--r--go-mode/if7
-rw-r--r--go-mode/iferr7
-rw-r--r--go-mode/import6
-rw-r--r--go-mode/import(7
-rw-r--r--go-mode/lambda7
-rw-r--r--go-mode/main7
-rw-r--r--go-mode/map5
-rw-r--r--go-mode/printf6
-rw-r--r--go-mode/select8
-rw-r--r--go-mode/switch8
-rw-r--r--go-mode/test8
-rw-r--r--go-mode/testmain21
-rw-r--r--go-mode/type7
-rw-r--r--go-mode/var6
-rw-r--r--go-mode/var(7
-rw-r--r--groovy-mode/.yas-parents1
-rw-r--r--groovy-mode/class7
-rw-r--r--groovy-mode/def7
-rw-r--r--groovy-mode/dict5
-rw-r--r--groovy-mode/for7
-rw-r--r--groovy-mode/println6
-rw-r--r--groovy-mode/times7
-rw-r--r--haskell-mode/case8
-rw-r--r--haskell-mode/data5
-rw-r--r--haskell-mode/doc7
-rw-r--r--haskell-mode/efix6
-rw-r--r--haskell-mode/function6
-rw-r--r--haskell-mode/functione6
-rw-r--r--haskell-mode/import5
-rw-r--r--haskell-mode/instance6
-rw-r--r--haskell-mode/main7
-rw-r--r--haskell-mode/module6
-rw-r--r--haskell-mode/new class6
-rw-r--r--haskell-mode/pragma5
-rw-r--r--haskell-mode/print5
-rw-r--r--html-mode/.yas-parents1
-rw-r--r--html-mode/dd5
-rw-r--r--html-mode/dl7
-rw-r--r--html-mode/doctype4
-rw-r--r--html-mode/doctype.xhml14
-rw-r--r--html-mode/doctype.xhtml1_14
-rw-r--r--html-mode/doctype.xhtml1_strict4
-rw-r--r--html-mode/doctype.xhtml1_transitional4
-rw-r--r--html-mode/dt5
-rw-r--r--html-mode/form6
-rw-r--r--html-mode/html6
-rw-r--r--html-mode/html.xmlns6
-rw-r--r--html-mode/link.stylesheet4
-rw-r--r--html-mode/link.stylesheet-ie6
-rw-r--r--html-mode/mailto4
-rw-r--r--html-mode/meta5
-rw-r--r--html-mode/meta.http-equiv5
-rw-r--r--html-mode/script.javascript6
-rw-r--r--html-mode/script.javascript-src4
-rw-r--r--html-mode/textarea4
-rw-r--r--html-mode/th5
-rw-r--r--java-mode/apr_assert7
-rw-r--r--java-mode/assert5
-rw-r--r--java-mode/assertEquals7
-rw-r--r--java-mode/cls7
-rw-r--r--java-mode/constructor7
-rw-r--r--java-mode/define test method8
-rw-r--r--java-mode/doc7
-rw-r--r--java-mode/equals7
-rw-r--r--java-mode/file_class9
-rw-r--r--java-mode/for7
-rw-r--r--java-mode/fori7
-rw-r--r--java-mode/getter7
-rw-r--r--java-mode/if7
-rw-r--r--java-mode/ife10
-rw-r--r--java-mode/import6
-rw-r--r--java-mode/iterator7
-rw-r--r--java-mode/javadoc8
-rw-r--r--java-mode/lambda5
-rw-r--r--java-mode/main7
-rw-r--r--java-mode/main_class11
-rw-r--r--java-mode/method7
-rw-r--r--java-mode/new6
-rw-r--r--java-mode/override6
-rw-r--r--java-mode/param5
-rw-r--r--java-mode/printf5
-rw-r--r--java-mode/println6
-rw-r--r--java-mode/return5
-rw-r--r--java-mode/test8
-rw-r--r--java-mode/testClass12
-rw-r--r--java-mode/this6
-rw-r--r--java-mode/toString7
-rw-r--r--java-mode/try11
-rw-r--r--java-mode/value5
-rw-r--r--js-mode/al4
-rw-r--r--js-mode/class8
-rw-r--r--js-mode/com6
-rw-r--r--js-mode/debugger5
-rw-r--r--js-mode/each6
-rw-r--r--js-mode/el6
-rw-r--r--js-mode/ev.add6
-rw-r--r--js-mode/ev.fire4
-rw-r--r--js-mode/for6
-rw-r--r--js-mode/function7
-rw-r--r--js-mode/if6
-rw-r--r--js-mode/init6
-rw-r--r--js-mode/log4
-rw-r--r--js-mode/req.html8
-rw-r--r--js-mode/req.json8
l---------js2-mode1
-rw-r--r--latex-mode/acronym5
-rw-r--r--latex-mode/alertblock7
-rw-r--r--latex-mode/alg7
-rw-r--r--latex-mode/begin7
-rw-r--r--latex-mode/block7
-rw-r--r--latex-mode/capgls5
-rw-r--r--latex-mode/caption5
-rw-r--r--latex-mode/cite5
-rw-r--r--latex-mode/code7
-rw-r--r--latex-mode/columns13
-rw-r--r--latex-mode/emph5
-rw-r--r--latex-mode/enumerate7
-rw-r--r--latex-mode/figure9
-rw-r--r--latex-mode/frac5
-rw-r--r--latex-mode/frame8
-rw-r--r--latex-mode/gls5
-rw-r--r--latex-mode/glspl5
-rw-r--r--latex-mode/if8
-rw-r--r--latex-mode/includegraphics5
-rw-r--r--latex-mode/item5
-rw-r--r--latex-mode/itemize7
-rw-r--r--latex-mode/label5
-rw-r--r--latex-mode/listing7
-rw-r--r--latex-mode/movie15
-rw-r--r--latex-mode/newcommand5
-rw-r--r--latex-mode/newglossaryentry5
-rw-r--r--latex-mode/note5
-rw-r--r--latex-mode/python8
-rw-r--r--latex-mode/question5
-rw-r--r--latex-mode/section8
-rw-r--r--latex-mode/subf8
-rw-r--r--latex-mode/subfigure13
-rw-r--r--latex-mode/subsec8
-rw-r--r--latex-mode/textbf5
-rw-r--r--latex-mode/usepackage5
-rw-r--r--lisp-interaction-mode/defun7
-rw-r--r--lisp-mode/class8
-rw-r--r--lisp-mode/comment6
-rw-r--r--lisp-mode/defpackage10
-rw-r--r--lisp-mode/do9
-rw-r--r--lisp-mode/for7
-rw-r--r--lisp-mode/foreach7
-rw-r--r--lisp-mode/format5
-rw-r--r--lisp-mode/if7
-rw-r--r--lisp-mode/ifelse9
-rw-r--r--lisp-mode/ifnot8
-rw-r--r--lisp-mode/slot13
-rw-r--r--lisp-mode/switch9
-rw-r--r--lisp-mode/typecast6
-rw-r--r--lua-mode/fun7
-rw-r--r--m4-mode/def6
-rw-r--r--makefile-automake-mode/noinst_HEADERS5
-rw-r--r--makefile-bsdmake-mode/PHONY5
-rw-r--r--makefile-bsdmake-mode/echo5
-rw-r--r--makefile-bsdmake-mode/gen11
-rw-r--r--makefile-bsdmake-mode/if7
-rw-r--r--makefile-bsdmake-mode/var5
-rw-r--r--makefile-gmake-mode/patsubst5
-rw-r--r--makefile-gmake-mode/phony5
-rw-r--r--makefile-gmake-mode/wildcard5
-rw-r--r--makefile-mode/all6
-rw-r--r--malabar-mode/variable5
-rw-r--r--markdown-mode/+5
-rw-r--r--markdown-mode/-5
-rw-r--r--markdown-mode/_4
-rw-r--r--markdown-mode/__4
-rw-r--r--markdown-mode/`4
-rw-r--r--markdown-mode/h1.16
-rw-r--r--markdown-mode/h1.27
-rw-r--r--markdown-mode/h2.16
-rw-r--r--markdown-mode/h2.27
-rw-r--r--markdown-mode/h36
-rw-r--r--markdown-mode/h46
-rw-r--r--markdown-mode/h56
-rw-r--r--markdown-mode/h66
-rw-r--r--markdown-mode/hr.17
-rw-r--r--markdown-mode/hr.27
-rw-r--r--markdown-mode/img4
-rw-r--r--markdown-mode/link4
-rw-r--r--markdown-mode/ol5
-rw-r--r--markdown-mode/rimg4
-rw-r--r--markdown-mode/rlb5
-rw-r--r--markdown-mode/rlink4
-rw-r--r--markdown-mode/utf86
-rw-r--r--ned-mode/.yas-parents1
-rw-r--r--ned-mode/chan7
-rw-r--r--ned-mode/connections6
-rw-r--r--ned-mode/for7
-rw-r--r--ned-mode/import5
-rw-r--r--ned-mode/network11
-rw-r--r--ned-mode/simple8
-rw-r--r--ned-mode/submodules6
-rw-r--r--nesc-mode/.yas-parents1
-rw-r--r--nesc-mode/TOSSIM7
-rw-r--r--nesc-mode/command7
-rw-r--r--nesc-mode/dbg5
-rw-r--r--nesc-mode/event7
-rw-r--r--nesc-mode/ifdef9
-rw-r--r--nesc-mode/interface7
-rw-r--r--nesc-mode/module8
-rw-r--r--nesc-mode/nx6
-rw-r--r--nesc-mode/provides5
-rw-r--r--nesc-mode/sim7
-rw-r--r--nesc-mode/uint8_t6
-rw-r--r--nesc-mode/uses6
-rw-r--r--nsis-mode/.yas-parents1
-rw-r--r--nsis-mode/define5
-rw-r--r--nsis-mode/function7
-rw-r--r--nsis-mode/if9
-rw-r--r--nsis-mode/include5
-rw-r--r--nsis-mode/insert_macro5
-rw-r--r--nsis-mode/instdir5
-rw-r--r--nsis-mode/macro8
-rw-r--r--nsis-mode/message5
-rw-r--r--nsis-mode/outdir5
-rw-r--r--nsis-mode/outfile5
-rw-r--r--nsis-mode/section7
-rw-r--r--nxml-mode/body6
-rw-r--r--nxml-mode/br4
-rw-r--r--nxml-mode/doctype5
-rw-r--r--nxml-mode/doctype_xhtml1_strict5
-rw-r--r--nxml-mode/doctype_xhtml1_transitional5
-rw-r--r--nxml-mode/form6
-rw-r--r--nxml-mode/href5
-rw-r--r--nxml-mode/html6
-rw-r--r--nxml-mode/img4
-rw-r--r--nxml-mode/input4
-rw-r--r--nxml-mode/link4
-rw-r--r--nxml-mode/meta5
-rw-r--r--nxml-mode/name4
-rw-r--r--nxml-mode/quote6
-rw-r--r--nxml-mode/style6
-rw-r--r--nxml-mode/tag5
-rw-r--r--nxml-mode/tag_closing5
-rw-r--r--nxml-mode/tag_newline7
-rw-r--r--octave-mode/for7
-rw-r--r--octave-mode/function7
-rw-r--r--octave-mode/if9
-rw-r--r--org-mode/code7
-rw-r--r--org-mode/dot9
-rw-r--r--org-mode/elisp7
-rw-r--r--org-mode/embedded5
-rw-r--r--org-mode/entry11
-rw-r--r--org-mode/figure7
-rw-r--r--org-mode/img10
-rw-r--r--org-mode/latex7
-rw-r--r--org-mode/matrix11
-rw-r--r--org-mode/verse7
-rw-r--r--perl-mode/.yas-parents1
-rw-r--r--perl-mode/eval9
-rw-r--r--perl-mode/for6
-rw-r--r--perl-mode/fore6
-rw-r--r--perl-mode/if6
-rw-r--r--perl-mode/ife8
-rw-r--r--perl-mode/ifee10
-rw-r--r--perl-mode/sub6
-rw-r--r--perl-mode/unless6
-rw-r--r--perl-mode/while6
-rw-r--r--perl-mode/xfore4
-rw-r--r--perl-mode/xif4
-rw-r--r--perl-mode/xunless4
-rw-r--r--perl-mode/xwhile4
-rw-r--r--prog-mode/.yas-setup.el2
-rw-r--r--prog-mode/fixme6
-rw-r--r--prog-mode/todo5
-rw-r--r--prog-mode/xxx5
-rw-r--r--python-mode/.yas-parents1
-rw-r--r--python-mode/.yas-setup.el22
-rw-r--r--python-mode/__contains__7
-rw-r--r--python-mode/__enter__9
-rw-r--r--python-mode/__exit__7
-rw-r--r--python-mode/__getitem__7
-rw-r--r--python-mode/__len__7
-rw-r--r--python-mode/__new__8
-rw-r--r--python-mode/__setitem__7
-rw-r--r--python-mode/all7
-rw-r--r--python-mode/arg7
-rw-r--r--python-mode/arg_positional6
-rw-r--r--python-mode/ass6
-rw-r--r--python-mode/assertEqual6
-rw-r--r--python-mode/assertFalse6
-rw-r--r--python-mode/assertIn6
-rw-r--r--python-mode/assertNotEqual6
-rw-r--r--python-mode/assertNotIn6
-rw-r--r--python-mode/assertRaises6
-rw-r--r--python-mode/assertRaises.with6
-rw-r--r--python-mode/assertTrue6
-rw-r--r--python-mode/celery_pdb6
-rw-r--r--python-mode/classmethod8
-rw-r--r--python-mode/cls7
-rw-r--r--python-mode/dec14
-rw-r--r--python-mode/deftest7
-rw-r--r--python-mode/django_test_class7
-rw-r--r--python-mode/doc6
-rw-r--r--python-mode/doctest8
-rw-r--r--python-mode/eq7
-rw-r--r--python-mode/for6
-rw-r--r--python-mode/from6
-rw-r--r--python-mode/function7
-rw-r--r--python-mode/function_docstring10
-rw-r--r--python-mode/if7
-rw-r--r--python-mode/ife9
-rw-r--r--python-mode/ifmain6
-rw-r--r--python-mode/import7
-rw-r--r--python-mode/init8
-rw-r--r--python-mode/init_docstring10
-rw-r--r--python-mode/interact5
-rw-r--r--python-mode/ipdbdebug6
-rw-r--r--python-mode/iter7
-rw-r--r--python-mode/lambda5
-rw-r--r--python-mode/list7
-rw-r--r--python-mode/logger_name5
-rw-r--r--python-mode/logging6
-rw-r--r--python-mode/main6
-rw-r--r--python-mode/metaclass6
-rw-r--r--python-mode/method7
-rw-r--r--python-mode/method_docstring10
-rw-r--r--python-mode/not_impl5
-rw-r--r--python-mode/np7
-rw-r--r--python-mode/parse_args9
-rw-r--r--python-mode/parser7
-rw-r--r--python-mode/pass5
-rw-r--r--python-mode/print5
-rw-r--r--python-mode/prop17
-rw-r--r--python-mode/reg7
-rw-r--r--python-mode/repr7
-rw-r--r--python-mode/return5
-rw-r--r--python-mode/script11
-rw-r--r--python-mode/self6
-rw-r--r--python-mode/self_without_dot6
-rw-r--r--python-mode/selfassign6
-rw-r--r--python-mode/setdef5
-rw-r--r--python-mode/setup14
-rw-r--r--python-mode/size5
-rw-r--r--python-mode/static6
-rw-r--r--python-mode/str7
-rw-r--r--python-mode/super7
-rw-r--r--python-mode/test_class7
-rw-r--r--python-mode/test_file12
-rw-r--r--python-mode/trace6
-rw-r--r--python-mode/try8
-rw-r--r--python-mode/tryelse10
-rw-r--r--python-mode/unicode7
-rw-r--r--python-mode/utf85
-rw-r--r--python-mode/while7
-rw-r--r--python-mode/with7
-rw-r--r--python-mode/with_statement6
-rwxr-xr-xrename_add_contr.py36
-rw-r--r--rst-mode/autoclass6
-rw-r--r--rst-mode/autofunction5
-rw-r--r--rst-mode/automodule5
-rw-r--r--rst-mode/class5
-rw-r--r--rst-mode/code5
-rw-r--r--rst-mode/digraph7
-rw-r--r--rst-mode/function5
-rw-r--r--rst-mode/graph7
-rw-r--r--rst-mode/graphviz7
-rw-r--r--rst-mode/image10
-rw-r--r--rst-mode/inheritance5
-rw-r--r--rst-mode/literal_include5
-rw-r--r--rst-mode/meta5
-rw-r--r--rst-mode/module5
-rw-r--r--rst-mode/parsed_literal6
-rw-r--r--rst-mode/pause6
-rw-r--r--rst-mode/term5
-rw-r--r--rst-mode/url5
-rw-r--r--rst-mode/verbatim6
-rw-r--r--rst-mode/warning6
-rw-r--r--ruby-mode/#4
-rw-r--r--ruby-mode/=b6
-rw-r--r--ruby-mode/Comp8
-rw-r--r--ruby-mode/GLOB5
-rw-r--r--ruby-mode/all4
-rw-r--r--ruby-mode/am4
-rw-r--r--ruby-mode/any4
-rw-r--r--ruby-mode/app6
-rw-r--r--ruby-mode/attribute5
-rw-r--r--ruby-mode/bench10
-rw-r--r--ruby-mode/bm6
-rw-r--r--ruby-mode/case7
-rw-r--r--ruby-mode/cla6
-rw-r--r--ruby-mode/cls11
-rw-r--r--ruby-mode/collect4
-rw-r--r--ruby-mode/dee4
-rw-r--r--ruby-mode/def7
-rw-r--r--ruby-mode/deli4
-rw-r--r--ruby-mode/det4
-rw-r--r--ruby-mode/dow6
-rw-r--r--ruby-mode/ea4
-rw-r--r--ruby-mode/eac4
-rw-r--r--ruby-mode/eai4
-rw-r--r--ruby-mode/eav4
-rw-r--r--ruby-mode/eawi4
-rw-r--r--ruby-mode/for7
-rw-r--r--ruby-mode/forin6
-rw-r--r--ruby-mode/formula16
-rw-r--r--ruby-mode/if6
-rw-r--r--ruby-mode/ife8
-rw-r--r--ruby-mode/init7
-rw-r--r--ruby-mode/inject4
-rw-r--r--ruby-mode/mm6
-rw-r--r--ruby-mode/r4
-rw-r--r--ruby-mode/rb4
-rw-r--r--ruby-mode/reject4
-rw-r--r--ruby-mode/rel4
-rw-r--r--ruby-mode/req4
-rw-r--r--ruby-mode/rw4
-rw-r--r--ruby-mode/select4
-rw-r--r--ruby-mode/str5
-rw-r--r--ruby-mode/test class7
-rw-r--r--ruby-mode/tim4
-rw-r--r--ruby-mode/to_8
-rw-r--r--ruby-mode/tu5
-rw-r--r--ruby-mode/until6
-rw-r--r--ruby-mode/upt6
-rw-r--r--ruby-mode/w4
-rw-r--r--ruby-mode/when6
-rw-r--r--ruby-mode/while6
-rw-r--r--ruby-mode/y4
-rw-r--r--ruby-mode/zip4
-rw-r--r--scala-mode/act12
-rw-r--r--scala-mode/act.arg12
-rw-r--r--scala-mode/actor12
-rw-r--r--scala-mode/ano6
-rw-r--r--scala-mode/app8
-rw-r--r--scala-mode/arr.new6
-rw-r--r--scala-mode/arr.val-new6
-rw-r--r--scala-mode/asof6
-rw-r--r--scala-mode/ass6
-rw-r--r--scala-mode/ass.true6
-rw-r--r--scala-mode/at.author6
-rw-r--r--scala-mode/at.param6
-rw-r--r--scala-mode/at.return6
-rw-r--r--scala-mode/at.version6
-rw-r--r--scala-mode/bang6
-rw-r--r--scala-mode/case6
-rw-r--r--scala-mode/case.match-all6
-rw-r--r--scala-mode/cast6
-rw-r--r--scala-mode/cc6
-rw-r--r--scala-mode/cl8
-rw-r--r--scala-mode/cl.abs8
-rw-r--r--scala-mode/cl.abs-arg8
-rw-r--r--scala-mode/cl.arg8
-rw-r--r--scala-mode/clof6
-rw-r--r--scala-mode/co6
-rw-r--r--scala-mode/cons6
-rw-r--r--scala-mode/cons.nil6
-rw-r--r--scala-mode/def.arg6
-rw-r--r--scala-mode/def.arg-body8
-rw-r--r--scala-mode/def.arg-ret6
-rw-r--r--scala-mode/def.arg-ret-body8
-rw-r--r--scala-mode/def.body8
-rw-r--r--scala-mode/def.ret6
-rw-r--r--scala-mode/def.ret-body8
-rw-r--r--scala-mode/def.simple6
-rw-r--r--scala-mode/doc.class10
-rw-r--r--scala-mode/doc.def8
-rw-r--r--scala-mode/doc.file11
-rw-r--r--scala-mode/doc.file-scala18
-rw-r--r--scala-mode/doc.file-scala-api18
-rw-r--r--scala-mode/doc.scaladoc9
-rw-r--r--scala-mode/expect8
-rw-r--r--scala-mode/ext6
-rw-r--r--scala-mode/for.extract6
-rw-r--r--scala-mode/for.if8
-rw-r--r--scala-mode/for.loop8
-rw-r--r--scala-mode/for.multi11
-rw-r--r--scala-mode/foreach6
-rw-r--r--scala-mode/hmap.new6
-rw-r--r--scala-mode/hmap.val-new6
-rw-r--r--scala-mode/hset.new6
-rw-r--r--scala-mode/hset.val-new6
-rw-r--r--scala-mode/if8
-rw-r--r--scala-mode/if.else10
-rw-r--r--scala-mode/imp6
-rw-r--r--scala-mode/intercept8
-rw-r--r--scala-mode/isof6
-rw-r--r--scala-mode/ls.new6
-rw-r--r--scala-mode/ls.val-new6
-rw-r--r--scala-mode/main8
-rw-r--r--scala-mode/map6
-rw-r--r--scala-mode/map.new6
-rw-r--r--scala-mode/match8
-rw-r--r--scala-mode/match.can13
-rw-r--r--scala-mode/match.option10
-rw-r--r--scala-mode/mix8
-rw-r--r--scala-mode/ob6
-rw-r--r--scala-mode/pac6
-rw-r--r--scala-mode/pr.newline6
-rw-r--r--scala-mode/pr.simple6
-rw-r--r--scala-mode/pr.string6
-rw-r--r--scala-mode/pr.trace6
-rw-r--r--scala-mode/pri6
-rw-r--r--scala-mode/pri.param6
-rw-r--r--scala-mode/pro6
-rw-r--r--scala-mode/pro.param6
-rw-r--r--scala-mode/suite10
-rw-r--r--scala-mode/test9
-rw-r--r--scala-mode/throw6
-rw-r--r--scala-mode/tr8
-rw-r--r--scala-mode/tr.ext8
-rw-r--r--scala-mode/tr.ext-with8
-rw-r--r--scala-mode/tr.with8
-rw-r--r--scala-mode/try11
-rw-r--r--scala-mode/try.catch-finally13
-rw-r--r--scala-mode/try.finally10
-rw-r--r--scala-mode/tup.arrow6
-rw-r--r--scala-mode/tup.paren6
-rw-r--r--scala-mode/val6
-rw-r--r--scala-mode/val.new6
-rw-r--r--scala-mode/val.ret6
-rw-r--r--scala-mode/var6
-rw-r--r--scala-mode/var.new6
-rw-r--r--scala-mode/var.ret6
-rw-r--r--scala-mode/whi8
-rw-r--r--scala-mode/with6
-rw-r--r--sh-mode/args7
-rw-r--r--sh-mode/bang6
-rw-r--r--sh-mode/for loop7
-rw-r--r--sh-mode/function7
-rw-r--r--sh-mode/if8
-rw-r--r--sh-mode/ife9
-rw-r--r--snippet-mode/cont5
-rw-r--r--snippet-mode/elisp5
-rw-r--r--snippet-mode/field6
-rw-r--r--snippet-mode/group5
-rw-r--r--snippet-mode/mirror6
-rw-r--r--snippet-mode/vars13
-rw-r--r--sql-mode/column4
-rw-r--r--sql-mode/constraint4
-rw-r--r--sql-mode/constraint.14
-rw-r--r--sql-mode/create10
-rw-r--r--sql-mode/create.112
-rw-r--r--sql-mode/references4
-rw-r--r--text-mode/.yas-parents1
-rw-r--r--tuareg-mode/assert5
-rw-r--r--tuareg-mode/docstring5
-rw-r--r--tuareg-mode/for7
-rw-r--r--tuareg-mode/fun5
-rw-r--r--tuareg-mode/guard5
-rw-r--r--tuareg-mode/ifthen6
-rw-r--r--tuareg-mode/ifthenelse8
-rw-r--r--tuareg-mode/let5
-rw-r--r--tuareg-mode/list_comprehension5
-rw-r--r--tuareg-mode/main6
-rw-r--r--tuareg-mode/match6
-rw-r--r--tuareg-mode/module9
-rw-r--r--tuareg-mode/open5
-rw-r--r--tuareg-mode/printf5
-rw-r--r--tuareg-mode/rec6
-rw-r--r--tuareg-mode/try8
-rw-r--r--tuareg-mode/type5
-rw-r--r--tuareg-mode/type_type6
-rw-r--r--tuareg-mode/val5
-rw-r--r--tuareg-mode/while7
l---------typerex-mode1
-rw-r--r--udev-mode/ENV5
-rw-r--r--udev-mode/GOTO8
-rw-r--r--udev-mode/KERNEL5
-rw-r--r--udev-mode/add5
-rw-r--r--udev-mode/env$5
-rw-r--r--udev-mode/run5
-rw-r--r--yaml-mode/entry6
-rw-r--r--yaml-mode/list6
-rw-r--r--yaml-mode/section6
1053 files changed, 6962 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..8ab45ff
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+**/.yas-compiled-snippets.el
diff --git a/.nosearch b/.nosearch
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/.nosearch
@@ -0,0 +1 @@
+
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
new file mode 100644
index 0000000..955e6a3
--- /dev/null
+++ b/CONTRIBUTORS.txt
@@ -0,0 +1,4 @@
+Please add here your name in alphabetical order (first name) if you contributed with
+
+- Andrea Crotti
+- James Ferguson
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..c9b44cb
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,18 @@
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..d36b9f9
--- /dev/null
+++ b/README.md
@@ -0,0 +1,40 @@
+# Yasnippet official snippet collections
+
+[![Join the chat at https://gitter.im/AndreaCrotti/yasnippet-snippets](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/AndreaCrotti/yasnippet-snippets?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
+This repository contains the official snippets for [yasnippet](http://github.com/capitaomorte/yasnippet), as you can see from the git submodules link.
+
+# How to install
+
+There are two options, if you have checked out *yasnippet* already, the only thing you need to do is to run *git submodule update --init*
+and it will checkout automatically this repository, at the last version it was synchronized too.
+
+Otherwise if you want the latest and greatest snippets collection proceed as follows:
+
+1. clone this repository
+2. add to your .emacs the following
+ - (add-to-list 'yas/root-directory "$DIRECTORY_WHERE_YOU_CLONED")
+ - (yas/initialize)
+
+3. M-x yas/reload-all to activate them
+
+# Contributing
+
+This repository has now become the default snippets repository (as a submodule) in yasnippet.
+So if you have any useful snippets for any language or framework please feel free to contribute.
+
+To study the current snippets I suggest to use M-x yas/describe-tables
+which will gave a table representation of all the snippets available in the current mode.
+
+
+# Guidelines
+
+Snippets need to be generic enough to be useful for everyone, and not contain anything specific to your own system.
+
+# Various notes
+
+## HTML snippets
+
+Until September 1st 2014 there were a lot of HTML snippets in the repository, which were sometimes useful but I came to the conclusion that yasnippet was not the right fool for them, so they were removed in this pull request:
+https://github.com/AndreaCrotti/yasnippet-snippets/pull/49
+
+To everyone writing a lot of HTML I suggest using [emmet mode](https://github.com/smihica/emmet-mode) instead, which is a much more powerful mode for writing HTML tags.
diff --git a/antlr-mode/project b/antlr-mode/project
new file mode 100644
index 0000000..0588eb9
--- /dev/null
+++ b/antlr-mode/project
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: project
+# key: proj
+# --
+<project name="${1:test}" default="${2:compile}" basedir="${3:.}">
+
+$0
+</project> \ No newline at end of file
diff --git a/antlr-mode/property b/antlr-mode/property
new file mode 100644
index 0000000..6086cf1
--- /dev/null
+++ b/antlr-mode/property
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: property
+# key: prop
+# --
+<property name="${1:name}" value="${2:value}" />
+$0 \ No newline at end of file
diff --git a/antlr-mode/target b/antlr-mode/target
new file mode 100644
index 0000000..c42110d
--- /dev/null
+++ b/antlr-mode/target
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: target
+# key: target
+# --
+<target name="${1:compile}" ${2:other}>
+ $0
+</target> \ No newline at end of file
diff --git a/applescript-mode/.yas-parents b/applescript-mode/.yas-parents
new file mode 100644
index 0000000..0539988
--- /dev/null
+++ b/applescript-mode/.yas-parents
@@ -0,0 +1 @@
+prog-mode \ No newline at end of file
diff --git a/c++-mode/.yas-parents b/c++-mode/.yas-parents
new file mode 100644
index 0000000..ce9828b
--- /dev/null
+++ b/c++-mode/.yas-parents
@@ -0,0 +1 @@
+cc-mode
diff --git a/c++-mode/assert b/c++-mode/assert
new file mode 100644
index 0000000..f8f6a49
--- /dev/null
+++ b/c++-mode/assert
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: assert
+# key: ass
+# --
+assert($0); \ No newline at end of file
diff --git a/c++-mode/beginend b/c++-mode/beginend
new file mode 100644
index 0000000..51748ae
--- /dev/null
+++ b/c++-mode/beginend
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name : v.begin(), v.end()
+# key: beginend
+# --
+${1:v}.begin(), $1.end \ No newline at end of file
diff --git a/c++-mode/boost_require b/c++-mode/boost_require
new file mode 100644
index 0000000..804bb3f
--- /dev/null
+++ b/c++-mode/boost_require
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: boost_require
+# key: req
+# group: boost
+# --
+BOOST_REQUIRE( ${1:condition} );
+$0 \ No newline at end of file
diff --git a/c++-mode/cerr b/c++-mode/cerr
new file mode 100644
index 0000000..2be4917
--- /dev/null
+++ b/c++-mode/cerr
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: cerr
+# key: err
+# --
+cerr << $0;
diff --git a/c++-mode/cin b/c++-mode/cin
new file mode 100644
index 0000000..401ccda
--- /dev/null
+++ b/c++-mode/cin
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: cin
+# key: cin
+# --
+cin >> $0; \ No newline at end of file
diff --git a/c++-mode/class b/c++-mode/class
new file mode 100644
index 0000000..18d0b54
--- /dev/null
+++ b/c++-mode/class
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# name: class
+# key: cls
+# --
+class ${1:Name}
+{
+public:
+ ${1:$(yas/substr yas-text "[^: ]*")}();
+ ${2:virtual ~${1:$(yas/substr yas-text "[^: ]*")}();}
+};
+$0 \ No newline at end of file
diff --git a/c++-mode/const_[] b/c++-mode/const_[]
new file mode 100644
index 0000000..ef92ffb
--- /dev/null
+++ b/c++-mode/const_[]
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: const_[]
+# key: c[
+# --
+const ${1:Type}& operator[](${2:int index}) const
+{
+ $0
+} \ No newline at end of file
diff --git a/c++-mode/constructor b/c++-mode/constructor
new file mode 100644
index 0000000..95ed499
--- /dev/null
+++ b/c++-mode/constructor
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: constructor
+# key: ct
+# --
+${1:Class}::$1(${2:args}) ${3: : ${4:init}}
+{
+ $0
+} \ No newline at end of file
diff --git a/c++-mode/cout b/c++-mode/cout
new file mode 100644
index 0000000..a1a151b
--- /dev/null
+++ b/c++-mode/cout
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# contributor: York Zhao <gtdplatform@gmail.com>
+# name: cout
+# key: cout
+# --
+`(progn (save-excursion) (goto-char (point-min)) (unless (re-search-forward
+"^using\\s-+namespace std;" nil 'no-errer) "std::"))
+`cout << $0${1: << '${2:\n}'}; \ No newline at end of file
diff --git a/c++-mode/cpp b/c++-mode/cpp
new file mode 100644
index 0000000..99ea53c
--- /dev/null
+++ b/c++-mode/cpp
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: cpp
+# key: cpp
+# --
+#include "`(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))`.h" \ No newline at end of file
diff --git a/c++-mode/cstd b/c++-mode/cstd
new file mode 100644
index 0000000..6148875
--- /dev/null
+++ b/c++-mode/cstd
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: cstd
+# key: cstd
+# --
+#include <cstdlib> \ No newline at end of file
diff --git a/c++-mode/d+= b/c++-mode/d+=
new file mode 100644
index 0000000..b3bf110
--- /dev/null
+++ b/c++-mode/d+=
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: d+=
+# key: d+=
+# --
+${1:MyClass}& operator+=(${2:const $1 &}); \ No newline at end of file
diff --git a/c++-mode/d_operator b/c++-mode/d_operator
new file mode 100644
index 0000000..c7f40fc
--- /dev/null
+++ b/c++-mode/d_operator
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: d_operator<<
+# key: <<
+# --
+friend std::ostream& operator<<(std::ostream&, const ${1:Class}&); \ No newline at end of file
diff --git a/c++-mode/d_operator[] b/c++-mode/d_operator[]
new file mode 100644
index 0000000..d0555f7
--- /dev/null
+++ b/c++-mode/d_operator[]
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: d_operator[]
+# key: [
+# --
+${1:Type}& operator[](${2:int index}); \ No newline at end of file
diff --git a/c++-mode/d_operator[]_const b/c++-mode/d_operator[]_const
new file mode 100644
index 0000000..b4c1f8f
--- /dev/null
+++ b/c++-mode/d_operator[]_const
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: d_operator[]_const
+# key: c[
+# --
+const ${1:Type}& operator[](${2:int index}) const; \ No newline at end of file
diff --git a/c++-mode/d_operator_istream b/c++-mode/d_operator_istream
new file mode 100644
index 0000000..36f88e0
--- /dev/null
+++ b/c++-mode/d_operator_istream
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: d_operator>>
+# key: >>
+# --
+friend std::istream& operator>>(std::istream&, const ${1:Class}&); \ No newline at end of file
diff --git a/c++-mode/d_operator_ostream b/c++-mode/d_operator_ostream
new file mode 100644
index 0000000..c7f40fc
--- /dev/null
+++ b/c++-mode/d_operator_ostream
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: d_operator<<
+# key: <<
+# --
+friend std::ostream& operator<<(std::ostream&, const ${1:Class}&); \ No newline at end of file
diff --git a/c++-mode/delete b/c++-mode/delete
new file mode 100644
index 0000000..61119d1
--- /dev/null
+++ b/c++-mode/delete
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: delete
+# key: dl
+# --
+delete ${1:pointer}; \ No newline at end of file
diff --git a/c++-mode/delete[] b/c++-mode/delete[]
new file mode 100644
index 0000000..69223c2
--- /dev/null
+++ b/c++-mode/delete[]
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: delete[]
+# key: dla
+# --
+delete[] ${1:arr}; \ No newline at end of file
diff --git a/c++-mode/doc b/c++-mode/doc
new file mode 100644
index 0000000..b58550a
--- /dev/null
+++ b/c++-mode/doc
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: doc
+# key: doc
+# --
+/**
+ * $0
+ */ \ No newline at end of file
diff --git a/c++-mode/dynamic_casting b/c++-mode/dynamic_casting
new file mode 100644
index 0000000..f09c171
--- /dev/null
+++ b/c++-mode/dynamic_casting
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: dynamic_casting
+# key: cast
+# --
+check_and_cast<${1:Type} *>(${2:msg}); \ No newline at end of file
diff --git a/c++-mode/enum b/c++-mode/enum
new file mode 100644
index 0000000..7b22035
--- /dev/null
+++ b/c++-mode/enum
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: enum
+# key: enum
+# --
+enum ${1:NAME}{
+$0
+}; \ No newline at end of file
diff --git a/c++-mode/fixture b/c++-mode/fixture
new file mode 100644
index 0000000..1a25aee
--- /dev/null
+++ b/c++-mode/fixture
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: fixture
+# key: fixt
+# --
+BOOST_FIXTURE_TEST_SUITE( ${1:name}, ${2:Fixture} )
+
+$0
+
+BOOST_AUTO_TEST_SUITE_END() \ No newline at end of file
diff --git a/c++-mode/fori b/c++-mode/fori
new file mode 100644
index 0000000..7676a89
--- /dev/null
+++ b/c++-mode/fori
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: fori
+# key: fori
+# --
+for (${1:auto }${2:it} = ${3:var}.begin(); $2 != $3.end(); ++$2) {
+ $0
+} \ No newline at end of file
diff --git a/c++-mode/friend b/c++-mode/friend
new file mode 100644
index 0000000..d3c9009
--- /dev/null
+++ b/c++-mode/friend
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: friend
+# key: fr
+# --
+friend $0; \ No newline at end of file
diff --git a/c++-mode/fun_declaration b/c++-mode/fun_declaration
new file mode 100644
index 0000000..03184dc
--- /dev/null
+++ b/c++-mode/fun_declaration
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: fun_declaration
+# key: f
+# --
+${1:type} ${2:name}(${3:args})${4: const}; \ No newline at end of file
diff --git a/c++-mode/function b/c++-mode/function
new file mode 100644
index 0000000..c947c34
--- /dev/null
+++ b/c++-mode/function
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: function
+# key: f
+# --
+${1:type} ${2:Class}::${3:name}(${4:args})${5: const}
+{
+ $0
+} \ No newline at end of file
diff --git a/c++-mode/gtest b/c++-mode/gtest
new file mode 100644
index 0000000..8ba9c57
--- /dev/null
+++ b/c++-mode/gtest
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: gtest
+# key: gtest
+# group: testing
+# --
+#include <gtest/gtest.h> \ No newline at end of file
diff --git a/c++-mode/ignore b/c++-mode/ignore
new file mode 100644
index 0000000..ac4085d
--- /dev/null
+++ b/c++-mode/ignore
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: ignore
+# key: ignore
+# --
+${1:std::}cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n'); \ No newline at end of file
diff --git a/c++-mode/inline b/c++-mode/inline
new file mode 100644
index 0000000..da5c320
--- /dev/null
+++ b/c++-mode/inline
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: inline
+# key: il
+# --
+inline $0 \ No newline at end of file
diff --git a/c++-mode/io b/c++-mode/io
new file mode 100644
index 0000000..1355dac
--- /dev/null
+++ b/c++-mode/io
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: io
+# key: io
+# --
+#include <iostream> \ No newline at end of file
diff --git a/c++-mode/iterator b/c++-mode/iterator
new file mode 100644
index 0000000..1aad629
--- /dev/null
+++ b/c++-mode/iterator
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: iterator
+# key: iter
+# --
+${1:std::}${2:vector<int>}::iterator ${3:iter};
diff --git a/c++-mode/map b/c++-mode/map
new file mode 100644
index 0000000..17ed9ae
--- /dev/null
+++ b/c++-mode/map
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: map
+# key: map
+# --
+std::map<${1:type1}$0> ${2:var}; \ No newline at end of file
diff --git a/c++-mode/module b/c++-mode/module
new file mode 100644
index 0000000..b962be4
--- /dev/null
+++ b/c++-mode/module
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: module
+# key: mod
+# --
+class ${1:Class} : public cSimpleModule
+{
+ $0
+} \ No newline at end of file
diff --git a/c++-mode/namespace b/c++-mode/namespace
new file mode 100644
index 0000000..5f702d8
--- /dev/null
+++ b/c++-mode/namespace
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: namespace
+# key: ns
+# --
+namespace ${1:Namespace} {
+
+ `yas/selected-text`
+
+} // $1 \ No newline at end of file
diff --git a/c++-mode/ns b/c++-mode/ns
new file mode 100644
index 0000000..0b736e7
--- /dev/null
+++ b/c++-mode/ns
@@ -0,0 +1,4 @@
+#name : namespace ...
+# key: ns
+# --
+namespace \ No newline at end of file
diff --git a/c++-mode/operator!= b/c++-mode/operator!=
new file mode 100644
index 0000000..0b9c3c3
--- /dev/null
+++ b/c++-mode/operator!=
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: operator!=
+# key: !=
+# group: operator overloading
+# --
+bool ${1:MyClass}::operator!=(const $1 &other) const
+{
+ return !(*this == other);
+} \ No newline at end of file
diff --git a/c++-mode/operator+ b/c++-mode/operator+
new file mode 100644
index 0000000..cc1d9aa
--- /dev/null
+++ b/c++-mode/operator+
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# name: operator+
+# key: +
+# group: operator overloading
+# --
+${1:MyClass} $1::operator+(const $1 &other)
+{
+ $1 result = *this;
+ result += other;
+ return result;
+} \ No newline at end of file
diff --git a/c++-mode/operator+= b/c++-mode/operator+=
new file mode 100644
index 0000000..e913631
--- /dev/null
+++ b/c++-mode/operator+=
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: operator+=
+# key: +=
+# group: operator overloading
+# --
+${1:MyClass}& $1::operator+=(${2:const $1 &rhs})
+{
+ $0
+ return *this;
+} \ No newline at end of file
diff --git a/c++-mode/operator= b/c++-mode/operator=
new file mode 100644
index 0000000..272af5d
--- /dev/null
+++ b/c++-mode/operator=
@@ -0,0 +1,14 @@
+# -*- mode: snippet -*-
+# name: operator=
+# key: =
+# where this is a reference to myself
+# group: operator overloading
+# --
+${1:MyClass}& $1::operator=(const $1 &rhs)
+{
+ // Check for self-assignment!
+ if (this == &rhs)
+ return *this;
+ $0
+ return *this;
+} \ No newline at end of file
diff --git a/c++-mode/operator== b/c++-mode/operator==
new file mode 100644
index 0000000..f8fb3e9
--- /dev/null
+++ b/c++-mode/operator==
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: operator==
+# key: ==
+# group: operator overloading
+# --
+bool ${1:MyClass}::operator==(const $1 &other) const
+{
+ $0
+} \ No newline at end of file
diff --git a/c++-mode/operator[] b/c++-mode/operator[]
new file mode 100644
index 0000000..5fb110b
--- /dev/null
+++ b/c++-mode/operator[]
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: operator[]
+# key: []
+# group: operator overloading
+# --
+${1:Type}& operator[](${2:int index})
+{
+ $0
+} \ No newline at end of file
diff --git a/c++-mode/operator_istream b/c++-mode/operator_istream
new file mode 100644
index 0000000..e2296ab
--- /dev/null
+++ b/c++-mode/operator_istream
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: operator>>
+# key: >>
+# group: operator overloading
+# --
+std::istream& operator>>(std::istream& is, const ${1:Class}& ${2:c})
+{
+ $0
+ return is;
+} \ No newline at end of file
diff --git a/c++-mode/operator_ostream b/c++-mode/operator_ostream
new file mode 100644
index 0000000..cd77eb4
--- /dev/null
+++ b/c++-mode/operator_ostream
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: operator<<
+# key: <<
+# group: operator overloading
+# --
+std::ostream& operator<<(std::ostream& os, const ${1:Class}& ${2:c})
+{
+ $0
+ return os;
+} \ No newline at end of file
diff --git a/c++-mode/ostream b/c++-mode/ostream
new file mode 100644
index 0000000..9371338
--- /dev/null
+++ b/c++-mode/ostream
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: ostream
+# key: os
+# --
+#include <ostream> \ No newline at end of file
diff --git a/c++-mode/pack b/c++-mode/pack
new file mode 100644
index 0000000..5172bb9
--- /dev/null
+++ b/c++-mode/pack
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: pack
+# key: pack
+# --
+void cNetCommBuffer::pack(${1:type})
+{
+
+}
+
+$0 \ No newline at end of file
diff --git a/c++-mode/private b/c++-mode/private
new file mode 100644
index 0000000..849d7ee
--- /dev/null
+++ b/c++-mode/private
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: private
+# key: pr
+# --
+private:
+ $0 \ No newline at end of file
diff --git a/c++-mode/protected b/c++-mode/protected
new file mode 100644
index 0000000..a4f6d59
--- /dev/null
+++ b/c++-mode/protected
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: protected
+# key: pt
+# --
+protected:
+ $0 \ No newline at end of file
diff --git a/c++-mode/public b/c++-mode/public
new file mode 100644
index 0000000..638ddfd
--- /dev/null
+++ b/c++-mode/public
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: public
+# key: pb
+# --
+public:
+ $0 \ No newline at end of file
diff --git a/c++-mode/sstream b/c++-mode/sstream
new file mode 100644
index 0000000..738fd11
--- /dev/null
+++ b/c++-mode/sstream
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: <sstream>
+# key: ss
+# --
+#include <sstream> \ No newline at end of file
diff --git a/c++-mode/std b/c++-mode/std
new file mode 100644
index 0000000..04d8772
--- /dev/null
+++ b/c++-mode/std
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: std
+# key: std
+# --
+using namespace std; \ No newline at end of file
diff --git a/c++-mode/std_colon b/c++-mode/std_colon
new file mode 100644
index 0000000..d9ea8e7
--- /dev/null
+++ b/c++-mode/std_colon
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: std::
+# key: st
+# --
+std::$0 \ No newline at end of file
diff --git a/c++-mode/str b/c++-mode/str
new file mode 100644
index 0000000..95b865c
--- /dev/null
+++ b/c++-mode/str
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: str
+# key: str
+# --
+#include <string> \ No newline at end of file
diff --git a/c++-mode/template b/c++-mode/template
new file mode 100644
index 0000000..64814b8
--- /dev/null
+++ b/c++-mode/template
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: template
+# key: temp
+# --
+template<${1:$$(yas/choose-value '("typename" "class"))} ${2:T}>
+$0 \ No newline at end of file
diff --git a/c++-mode/test case b/c++-mode/test case
new file mode 100644
index 0000000..4977ae8
--- /dev/null
+++ b/c++-mode/test case
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: test case
+# key: tc
+# group: testing
+# --
+BOOST_AUTO_TEST_CASE( ${1:test_case} )
+{
+ $0
+} \ No newline at end of file
diff --git a/c++-mode/test_main b/c++-mode/test_main
new file mode 100644
index 0000000..9321cf3
--- /dev/null
+++ b/c++-mode/test_main
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: test_main
+# key: test_main
+# group: testing
+# --
+int main(int argc, char **argv)
+{
+ ::testing::InitGoogleTest(&argc, argv);
+ return RUN_ALL_TESTS();
+} \ No newline at end of file
diff --git a/c++-mode/test_suite b/c++-mode/test_suite
new file mode 100644
index 0000000..84d0f46
--- /dev/null
+++ b/c++-mode/test_suite
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: test_suite
+# key: ts
+# group: testing
+# --
+BOOST_AUTO_TEST_SUITE( ${1:test_suite1} )
+
+$0
+
+BOOST_AUTO_TEST_SUITE_END() \ No newline at end of file
diff --git a/c++-mode/this b/c++-mode/this
new file mode 100644
index 0000000..5c7e6a3
--- /dev/null
+++ b/c++-mode/this
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: this
+# key: th
+# --
+this \ No newline at end of file
diff --git a/c++-mode/throw b/c++-mode/throw
new file mode 100644
index 0000000..95616db
--- /dev/null
+++ b/c++-mode/throw
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: throw
+# key: throw
+# --
+throw ${1:MyError}($0); \ No newline at end of file
diff --git a/c++-mode/try b/c++-mode/try
new file mode 100644
index 0000000..f44c67f
--- /dev/null
+++ b/c++-mode/try
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: try
+# key: try
+# a bit too intrusive now still, not always I want to do this
+# --
+try {
+ $0
+} catch (${1:type}) {
+
+}
diff --git a/c++-mode/tryw b/c++-mode/tryw
new file mode 100644
index 0000000..cf61928
--- /dev/null
+++ b/c++-mode/tryw
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: tryw
+# key: tryw
+# --
+try {
+ `(or yas/selected-text (car kill-ring))`
+} catch ${1:Exception} {
+
+}
diff --git a/c++-mode/using b/c++-mode/using
new file mode 100644
index 0000000..27ec885
--- /dev/null
+++ b/c++-mode/using
@@ -0,0 +1,5 @@
+#name : using namespace ...
+# key: using
+# --
+using namespace ${std};
+$0 \ No newline at end of file
diff --git a/c++-mode/vector b/c++-mode/vector
new file mode 100644
index 0000000..ef118a2
--- /dev/null
+++ b/c++-mode/vector
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: vector
+# key: vec
+# --
+std::vector<${1:Class}> ${2:var}${3:(${4:10}, $1($5))}; \ No newline at end of file
diff --git a/c-mode/.yas-parents b/c-mode/.yas-parents
new file mode 100644
index 0000000..ce9828b
--- /dev/null
+++ b/c-mode/.yas-parents
@@ -0,0 +1 @@
+cc-mode
diff --git a/c-mode/assert b/c-mode/assert
new file mode 100644
index 0000000..964205e
--- /dev/null
+++ b/c-mode/assert
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: assert
+# key: ass
+# --
+#include <assert.h>
+$0 \ No newline at end of file
diff --git a/c-mode/compile b/c-mode/compile
new file mode 100644
index 0000000..8246a10
--- /dev/null
+++ b/c-mode/compile
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: compile
+# key: compile
+# --
+// -*- compile-command: "${1:gcc -Wall -o ${2:dest} ${3:file}}" -*- \ No newline at end of file
diff --git a/c-mode/define b/c-mode/define
new file mode 100644
index 0000000..9d5c5dd
--- /dev/null
+++ b/c-mode/define
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: define
+# key: d
+# --
+#define $0 \ No newline at end of file
diff --git a/c-mode/fopen b/c-mode/fopen
new file mode 100644
index 0000000..0e48c21
--- /dev/null
+++ b/c-mode/fopen
@@ -0,0 +1,4 @@
+#name : FILE *fp = fopen(..., ...);
+# key: fopen
+# --
+FILE *${fp} = fopen(${"file"}, "${r}"); \ No newline at end of file
diff --git a/c-mode/malloc b/c-mode/malloc
new file mode 100644
index 0000000..2a51de3
--- /dev/null
+++ b/c-mode/malloc
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: malloc
+# key: malloc
+# --
+malloc(sizeof($1)${2: * ${3:3}});
+$0 \ No newline at end of file
diff --git a/c-mode/packed b/c-mode/packed
new file mode 100644
index 0000000..b4eb125
--- /dev/null
+++ b/c-mode/packed
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: packed
+# key: packed
+# --
+__attribute__((__packed__))$0 \ No newline at end of file
diff --git a/c-mode/printf b/c-mode/printf
new file mode 100644
index 0000000..ccc788c
--- /dev/null
+++ b/c-mode/printf
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: printf
+# key: pr
+# --
+printf("${1:format string}"${2: ,a0,a1}); \ No newline at end of file
diff --git a/c-mode/stdio b/c-mode/stdio
new file mode 100644
index 0000000..7529766
--- /dev/null
+++ b/c-mode/stdio
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: stdio
+# key: io
+# --
+#include <stdio.h> \ No newline at end of file
diff --git a/c-mode/stdlib b/c-mode/stdlib
new file mode 100644
index 0000000..a7d117b
--- /dev/null
+++ b/c-mode/stdlib
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: stdlib
+# key: std
+# --
+#include <stdlib.h>
diff --git a/c-mode/string b/c-mode/string
new file mode 100644
index 0000000..d45b757
--- /dev/null
+++ b/c-mode/string
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: string
+# key: str
+# --
+#include <string.h> \ No newline at end of file
diff --git a/c-mode/union b/c-mode/union
new file mode 100644
index 0000000..b4ec5fa
--- /dev/null
+++ b/c-mode/union
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: union
+# key: union
+# --
+typedef union {
+ $0
+} ${1:name}; \ No newline at end of file
diff --git a/c-mode/unistd b/c-mode/unistd
new file mode 100644
index 0000000..d5fca02
--- /dev/null
+++ b/c-mode/unistd
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: unistd
+# key: uni
+# --
+#include <unistd.h> \ No newline at end of file
diff --git a/cc-mode/case b/cc-mode/case
new file mode 100644
index 0000000..0b3dc36
--- /dev/null
+++ b/cc-mode/case
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name : case : {...}
+# key: case
+# --
+`(indent-region (- (point) 20) (+ (point) 20) nil)`case ${2:constexpr}:${3: \{}
+ $0
+ break;
+${3:$(if (string-match "\{" yas-text) "\}" "")} \ No newline at end of file
diff --git a/cc-mode/do b/cc-mode/do
new file mode 100644
index 0000000..70e208a
--- /dev/null
+++ b/cc-mode/do
@@ -0,0 +1,7 @@
+#name : do { ... } while (...)
+# key: do
+# --
+do
+{
+ $0
+} while (${1:condition}); \ No newline at end of file
diff --git a/cc-mode/else b/cc-mode/else
new file mode 100644
index 0000000..99e006d
--- /dev/null
+++ b/cc-mode/else
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name : else { ... }
+# key: else
+# --
+else${1: {
+ $0
+}} \ No newline at end of file
diff --git a/cc-mode/fopen b/cc-mode/fopen
new file mode 100644
index 0000000..f41cf62
--- /dev/null
+++ b/cc-mode/fopen
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: FILE *fp = fopen(..., ...);
+# key: fopen
+# --
+FILE *${fp} = fopen(${"file"}, "${r}"); \ No newline at end of file
diff --git a/cc-mode/for b/cc-mode/for
new file mode 100644
index 0000000..e445f4d
--- /dev/null
+++ b/cc-mode/for
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: for
+# key: for
+# --
+for (${1:i = 0}; ${2:i < N}; ${3:i++}) {
+ $0
+}
diff --git a/cc-mode/for_n b/cc-mode/for_n
new file mode 100644
index 0000000..014d8ff
--- /dev/null
+++ b/cc-mode/for_n
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# contributor: York Zhao
+# name: for_n
+# key: forn
+# --
+for (${1:auto }${2:i} = ${3:0}; $2 < ${4:MAXIMUM}; ++$2) {
+ $0
+}
diff --git a/cc-mode/if b/cc-mode/if
new file mode 100644
index 0000000..751c6f5
--- /dev/null
+++ b/cc-mode/if
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name : if (...) { ... }
+# key: if
+# --
+if (${1:condition}) ${2:{
+ $0
+}} \ No newline at end of file
diff --git a/cc-mode/ifdef b/cc-mode/ifdef
new file mode 100644
index 0000000..578ed8a
--- /dev/null
+++ b/cc-mode/ifdef
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: ifdef
+# key: ifdef
+# --
+#ifdef ${1:MACRO}
+
+$0
+
+#endif // $1 \ No newline at end of file
diff --git a/cc-mode/inc b/cc-mode/inc
new file mode 100644
index 0000000..96beaa7
--- /dev/null
+++ b/cc-mode/inc
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name : #include <...>
+# key : inc
+# --
+#include <$1> \ No newline at end of file
diff --git a/cc-mode/inc.1 b/cc-mode/inc.1
new file mode 100644
index 0000000..64a8653
--- /dev/null
+++ b/cc-mode/inc.1
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name : #include "..."
+# key : inc
+# --
+#include "$1" \ No newline at end of file
diff --git a/cc-mode/main b/cc-mode/main
new file mode 100644
index 0000000..b05494e
--- /dev/null
+++ b/cc-mode/main
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: main
+# key: main
+# --
+int main(${1:int argc, char *argv[]})
+{
+ $0
+ return 0;
+}
diff --git a/cc-mode/math b/cc-mode/math
new file mode 100644
index 0000000..820fd16
--- /dev/null
+++ b/cc-mode/math
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: math
+# key: math
+# --
+#include <math.h>
+$0 \ No newline at end of file
diff --git a/cc-mode/once b/cc-mode/once
new file mode 100644
index 0000000..8d7003a
--- /dev/null
+++ b/cc-mode/once
@@ -0,0 +1,9 @@
+#name : #ifndef XXX; #define XXX; #endif
+# key: once
+# --
+#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/cc-mode/printf b/cc-mode/printf
new file mode 100644
index 0000000..1e276ec
--- /dev/null
+++ b/cc-mode/printf
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: printf
+# key: printf
+# --
+printf("${1:%s}\\n"${1:$(if (string-match "%" yas-text) ", " "\);")
+}$2${1:$(if (string-match "%" yas-text) "\);" "")} \ No newline at end of file
diff --git a/cc-mode/struct b/cc-mode/struct
new file mode 100644
index 0000000..aeacc33
--- /dev/null
+++ b/cc-mode/struct
@@ -0,0 +1,7 @@
+#name : struct ... { ... }
+# key: struct
+# --
+struct ${1:name}
+{
+ $0
+}; \ No newline at end of file
diff --git a/cc-mode/switch b/cc-mode/switch
new file mode 100644
index 0000000..6827bba
--- /dev/null
+++ b/cc-mode/switch
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# name : switch (...) { case : ... default: ...}
+# key: switch
+# --
+switch (${1:expr}) {
+case ${2:constexpr}:${3: \{}
+ $0
+ break;
+${3:$(if (string-match "\{" yas-text) "\}\n" "")}default:
+ break;
+} \ No newline at end of file
diff --git a/cc-mode/ternary b/cc-mode/ternary
new file mode 100644
index 0000000..3c31d93
--- /dev/null
+++ b/cc-mode/ternary
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: ternary
+# key: ?
+# --
+(${1:cond}) ? ${2:then} : ${3:else}; \ No newline at end of file
diff --git a/cc-mode/typedef b/cc-mode/typedef
new file mode 100644
index 0000000..6cb41b1
--- /dev/null
+++ b/cc-mode/typedef
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: typedef
+# key: typedef
+# --
+typedef ${1:type} ${2:alias}; \ No newline at end of file
diff --git a/cc-mode/while b/cc-mode/while
new file mode 100644
index 0000000..e9f07ca
--- /dev/null
+++ b/cc-mode/while
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: while
+# key: while
+# --
+while (${1:condition}) {
+ $0
+} \ No newline at end of file
diff --git a/chef-mode/action b/chef-mode/action
new file mode 100644
index 0000000..98fa8ac
--- /dev/null
+++ b/chef-mode/action
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: action
+# key: action
+# --
+action: ${0:nothing} \ No newline at end of file
diff --git a/chef-mode/bash b/chef-mode/bash
new file mode 100644
index 0000000..90a485f
--- /dev/null
+++ b/chef-mode/bash
@@ -0,0 +1,14 @@
+# -*- mode: snippet -*-
+# name: bash
+# key: bash
+# --
+bash "${1:install something}" do
+ user "${2:root}"
+ cwd "${3:/tmp}"
+ creates "${4:maybe}"
+ code <<-EOH
+ STATUS=0
+ $0 || STATUS=1
+ exit $STATUS
+ EOH
+end \ No newline at end of file
diff --git a/chef-mode/cookbook_file b/chef-mode/cookbook_file
new file mode 100644
index 0000000..9d13d2b
--- /dev/null
+++ b/chef-mode/cookbook_file
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: cookbook_file
+# key: cookbook_file
+# --
+cookbook_file "${1:/tmp/file}" do
+ owner "${2:root}"
+ group "${3:root}"
+ mode "${4:0644}"
+ source "${5:my-filename}"
+end \ No newline at end of file
diff --git a/chef-mode/cron b/chef-mode/cron
new file mode 100644
index 0000000..ee4b57d
--- /dev/null
+++ b/chef-mode/cron
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: cron
+# key: cron
+# --
+cron "${1:name}" do
+ hour "${2:5}"
+ minute "${3:0}"
+
+ command "${4:/bin/true}"
+end \ No newline at end of file
diff --git a/chef-mode/cronf b/chef-mode/cronf
new file mode 100644
index 0000000..afe369c
--- /dev/null
+++ b/chef-mode/cronf
@@ -0,0 +1,16 @@
+# -*- mode: snippet -*-
+# name: cronf
+# key: cronf
+# --
+cron "${1:name}" do
+ hour "${2:*}"
+ minute "${3:*}"
+ day "${4:*}"
+ weekday "${6:*}"
+ command "${7:/bin/true}"
+ user "${8:root}"
+ mailto "${9:root@example.com}"
+ path "${10:/bin:/usr/bin}"
+ home "${11:/tmp}"
+ shell "${12:/bin/bash}"
+end
diff --git a/chef-mode/deploy b/chef-mode/deploy
new file mode 100644
index 0000000..499982e
--- /dev/null
+++ b/chef-mode/deploy
@@ -0,0 +1,18 @@
+# -*- mode: snippet -*-
+# name: deploy
+# key: deploy
+# --
+deploy "/my/deploy/dir" do
+ repo "git@github.com/whoami/provideroject"
+ revision "abc123" # or "HEAD" or "TAG_for_1.0" or (subversion) "1234"
+ user "deploy_ninja"
+ enable_submodules true
+ migrate true
+ migration_command "rake db:migrate"
+ environment "RAILS_ENV" => "production", "OTHER_ENV" => "foo"
+ shallow_clone true
+ action :deploy # or :rollback
+ restart_command "touch tmp/restart.txt"
+ git_ssh_wrapper "wrap-ssh4git.sh"
+ scm_provider Chef::Provider::Git # is the default, for svn: Chefhef::Provider::Subversion
+end
diff --git a/chef-mode/directory b/chef-mode/directory
new file mode 100644
index 0000000..63005be
--- /dev/null
+++ b/chef-mode/directory
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# name: directory
+# key: directory
+# --
+directory "${1:name}" do
+ owner "root"
+ group "root"
+ mode "0755"
+
+ action :create
+end
diff --git a/chef-mode/directoryf b/chef-mode/directoryf
new file mode 100644
index 0000000..4496829
--- /dev/null
+++ b/chef-mode/directoryf
@@ -0,0 +1,13 @@
+# -*- mode: snippet -*-
+# name: directoryf
+# key: directoryf
+# --
+directory "${1:name}" do
+ owner "$create{2:root}"
+ group "${3:root}"
+ mode "${4:0755}"
+ path "${5:name}"
+ recursive ${6:false}
+
+ action :${7:create}
+end
diff --git a/chef-mode/env b/chef-mode/env
new file mode 100644
index 0000000..6a8ab6d
--- /dev/null
+++ b/chef-mode/env
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: env
+# key: env
+# --
+env "${1:RAILS_ENV}" do
+ value "${2:production}"
+end \ No newline at end of file
diff --git a/chef-mode/execute b/chef-mode/execute
new file mode 100644
index 0000000..356d854
--- /dev/null
+++ b/chef-mode/execute
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: execute
+# key: execute
+# --
+execute "${1:name}" do
+ command "${2:ls -la}"
+ creates "${3:/tmp/something}"
+
+ action :${4:run}
+end \ No newline at end of file
diff --git a/chef-mode/executef b/chef-mode/executef
new file mode 100644
index 0000000..2ad7786
--- /dev/null
+++ b/chef-mode/executef
@@ -0,0 +1,18 @@
+# -*- mode: snippet -*-
+# name: executef
+# key: executef
+# --
+execute "${1:name}" do
+ command "${2:ls -la}"
+ creates "$ls{3:/tmp/something}"
+ cwd "${4:/tmp}"
+ environment ({${5:'HOME' => '/home/myhome'}})
+ user "${6:root}"
+ group "${7:root}"
+ path "${8:['/opt/bin','/opt/sbin']}"
+ timeout ${9:3600}
+ returns ${10:0}
+ umask "${11:022}umask"
+
+ action :${12:run}
+end \ No newline at end of file
diff --git a/chef-mode/file b/chef-mode/file
new file mode 100644
index 0000000..3d85756
--- /dev/null
+++ b/chef-mode/file
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# name: file
+# key: file
+# --
+file "${1:name}" do
+ owner "root"
+ group "root"
+ mode "0644"
+
+ action :create
+end \ No newline at end of file
diff --git a/chef-mode/filef b/chef-mode/filef
new file mode 100644
index 0000000..facd77e
--- /dev/null
+++ b/chef-mode/filef
@@ -0,0 +1,14 @@
+# -*- mode: snippet -*-
+# name: filef
+# key: filef
+# --
+file "${1:name}" do
+ path "${3:path}"
+ backup ${4:5}
+ owner "${5:root}"
+ group "${6:root}"
+ mode "${7:0644}"
+ content "${8:content here}"
+
+ action :${2:create}
+end \ No newline at end of file
diff --git a/chef-mode/git b/chef-mode/git
new file mode 100644
index 0000000..309d844
--- /dev/null
+++ b/chef-mode/git
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# name: git
+# key: git
+# --
+git "${1:/home/user/deployment}" do
+ repository "${2:git@github.com:gitsite/deploymentployment.git}"
+ reference "${3:master}"
+ user "${4:user}"
+ group "${5:templateest}"
+ action :sync
+end \ No newline at end of file
diff --git a/chef-mode/group b/chef-mode/group
new file mode 100644
index 0000000..73ad1f8
--- /dev/null
+++ b/chef-mode/group
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: group
+# key: group
+# --
+group "${1:name}" do
+ gid ${2:999}
+ members [${3:'paco','vicente'}]
+
+ action :create
+end \ No newline at end of file
diff --git a/chef-mode/http_request b/chef-mode/http_request
new file mode 100644
index 0000000..b3a2882
--- /dev/null
+++ b/chef-mode/http_request
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: http_request
+# key: http_request
+# --
+http_request "${1:some message}" do
+ url "${2:http://example.com/check_in}"
+end \ No newline at end of file
diff --git a/chef-mode/http_requestp b/chef-mode/http_requestp
new file mode 100644
index 0000000..96047dd
--- /dev/null
+++ b/chef-mode/http_requestp
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: http_requestp
+# key: http_requestp
+# --
+http_request "${1:posting data}" do
+ action :post
+ url "${2:http://example.com/check_in}"
+ message ${3::some => "data"}
+ headers (${4:\{"AUTHORIZATION" => authorization\}})
+end \ No newline at end of file
diff --git a/chef-mode/ignore_failure b/chef-mode/ignore_failure
new file mode 100644
index 0000000..6dbed60
--- /dev/null
+++ b/chef-mode/ignore_failure
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: ignore_failure
+# key: ignore_failure
+# --
+ignore_failure ${0:true} \ No newline at end of file
diff --git a/chef-mode/inc b/chef-mode/inc
new file mode 100644
index 0000000..4fd785a
--- /dev/null
+++ b/chef-mode/inc
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: inc
+# key: inc
+# --
+include_recipe "${1:example::recipe}" \ No newline at end of file
diff --git a/chef-mode/link b/chef-mode/link
new file mode 100644
index 0000000..f429d3c
--- /dev/null
+++ b/chef-mode/link
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: link
+# key: link
+# --
+link "${1:/tmp/passwd}" do
+ to "${2:/etc/passwd}"
+end \ No newline at end of file
diff --git a/chef-mode/linkf b/chef-mode/linkf
new file mode 100644
index 0000000..cec083f
--- /dev/null
+++ b/chef-mode/linkf
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: linkf
+# key: linkf
+# --
+link "${1:/tmp/passwd}" do
+ to "${2:/etc/passwd}"
+ link_type :${3:symbolic}
+ owner "${4:root}"
+ group "${5:root}"
+end \ No newline at end of file
diff --git a/chef-mode/log b/chef-mode/log
new file mode 100644
index 0000000..fce4b9e
--- /dev/null
+++ b/chef-mode/log
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: log
+# key: log
+# --
+log ("${1:your string to log}") { level :${2:debug} } \ No newline at end of file
diff --git a/chef-mode/machine b/chef-mode/machine
new file mode 100644
index 0000000..fb9ed43
--- /dev/null
+++ b/chef-mode/machine
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: machine
+# key: machine
+# --
+machine "${1:name}" do
+ role '${2:web}'
+ recipe '${3:web}'
+ chef_environment '${4:_default}'
+ converge true
+end
diff --git a/chef-mode/meta b/chef-mode/meta
new file mode 100644
index 0000000..70ba649
--- /dev/null
+++ b/chef-mode/meta
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: meta
+# key: meta
+# --
+maintainer "${1:YOUR_COMPANY_NAME}"
+maintainer_email "${2:YOUR_EMAIL}"
+license "${3:All rights reserved}"
+description "${4:Installs/Configures example}"
+long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
+version "${5:0.0.1}" \ No newline at end of file
diff --git a/chef-mode/not_if b/chef-mode/not_if
new file mode 100644
index 0000000..9cba25d
--- /dev/null
+++ b/chef-mode/not_if
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: not_if
+# key: not_if
+# --
+not_if "${1}" \ No newline at end of file
diff --git a/chef-mode/notifies b/chef-mode/notifies
new file mode 100644
index 0000000..072e50f
--- /dev/null
+++ b/chef-mode/notifies
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: notifies
+# key: notifies
+# --
+notifies :${1:restart}, "${2:service}[${3:name}]" \ No newline at end of file
diff --git a/chef-mode/only_if b/chef-mode/only_if
new file mode 100644
index 0000000..395bdf8
--- /dev/null
+++ b/chef-mode/only_if
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: only_if
+# key: only_if
+# --
+only_if "${1}" \ No newline at end of file
diff --git a/chef-mode/pac b/chef-mode/pac
new file mode 100644
index 0000000..60c9a8f
--- /dev/null
+++ b/chef-mode/pac
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: pac
+# key: pac
+# --
+package "${1:name}" do
+ action :${2:install}
+ version "${3:1.0-1}"
+end \ No newline at end of file
diff --git a/chef-mode/pak b/chef-mode/pak
new file mode 100644
index 0000000..86fec9b
--- /dev/null
+++ b/chef-mode/pak
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: pak
+# key: pak
+# --
+package "${1:name}" do
+ action :${2:install}
+ version "${3:1.0-1}"
+end \ No newline at end of file
diff --git a/chef-mode/provider b/chef-mode/provider
new file mode 100644
index 0000000..f049cb8
--- /dev/null
+++ b/chef-mode/provider
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: provider
+# key: provider
+# --
+provider Chef::Provider::${0:Package::Rubygems} \ No newline at end of file
diff --git a/chef-mode/python b/chef-mode/python
new file mode 100644
index 0000000..7cd8b4e
--- /dev/null
+++ b/chef-mode/python
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# name: python
+# key: python
+# --
+python "${1:install something}" do
+ user "${2:root}"
+ cwd "${3:/tmp}"
+ code <<-EOH
+ $0
+ EOH
+end \ No newline at end of file
diff --git a/chef-mode/remote_file b/chef-mode/remote_file
new file mode 100644
index 0000000..0c78cc9
--- /dev/null
+++ b/chef-mode/remote_file
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# name: remote_file
+# key: remote_file
+# --
+remote_file "${1:/tmp/remote_file}" do
+ owner "${2:root}"
+ group "${3:root}"
+ mode "${4:0644}"
+ source "${5:http://www.example.com/remote_file}"
+ checksum "${6:sha256checksum}"
+end \ No newline at end of file
diff --git a/chef-mode/retries b/chef-mode/retries
new file mode 100644
index 0000000..d87a424
--- /dev/null
+++ b/chef-mode/retries
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: retries
+# key: retries
+# --
+retries ${1:1}
+retry_delay ${2:2} \ No newline at end of file
diff --git a/chef-mode/role b/chef-mode/role
new file mode 100644
index 0000000..ccce3ed
--- /dev/null
+++ b/chef-mode/role
@@ -0,0 +1,12 @@
+# -*- mode: snippet -*-
+# name: role
+# key: role
+# --
+name "${1:role name}"
+ description "${2:Description for the role}"
+ env_run_lists "${3:role name}" => [
+ ]
+ run_list ""
+ default_attributes(
+ ${4::attribute => "example"}
+ )
diff --git a/chef-mode/ruby b/chef-mode/ruby
new file mode 100644
index 0000000..105a05d
--- /dev/null
+++ b/chef-mode/ruby
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: ruby
+# key: ruby
+# --
+ruby_block "${1:reload client config}" do
+ block do
+ ${0:Chef::Config.from_file("/Chefetc/chef/client.rb")}
+ end
+end \ No newline at end of file
diff --git a/chef-mode/script b/chef-mode/script
new file mode 100644
index 0000000..227c464
--- /dev/null
+++ b/chef-mode/script
@@ -0,0 +1,15 @@
+# -*- mode: snippet -*-
+# name: script
+# key: script
+# --
+script "${1:do something}" do
+ interpreter "bash"
+ user "${2:root}"
+ cwd "${3:/tmp}"
+ creates "${4:maybe}"
+ code <<-EOH
+ STATUS=0
+ $0 || STATUS=1
+ exit $STATUS
+ EOH
+end
diff --git a/chef-mode/service b/chef-mode/service
new file mode 100644
index 0000000..f653c28
--- /dev/null
+++ b/chef-mode/service
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: service
+# key: service
+# --
+service "${1:name}" do
+ supports :status => ${2:true}, :restart => ${3:true}, :truereload => ${4:true}
+ action ${5:[ :enable, :start ]}
+end \ No newline at end of file
diff --git a/chef-mode/servicep b/chef-mode/servicep
new file mode 100644
index 0000000..c7b0940
--- /dev/null
+++ b/chef-mode/servicep
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: servicep
+# key: servicep
+# --
+service "${1:name}" do
+ pattern "${2:pattern}"
+ supports :status => ${3:true}, :restart => ${4:true}, :reload => ${5:true}
+ action ${6:[ :enable, :start ]}
+end \ No newline at end of file
diff --git a/chef-mode/subscribes b/chef-mode/subscribes
new file mode 100644
index 0000000..05ec673
--- /dev/null
+++ b/chef-mode/subscribes
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: subscribes
+# key: subscribes
+# --
+subscribes :${1:restart}, "${2:template}[${3:name}]" \ No newline at end of file
diff --git a/chef-mode/supports b/chef-mode/supports
new file mode 100644
index 0000000..6fe4c84
--- /dev/null
+++ b/chef-mode/supports
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: supports
+# key: supports
+# --
+supports :status => :${1:true}, :restart => :${2:true}, :reload => :${3:true} \ No newline at end of file
diff --git a/chef-mode/template b/chef-mode/template
new file mode 100644
index 0000000..8a01cc2
--- /dev/null
+++ b/chef-mode/template
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: template
+# key: template
+# --
+template "${1:name}" do
+ source "${2:source}.erb"
+ owner "root"
+ group "root"
+ mode "0644"
+end
diff --git a/chef-mode/templatev b/chef-mode/templatev
new file mode 100644
index 0000000..c933cd7
--- /dev/null
+++ b/chef-mode/templatev
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# name: templatev
+# key: templatev
+# --
+template "${1:name}" do
+ source "${2:source}.erb"
+ owner "root"
+ group "root"
+ node "0644"
+ variables( ${3::config_var => node[:configs][:config_var]} )
+end
diff --git a/chef-mode/user b/chef-mode/user
new file mode 100644
index 0000000..5f98dde
--- /dev/null
+++ b/chef-mode/user
@@ -0,0 +1,14 @@
+# -*- mode: snippet -*-
+# name: user
+# key: user
+# --
+user "${1:random}" do
+ action :create
+ comment "${2:Random User}"
+ uid ${3:1000}
+ gid "${4:users}"
+ home "${5:/home/random}"
+ shell "${6:/bin/zsh}"
+ password "${7:\$1\$JJsvHslV\$szsCjVEroftprNn4JHtDi.}"
+ supports :manage_home =>manage_home true
+end
diff --git a/cider-repl-mode b/cider-repl-mode
new file mode 120000
index 0000000..ad14abb
--- /dev/null
+++ b/cider-repl-mode
@@ -0,0 +1 @@
+clojure-mode \ No newline at end of file
diff --git a/clojure-mode/.yas-parents b/clojure-mode/.yas-parents
new file mode 100644
index 0000000..75d003f
--- /dev/null
+++ b/clojure-mode/.yas-parents
@@ -0,0 +1 @@
+prog-mode
diff --git a/clojure-mode/bench b/clojure-mode/bench
new file mode 100644
index 0000000..fd4e151
--- /dev/null
+++ b/clojure-mode/bench
@@ -0,0 +1,7 @@
+# name: bench
+# key: bench
+# --
+(dotimes [_ 5 ]$>
+ (time (dotimes [i 1000000]$>
+ $0$>
+ )))$> \ No newline at end of file
diff --git a/clojure-mode/bp b/clojure-mode/bp
new file mode 100644
index 0000000..5760865
--- /dev/null
+++ b/clojure-mode/bp
@@ -0,0 +1,4 @@
+# name: bp
+# key: bp
+# --
+(swank.core/break)
diff --git a/clojure-mode/def b/clojure-mode/def
new file mode 100644
index 0000000..7ac6697
--- /dev/null
+++ b/clojure-mode/def
@@ -0,0 +1,4 @@
+# name: def
+# key: def
+# --
+(def $0)
diff --git a/clojure-mode/defm b/clojure-mode/defm
new file mode 100644
index 0000000..1f6bb7c
--- /dev/null
+++ b/clojure-mode/defm
@@ -0,0 +1,7 @@
+# name: defmacro
+# key: defm
+# --
+(defmacro $1
+ "$2"$>
+ [$3]$>
+ $0)$>
diff --git a/clojure-mode/defn b/clojure-mode/defn
new file mode 100644
index 0000000..f68b48e
--- /dev/null
+++ b/clojure-mode/defn
@@ -0,0 +1,7 @@
+# name: defn
+# key: defn
+# --
+(defn $1
+ "$2"$>
+ [$3]$>
+ $0)$>
diff --git a/clojure-mode/defr b/clojure-mode/defr
new file mode 100644
index 0000000..101a0e9
--- /dev/null
+++ b/clojure-mode/defr
@@ -0,0 +1,8 @@
+# name: defrecord
+# key: defr
+# --
+(defrecord
+ ^{"$1"}$>
+ $2$>
+ [$3]$>
+ $0)$>
diff --git a/clojure-mode/deft b/clojure-mode/deft
new file mode 100644
index 0000000..3337e9a
--- /dev/null
+++ b/clojure-mode/deft
@@ -0,0 +1,8 @@
+# name: deftype
+# key: deft
+# --
+(deftype
+ ^{"$1"}$>
+ $2$>
+ [$3]$>
+ $0)$> \ No newline at end of file
diff --git a/clojure-mode/doseq b/clojure-mode/doseq
new file mode 100644
index 0000000..9a7d3aa
--- /dev/null
+++ b/clojure-mode/doseq
@@ -0,0 +1,6 @@
+# name: doseq
+# key: doseq
+# --
+(doseq [$1 $2]
+ $3)$>
+$0 \ No newline at end of file
diff --git a/clojure-mode/fn b/clojure-mode/fn
new file mode 100644
index 0000000..e949ed8
--- /dev/null
+++ b/clojure-mode/fn
@@ -0,0 +1,5 @@
+# name: fn
+# key: fn
+# --
+(fn [$1]
+ $0)$>
diff --git a/clojure-mode/for b/clojure-mode/for
new file mode 100644
index 0000000..6ff8781
--- /dev/null
+++ b/clojure-mode/for
@@ -0,0 +1,5 @@
+# name: for
+# key: for
+# --
+(for [$1 $2]
+ $3)$>
diff --git a/clojure-mode/if b/clojure-mode/if
new file mode 100644
index 0000000..e3a0bd3
--- /dev/null
+++ b/clojure-mode/if
@@ -0,0 +1,8 @@
+# -*- coding: utf-8 -*-
+# name: if
+# key: if
+# --
+(if $1
+ $2$>
+ $3)$>
+$0
diff --git a/clojure-mode/ifl b/clojure-mode/ifl
new file mode 100644
index 0000000..a8df766
--- /dev/null
+++ b/clojure-mode/ifl
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# name: ifl
+# key: ifl
+# --
+(if-let [$1 $2]
+ $3)$>
+$0 \ No newline at end of file
diff --git a/clojure-mode/import b/clojure-mode/import
new file mode 100644
index 0000000..a7929d1
--- /dev/null
+++ b/clojure-mode/import
@@ -0,0 +1,4 @@
+# name: import
+# key: import
+# --
+(:import ($1))$> \ No newline at end of file
diff --git a/clojure-mode/is b/clojure-mode/is
new file mode 100644
index 0000000..6a8e54a
--- /dev/null
+++ b/clojure-mode/is
@@ -0,0 +1,5 @@
+# -*- coding: utf-8 -*-
+# name: is
+# key: is
+# --
+(is (= $1 $2))
diff --git a/clojure-mode/let b/clojure-mode/let
new file mode 100644
index 0000000..9d83ae2
--- /dev/null
+++ b/clojure-mode/let
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# name: let
+# key: let
+# --
+(let [$1 $2]$>
+ $3)$>
+$0
diff --git a/clojure-mode/map b/clojure-mode/map
new file mode 100644
index 0000000..a699c4a
--- /dev/null
+++ b/clojure-mode/map
@@ -0,0 +1,5 @@
+# -*- coding: utf-8 -*-
+# name: map
+# key: map
+# --
+(map $1 $2) \ No newline at end of file
diff --git a/clojure-mode/map.lambda b/clojure-mode/map.lambda
new file mode 100644
index 0000000..9771706
--- /dev/null
+++ b/clojure-mode/map.lambda
@@ -0,0 +1,5 @@
+# -*- coding: utf-8 -*-
+# name: map lambda
+# key: map
+# --
+(map #($1) $2)$> \ No newline at end of file
diff --git a/clojure-mode/mdoc b/clojure-mode/mdoc
new file mode 100644
index 0000000..0917228
--- /dev/null
+++ b/clojure-mode/mdoc
@@ -0,0 +1,5 @@
+# -*- coding: utf-8 -*-
+# name: mdoc
+# key: mdoc
+# --
+^{:doc "$1"} \ No newline at end of file
diff --git a/clojure-mode/ns b/clojure-mode/ns
new file mode 100644
index 0000000..1d8982e
--- /dev/null
+++ b/clojure-mode/ns
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+# name: ns
+# key: ns
+# --
+(ns `(flet ((try-src-prefix
+ (path src-pfx)
+ (let ((parts (split-string path src-pfx)))
+ (if (= 2 (length parts))
+ (second parts)
+ nil))))
+ (let* ((p (buffer-file-name))
+ (p2 (first
+ (remove-if-not '(lambda (x) x)
+ (mapcar
+ '(lambda (pfx)
+ (try-src-prefix p pfx))
+ '("/src/cljs/" "/src/clj/" "/src/")))))
+ (p3 (file-name-sans-extension p2))
+ (p4 (mapconcat '(lambda (x) x)
+ (split-string p3 "/")
+ ".")))
+ (replace-regexp-in-string "_" "-" p4)))`) \ No newline at end of file
diff --git a/clojure-mode/opts b/clojure-mode/opts
new file mode 100644
index 0000000..4e04fa0
--- /dev/null
+++ b/clojure-mode/opts
@@ -0,0 +1,6 @@
+# key: opts
+# name: opts
+# --
+{:keys [$1]$>
+ :or {$2}$>
+ :as $3}$> \ No newline at end of file
diff --git a/clojure-mode/pr b/clojure-mode/pr
new file mode 100644
index 0000000..6d98a41
--- /dev/null
+++ b/clojure-mode/pr
@@ -0,0 +1,6 @@
+# -*- coding: utf-8 -*-
+# name: pr
+# key: pr
+# --
+(prn $1)
+$0 \ No newline at end of file
diff --git a/clojure-mode/print b/clojure-mode/print
new file mode 100644
index 0000000..a23c1c8
--- /dev/null
+++ b/clojure-mode/print
@@ -0,0 +1,6 @@
+# -*- coding: utf-8 -*-
+# name: print
+# key: print
+# --
+(println $1)
+$0 \ No newline at end of file
diff --git a/clojure-mode/reduce b/clojure-mode/reduce
new file mode 100644
index 0000000..68f7375
--- /dev/null
+++ b/clojure-mode/reduce
@@ -0,0 +1,5 @@
+# -*- coding: utf-8 -*-
+# name: reduce
+# key: reduce
+# --
+(reduce ${1:(fn [p n] $0)} $2)
diff --git a/clojure-mode/require b/clojure-mode/require
new file mode 100644
index 0000000..29c584e
--- /dev/null
+++ b/clojure-mode/require
@@ -0,0 +1,4 @@
+# name: require
+# key: require
+# --
+(:require [$1 :as $2])$> \ No newline at end of file
diff --git a/clojure-mode/test b/clojure-mode/test
new file mode 100644
index 0000000..0d7751d
--- /dev/null
+++ b/clojure-mode/test
@@ -0,0 +1,6 @@
+# name: test
+# key: test
+# --
+(deftest $1
+ (is (= $2))$>
+ $0)$>
diff --git a/clojure-mode/try b/clojure-mode/try
new file mode 100644
index 0000000..397cc6c
--- /dev/null
+++ b/clojure-mode/try
@@ -0,0 +1,7 @@
+# name: try
+# key: try
+# --
+(try
+$1$>
+(catch ${2:Exception} e$>
+$3$>))$> \ No newline at end of file
diff --git a/clojure-mode/use b/clojure-mode/use
new file mode 100644
index 0000000..67a7be1
--- /dev/null
+++ b/clojure-mode/use
@@ -0,0 +1,4 @@
+# name: use
+# key: use
+# --
+(:use [$1 :refer [$2]])$> \ No newline at end of file
diff --git a/clojure-mode/when b/clojure-mode/when
new file mode 100644
index 0000000..e17bb6b
--- /dev/null
+++ b/clojure-mode/when
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# name: when
+# key: when
+# --
+(when $1
+ $2)$>
+$0$>
diff --git a/clojure-mode/whenl b/clojure-mode/whenl
new file mode 100644
index 0000000..929019e
--- /dev/null
+++ b/clojure-mode/whenl
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# name: whenl
+# key: whenl
+# --
+(when-let [$1 $2]
+ $3)$>
+ $0$> \ No newline at end of file
diff --git a/cmake-mode/add_executable b/cmake-mode/add_executable
new file mode 100644
index 0000000..34e1546
--- /dev/null
+++ b/cmake-mode/add_executable
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: add_executable
+# key: exe
+# --
+add_executable($1 ${2:main.cpp})
+target_link_libraries($1 $3) \ No newline at end of file
diff --git a/cmake-mode/add_library b/cmake-mode/add_library
new file mode 100644
index 0000000..55c3def
--- /dev/null
+++ b/cmake-mode/add_library
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: add_library
+# key: lib
+# --
+add_library($1 ${2:class.cpp})
+target_link_libraries($1 $3) \ No newline at end of file
diff --git a/cmake-mode/cmake_minimum_required b/cmake-mode/cmake_minimum_required
new file mode 100644
index 0000000..1d1b7aa
--- /dev/null
+++ b/cmake-mode/cmake_minimum_required
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: cmake_minimum_required
+# key: min
+# --
+cmake_minimum_required(VERSION ${1:2.6}) \ No newline at end of file
diff --git a/cmake-mode/foreach b/cmake-mode/foreach
new file mode 100644
index 0000000..69aaffb
--- /dev/null
+++ b/cmake-mode/foreach
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: foreach
+# key: for
+# --
+foreach(${1:item} \${${2:array}})
+ $0
+endforeach() \ No newline at end of file
diff --git a/cmake-mode/function b/cmake-mode/function
new file mode 100644
index 0000000..f051a70
--- /dev/null
+++ b/cmake-mode/function
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: function
+# key: fun
+# --
+function (${1:name})
+ $0
+endfunction() \ No newline at end of file
diff --git a/cmake-mode/if b/cmake-mode/if
new file mode 100644
index 0000000..e9f3658
--- /dev/null
+++ b/cmake-mode/if
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: if
+# key: if
+# --
+if(${1:cond})
+ $0
+endif() \ No newline at end of file
diff --git a/cmake-mode/ifelse b/cmake-mode/ifelse
new file mode 100644
index 0000000..45557ba
--- /dev/null
+++ b/cmake-mode/ifelse
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: ifelse
+# key: if
+# --
+if(${1:cond})
+ $2
+else(${3:cond})
+ $0
+endif() \ No newline at end of file
diff --git a/cmake-mode/include b/cmake-mode/include
new file mode 100644
index 0000000..e17dfa0
--- /dev/null
+++ b/cmake-mode/include
@@ -0,0 +1,5 @@
+# type: command
+# key: inc
+# name: include
+# --
+include ($0)
diff --git a/cmake-mode/macro b/cmake-mode/macro
new file mode 100644
index 0000000..27d691f
--- /dev/null
+++ b/cmake-mode/macro
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: macro
+# key: macro
+# --
+macro(${1:name}${2: args})
+
+endmacro() \ No newline at end of file
diff --git a/cmake-mode/message b/cmake-mode/message
new file mode 100644
index 0000000..ede2c77
--- /dev/null
+++ b/cmake-mode/message
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: message
+# key: msg
+# --
+message(${1:STATUS }"$0") \ No newline at end of file
diff --git a/cmake-mode/option b/cmake-mode/option
new file mode 100644
index 0000000..c71f7f2
--- /dev/null
+++ b/cmake-mode/option
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: option
+# key: opt
+# --
+option (${1:OPT} "${2:docstring}" ${3:value}) \ No newline at end of file
diff --git a/cmake-mode/project b/cmake-mode/project
new file mode 100644
index 0000000..ed8d1a2
--- /dev/null
+++ b/cmake-mode/project
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: project
+# key: proj
+# --
+project ($0) \ No newline at end of file
diff --git a/cmake-mode/set b/cmake-mode/set
new file mode 100644
index 0000000..8d105bd
--- /dev/null
+++ b/cmake-mode/set
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: set
+# key: set
+# --
+set(${1:var} ${2:value}) \ No newline at end of file
diff --git a/conf-unix-mode/.yas-parents b/conf-unix-mode/.yas-parents
new file mode 100644
index 0000000..d58dacb
--- /dev/null
+++ b/conf-unix-mode/.yas-parents
@@ -0,0 +1 @@
+text-mode \ No newline at end of file
diff --git a/conf-unix-mode/section b/conf-unix-mode/section
new file mode 100644
index 0000000..7f5553d
--- /dev/null
+++ b/conf-unix-mode/section
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: section
+# key: sec
+# section for xorg.conf
+# --
+Section "${1:Device}"
+ $0
+EndSection \ No newline at end of file
diff --git a/cperl-mode/.yas-parents b/cperl-mode/.yas-parents
new file mode 100644
index 0000000..bfa2993
--- /dev/null
+++ b/cperl-mode/.yas-parents
@@ -0,0 +1 @@
+perl-mode
diff --git a/cpp-omnet-mode/EV b/cpp-omnet-mode/EV
new file mode 100644
index 0000000..ab5d427
--- /dev/null
+++ b/cpp-omnet-mode/EV
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: EV
+# key: ev
+# --
+EV << "${1:string}"$0; \ No newline at end of file
diff --git a/cpp-omnet-mode/emit_signal b/cpp-omnet-mode/emit_signal
new file mode 100644
index 0000000..5303595
--- /dev/null
+++ b/cpp-omnet-mode/emit_signal
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: emit_signal
+# key: emit
+# --
+emit(${1:signal_id}, ${2:long}); \ No newline at end of file
diff --git a/cpp-omnet-mode/intuniform b/cpp-omnet-mode/intuniform
new file mode 100644
index 0000000..24921d7
--- /dev/null
+++ b/cpp-omnet-mode/intuniform
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: intuniform
+# key: intuni
+# --
+intuniform(${1:0}, ${2:1}) \ No newline at end of file
diff --git a/cpp-omnet-mode/math b/cpp-omnet-mode/math
new file mode 100644
index 0000000..bb6f4ba
--- /dev/null
+++ b/cpp-omnet-mode/math
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: math
+# key: math
+# --
+#include <cmath> \ No newline at end of file
diff --git a/cpp-omnet-mode/nan b/cpp-omnet-mode/nan
new file mode 100644
index 0000000..601b373
--- /dev/null
+++ b/cpp-omnet-mode/nan
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: nan
+# key: nan
+# --
+isnan(${1:x}) \ No newline at end of file
diff --git a/cpp-omnet-mode/omnet b/cpp-omnet-mode/omnet
new file mode 100644
index 0000000..6342017
--- /dev/null
+++ b/cpp-omnet-mode/omnet
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: omnet
+# key: omnet
+# --
+#include <omnetpp.h> \ No newline at end of file
diff --git a/cpp-omnet-mode/parameter_omnetpp b/cpp-omnet-mode/parameter_omnetpp
new file mode 100644
index 0000000..d1aea19
--- /dev/null
+++ b/cpp-omnet-mode/parameter_omnetpp
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: parameter_omnetpp
+# key: par
+# --
+${1:var} = par("${2:par}"); \ No newline at end of file
diff --git a/cpp-omnet-mode/scheduleAt b/cpp-omnet-mode/scheduleAt
new file mode 100644
index 0000000..e3edb3e
--- /dev/null
+++ b/cpp-omnet-mode/scheduleAt
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: scheduleAt
+# key: sched
+# --
+scheduleAt(simTime()+${1:1.0}, ${2:event}); \ No newline at end of file
diff --git a/cpp-omnet-mode/uniform b/cpp-omnet-mode/uniform
new file mode 100644
index 0000000..d1f81d5
--- /dev/null
+++ b/cpp-omnet-mode/uniform
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: uniform
+# key: uni
+# uniform distribution
+# --
+uniform(${1:0}, ${2:1}) \ No newline at end of file
diff --git a/csharp-mode/.yas-parents b/csharp-mode/.yas-parents
new file mode 100644
index 0000000..ce9828b
--- /dev/null
+++ b/csharp-mode/.yas-parents
@@ -0,0 +1 @@
+cc-mode
diff --git a/csharp-mode/attrib b/csharp-mode/attrib
new file mode 100644
index 0000000..ccc9754
--- /dev/null
+++ b/csharp-mode/attrib
@@ -0,0 +1,8 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : private attribute ....;
+# key: attrib
+# --
+/// <summary>
+/// $3
+/// </summary>
+private $1 $2; \ No newline at end of file
diff --git a/csharp-mode/attrib.1 b/csharp-mode/attrib.1
new file mode 100644
index 0000000..ba06d76
--- /dev/null
+++ b/csharp-mode/attrib.1
@@ -0,0 +1,22 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : private attribute ....; public property ... ... { ... }
+# key: attrib
+# --
+/// <summary>
+/// $3
+/// </summary>
+private $1 $2;
+
+/// <summary>
+/// $4
+/// </summary>
+/// <value>$5</value>
+public $1 $2
+{
+ get {
+ return this.$2;
+ }
+ set {
+ this.$2 = value;
+ }
+} \ No newline at end of file
diff --git a/csharp-mode/attrib.2 b/csharp-mode/attrib.2
new file mode 100644
index 0000000..82962fb
--- /dev/null
+++ b/csharp-mode/attrib.2
@@ -0,0 +1,22 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : private _attribute ....; public Property ... ... { ... }
+# key: attrib
+# --
+/// <summary>
+/// $3
+/// </summary>
+private $1 ${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")};
+
+/// <summary>
+/// ${3:Description}
+/// </summary>
+/// <value><c>$1</c></value>
+public ${1:Type} ${2:Name}
+{
+ get {
+ return this.${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")};
+ }
+ set {
+ this.${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")} = value;
+ }
+} \ No newline at end of file
diff --git a/csharp-mode/class b/csharp-mode/class
new file mode 100644
index 0000000..bea8a1e
--- /dev/null
+++ b/csharp-mode/class
@@ -0,0 +1,22 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : class ... { ... }
+# key: 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
+} \ No newline at end of file
diff --git a/csharp-mode/comment b/csharp-mode/comment
new file mode 100644
index 0000000..44f2fb3
--- /dev/null
+++ b/csharp-mode/comment
@@ -0,0 +1,7 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : /// <summary> ... </summary>
+# key: comment
+# --
+/// <summary>
+/// $1
+/// </summary> \ No newline at end of file
diff --git a/csharp-mode/comment.1 b/csharp-mode/comment.1
new file mode 100644
index 0000000..dda243e
--- /dev/null
+++ b/csharp-mode/comment.1
@@ -0,0 +1,5 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : /// <param name="..."> ... </param>
+# key: comment
+# --
+/// <param name="$1">$2</param> \ No newline at end of file
diff --git a/csharp-mode/comment.2 b/csharp-mode/comment.2
new file mode 100644
index 0000000..34bc58c
--- /dev/null
+++ b/csharp-mode/comment.2
@@ -0,0 +1,5 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : /// <param name="..."> ... </param>
+# key: comment
+# --
+/// <returns>$1</returns> \ No newline at end of file
diff --git a/csharp-mode/comment.3 b/csharp-mode/comment.3
new file mode 100644
index 0000000..15f2e1a
--- /dev/null
+++ b/csharp-mode/comment.3
@@ -0,0 +1,5 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : /// <exception cref="..."> ... </exception>
+# key: comment
+# --
+/// <exception cref="$1">$2</exception> \ No newline at end of file
diff --git a/csharp-mode/method b/csharp-mode/method
new file mode 100644
index 0000000..e8cb7fc
--- /dev/null
+++ b/csharp-mode/method
@@ -0,0 +1,11 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : public void Method { ... }
+# key: method
+# --
+/// <summary>
+/// ${5:Description}
+/// </summary>${2:$(if (string= (upcase yas-text) "VOID") "" (format "%s%s%s" "\n/// <returns><c>" yas-text "</c></returns>"))}
+${1:public} ${2:void} ${3:MethodName}($4)
+{
+$0
+} \ No newline at end of file
diff --git a/csharp-mode/namespace b/csharp-mode/namespace
new file mode 100644
index 0000000..4d8d154
--- /dev/null
+++ b/csharp-mode/namespace
@@ -0,0 +1,8 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : namespace .. { ... }
+# key: namespace
+# --
+namespace $1
+{
+$0
+} \ No newline at end of file
diff --git a/csharp-mode/prop b/csharp-mode/prop
new file mode 100644
index 0000000..7d75dee
--- /dev/null
+++ b/csharp-mode/prop
@@ -0,0 +1,17 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : property ... ... { ... }
+# key: prop
+# --
+/// <summary>
+/// $5
+/// </summary>
+/// <value>$6</value>
+$1 $2 $3
+{
+ get {
+ return this.$4;
+ }
+ set {
+ this.$4 = value;
+ }
+} \ No newline at end of file
diff --git a/csharp-mode/region b/csharp-mode/region
new file mode 100644
index 0000000..498d153
--- /dev/null
+++ b/csharp-mode/region
@@ -0,0 +1,7 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : #region ... #endregion
+# key: region
+# --
+#region $1
+$0
+#endregion \ No newline at end of file
diff --git a/csharp-mode/using b/csharp-mode/using
new file mode 100644
index 0000000..4556b8c
--- /dev/null
+++ b/csharp-mode/using
@@ -0,0 +1,5 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : using ...;
+# key: using
+# --
+using $1; \ No newline at end of file
diff --git a/csharp-mode/using.1 b/csharp-mode/using.1
new file mode 100644
index 0000000..fd80875
--- /dev/null
+++ b/csharp-mode/using.1
@@ -0,0 +1,5 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : using System;
+# key: using
+# --
+using System; \ No newline at end of file
diff --git a/csharp-mode/using.2 b/csharp-mode/using.2
new file mode 100644
index 0000000..ebcaadb
--- /dev/null
+++ b/csharp-mode/using.2
@@ -0,0 +1,5 @@
+#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+#name : using System....;
+# key: using
+# --
+using System.$1; \ No newline at end of file
diff --git a/css-mode/bg b/css-mode/bg
new file mode 100644
index 0000000..d731807
--- /dev/null
+++ b/css-mode/bg
@@ -0,0 +1,3 @@
+#name : background-color: ...
+# --
+background-color: #${1:DDD}; \ No newline at end of file
diff --git a/css-mode/bg.1 b/css-mode/bg.1
new file mode 100644
index 0000000..d31f540
--- /dev/null
+++ b/css-mode/bg.1
@@ -0,0 +1,3 @@
+#name : background-image: ...
+# --
+background-image: url($1); \ No newline at end of file
diff --git a/css-mode/bor b/css-mode/bor
new file mode 100644
index 0000000..eb3a2b4
--- /dev/null
+++ b/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/css-mode/cl b/css-mode/cl
new file mode 100644
index 0000000..4fc7a8d
--- /dev/null
+++ b/css-mode/cl
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : clear: ...
+# --
+clear: $1;
diff --git a/css-mode/disp.block b/css-mode/disp.block
new file mode 100644
index 0000000..f74ea3c
--- /dev/null
+++ b/css-mode/disp.block
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : display: block
+# --
+display: block;
diff --git a/css-mode/disp.inline b/css-mode/disp.inline
new file mode 100644
index 0000000..30275a8
--- /dev/null
+++ b/css-mode/disp.inline
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : display: inline
+# --
+display: inline;
diff --git a/css-mode/disp.none b/css-mode/disp.none
new file mode 100644
index 0000000..80632a5
--- /dev/null
+++ b/css-mode/disp.none
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : display: none
+# --
+display: none;
diff --git a/css-mode/ff b/css-mode/ff
new file mode 100644
index 0000000..a7352cf
--- /dev/null
+++ b/css-mode/ff
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : font-family: ...
+# --
+font-family: $1;
diff --git a/css-mode/fs b/css-mode/fs
new file mode 100644
index 0000000..c28cdbb
--- /dev/null
+++ b/css-mode/fs
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : font-size: ...
+# --
+font-size: ${12px};
diff --git a/css-mode/mar.bottom b/css-mode/mar.bottom
new file mode 100644
index 0000000..9672f60
--- /dev/null
+++ b/css-mode/mar.bottom
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : margin-bottom: ...
+# --
+margin-bottom: $1;
diff --git a/css-mode/mar.left b/css-mode/mar.left
new file mode 100644
index 0000000..414353e
--- /dev/null
+++ b/css-mode/mar.left
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : margin-left: ...
+# --
+margin-left: $1;
diff --git a/css-mode/mar.mar b/css-mode/mar.mar
new file mode 100644
index 0000000..13354db
--- /dev/null
+++ b/css-mode/mar.mar
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : margin: ...
+# --
+margin: $1;
diff --git a/css-mode/mar.margin b/css-mode/mar.margin
new file mode 100644
index 0000000..97de70c
--- /dev/null
+++ b/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/css-mode/mar.right b/css-mode/mar.right
new file mode 100644
index 0000000..47a4973
--- /dev/null
+++ b/css-mode/mar.right
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : margin-right: ...
+# --
+margin-right: $1;
diff --git a/css-mode/mar.top b/css-mode/mar.top
new file mode 100644
index 0000000..c805754
--- /dev/null
+++ b/css-mode/mar.top
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : margin-top: ...
+# --
+margin-top: $1;
diff --git a/css-mode/pad.bottom b/css-mode/pad.bottom
new file mode 100644
index 0000000..3b9495e
--- /dev/null
+++ b/css-mode/pad.bottom
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : padding-bottom: ...
+# --
+padding-bottom: $1;
diff --git a/css-mode/pad.left b/css-mode/pad.left
new file mode 100644
index 0000000..ecae515
--- /dev/null
+++ b/css-mode/pad.left
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : padding-left: ...
+# --
+padding-left: $1;
diff --git a/css-mode/pad.pad b/css-mode/pad.pad
new file mode 100644
index 0000000..ee3a682
--- /dev/null
+++ b/css-mode/pad.pad
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : padding: ...
+# --
+padding: $1;
diff --git a/css-mode/pad.padding b/css-mode/pad.padding
new file mode 100644
index 0000000..c1009d3
--- /dev/null
+++ b/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/css-mode/pad.right b/css-mode/pad.right
new file mode 100644
index 0000000..98a9e12
--- /dev/null
+++ b/css-mode/pad.right
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : padding-right: ...
+# --
+padding-right: $1;
diff --git a/css-mode/pad.top b/css-mode/pad.top
new file mode 100644
index 0000000..34987f6
--- /dev/null
+++ b/css-mode/pad.top
@@ -0,0 +1,4 @@
+#contributor : rejeep <johan.rejeep@gmail.com>
+#name : padding-top: ...
+# --
+padding-top: $1;
diff --git a/css-mode/v b/css-mode/v
new file mode 100644
index 0000000..fec5bd5
--- /dev/null
+++ b/css-mode/v
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: -vendor-prefix
+# contributor: Prateek Saxena
+# key: -v
+# --
+$1: $2;
+-webkit-$1: $2;
+-moz-$1: $2;
+-ms-$1: $2;
+-o-$1: $2; \ No newline at end of file
diff --git a/elixir-mode/.yas-parents b/elixir-mode/.yas-parents
new file mode 100644
index 0000000..75d003f
--- /dev/null
+++ b/elixir-mode/.yas-parents
@@ -0,0 +1 @@
+prog-mode
diff --git a/elixir-mode/case b/elixir-mode/case
new file mode 100644
index 0000000..1630d2e
--- /dev/null
+++ b/elixir-mode/case
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: case
+# key: case
+# --
+case $1 do
+ $0
+end
diff --git a/elixir-mode/cond b/elixir-mode/cond
new file mode 100644
index 0000000..40934ff
--- /dev/null
+++ b/elixir-mode/cond
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: cond
+# key: cond
+# --
+cond do
+ $0
+end
diff --git a/elixir-mode/def b/elixir-mode/def
new file mode 100644
index 0000000..e680262
--- /dev/null
+++ b/elixir-mode/def
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: def
+# key: def
+# --
+def ${1:method}${2:(${3:args})} do
+ $0
+end
diff --git a/elixir-mode/defmacro b/elixir-mode/defmacro
new file mode 100644
index 0000000..63ab988
--- /dev/null
+++ b/elixir-mode/defmacro
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: defmacro
+# key: defmacro
+# --
+defmacro $1 do
+ $0
+end
diff --git a/elixir-mode/defmacrop b/elixir-mode/defmacrop
new file mode 100644
index 0000000..3f4cf98
--- /dev/null
+++ b/elixir-mode/defmacrop
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: defmacrop
+# key: defmacrop
+# --
+defmacrop $1 do
+ $0
+end
diff --git a/elixir-mode/defmodule b/elixir-mode/defmodule
new file mode 100644
index 0000000..4e33ab0
--- /dev/null
+++ b/elixir-mode/defmodule
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: defmodule
+# key: defmodule
+# --
+defmodule $1 do
+ $0
+end
diff --git a/elixir-mode/defp b/elixir-mode/defp
new file mode 100644
index 0000000..0fd90e9
--- /dev/null
+++ b/elixir-mode/defp
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: defp
+# key: defp
+# --
+defp $1 do
+ $0
+end
diff --git a/elixir-mode/doc b/elixir-mode/doc
new file mode 100644
index 0000000..c23f906
--- /dev/null
+++ b/elixir-mode/doc
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: doc
+# key: doc
+# --
+@doc """
+$0
+"""
diff --git a/elixir-mode/mdoc b/elixir-mode/mdoc
new file mode 100644
index 0000000..c0cc4f2
--- /dev/null
+++ b/elixir-mode/mdoc
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: moduledoc
+# key: mdoc
+# --
+@moduledoc """
+$0
+"""
diff --git a/emacs-lisp-mode/.read_me b/emacs-lisp-mode/.read_me
new file mode 100644
index 0000000..49c8e00
--- /dev/null
+++ b/emacs-lisp-mode/.read_me
@@ -0,0 +1,7 @@
+-*- coding: utf-8 -*-
+Originally started by Xah Lee (xahlee.org) on 2009-02-22
+Released under GPL 3.
+
+Feel free to add missing ones or modify existing ones to improve.
+
+Those starting with “x-” are supposed to be idiom templates. Not sure it's very useful. They might start with “i-” or "id-" in the future. \ No newline at end of file
diff --git a/emacs-lisp-mode/add-hook b/emacs-lisp-mode/add-hook
new file mode 100755
index 0000000..77605af
--- /dev/null
+++ b/emacs-lisp-mode/add-hook
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: add-hook
+#key: add-hook
+#key: ah
+# --
+(add-hook HOOK$0 FUNCTION) \ No newline at end of file
diff --git a/emacs-lisp-mode/and b/emacs-lisp-mode/and
new file mode 100755
index 0000000..6502b6a
--- /dev/null
+++ b/emacs-lisp-mode/and
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: and
+#key: and
+#key: a
+# --
+(and $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/append b/emacs-lisp-mode/append
new file mode 100755
index 0000000..0b8639d
--- /dev/null
+++ b/emacs-lisp-mode/append
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: append
+#key: append
+# --
+(append $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/apply b/emacs-lisp-mode/apply
new file mode 100755
index 0000000..1963f29
--- /dev/null
+++ b/emacs-lisp-mode/apply
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: apply
+#key: apply
+# --
+(apply $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/aref b/emacs-lisp-mode/aref
new file mode 100755
index 0000000..867ef0a
--- /dev/null
+++ b/emacs-lisp-mode/aref
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: aref
+#key: aref
+# --
+(aref ARRAY$0 INDEX) \ No newline at end of file
diff --git a/emacs-lisp-mode/aset b/emacs-lisp-mode/aset
new file mode 100755
index 0000000..9402dc9
--- /dev/null
+++ b/emacs-lisp-mode/aset
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: aset
+#key: aset
+# --
+(aset ARRAY$0 IDX NEWELT) \ No newline at end of file
diff --git a/emacs-lisp-mode/assq b/emacs-lisp-mode/assq
new file mode 100755
index 0000000..d7c5257
--- /dev/null
+++ b/emacs-lisp-mode/assq
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: assq
+#key: assq
+# --
+(assq KEY$0 LIST) \ No newline at end of file
diff --git a/emacs-lisp-mode/autoload b/emacs-lisp-mode/autoload
new file mode 100755
index 0000000..c497482
--- /dev/null
+++ b/emacs-lisp-mode/autoload
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: autoload
+#key: autoload
+# --
+(autoload 'FUNCNAME$0 "FILENAME" &optional "DOCSTRING" INTERACTIVE TYPE) \ No newline at end of file
diff --git a/emacs-lisp-mode/backward-char b/emacs-lisp-mode/backward-char
new file mode 100755
index 0000000..296cf97
--- /dev/null
+++ b/emacs-lisp-mode/backward-char
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: backward-char
+#key: backward-char
+#key: bc
+# --
+(backward-char $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/beginning-of-line b/emacs-lisp-mode/beginning-of-line
new file mode 100755
index 0000000..7dfd32c
--- /dev/null
+++ b/emacs-lisp-mode/beginning-of-line
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: beginning-of-line
+#key: beginning-of-line
+#key: bol
+# --
+(beginning-of-line) \ No newline at end of file
diff --git a/emacs-lisp-mode/bounds-of-thing-at-point b/emacs-lisp-mode/bounds-of-thing-at-point
new file mode 100755
index 0000000..6d645b6
--- /dev/null
+++ b/emacs-lisp-mode/bounds-of-thing-at-point
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: bounds-of-thing-at-point
+#key: bounds-of-thing-at-point
+#key: botap
+# --
+(bounds-of-thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ... \ No newline at end of file
diff --git a/emacs-lisp-mode/buffer-file-name b/emacs-lisp-mode/buffer-file-name
new file mode 100755
index 0000000..d983182
--- /dev/null
+++ b/emacs-lisp-mode/buffer-file-name
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: buffer-file-name
+#key: buffer-file-name
+#key: bfn
+# --
+(buffer-file-name) \ No newline at end of file
diff --git a/emacs-lisp-mode/buffer-modified-p b/emacs-lisp-mode/buffer-modified-p
new file mode 100755
index 0000000..f3ca3aa
--- /dev/null
+++ b/emacs-lisp-mode/buffer-modified-p
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: buffer-modified-p
+#key: buffer-modified-p
+#key: bmp
+# --
+(buffer-modified-p $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/buffer-substring b/emacs-lisp-mode/buffer-substring
new file mode 100755
index 0000000..0c08119
--- /dev/null
+++ b/emacs-lisp-mode/buffer-substring
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: buffer-substring
+#key: buffer-substring
+#key: bs
+# --
+(buffer-substring START$0 END) \ No newline at end of file
diff --git a/emacs-lisp-mode/buffer-substring-no-properties b/emacs-lisp-mode/buffer-substring-no-properties
new file mode 100755
index 0000000..adb8270
--- /dev/null
+++ b/emacs-lisp-mode/buffer-substring-no-properties
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: buffer-substring-no-properties
+#key: buffer-substring-no-properties
+#key: bsnp
+# --
+(buffer-substring-no-properties START$0 END) \ No newline at end of file
diff --git a/emacs-lisp-mode/car b/emacs-lisp-mode/car
new file mode 100755
index 0000000..09ff8e4
--- /dev/null
+++ b/emacs-lisp-mode/car
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: car
+#key: car
+# --
+(car $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/cdr b/emacs-lisp-mode/cdr
new file mode 100755
index 0000000..404d1d2
--- /dev/null
+++ b/emacs-lisp-mode/cdr
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: cdr
+#key: cdr
+# --
+(cdr $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/concat b/emacs-lisp-mode/concat
new file mode 100755
index 0000000..b94cfeb
--- /dev/null
+++ b/emacs-lisp-mode/concat
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: concat
+#key: concat
+# --
+(concat $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/cond b/emacs-lisp-mode/cond
new file mode 100755
index 0000000..3927414
--- /dev/null
+++ b/emacs-lisp-mode/cond
@@ -0,0 +1,8 @@
+#contributor: Xah Lee (XahLee.org)
+#name: cond
+#key: cond
+# --
+(cond
+(CONDITION$0 BODY)
+(CONDITION BODY)
+) \ No newline at end of file
diff --git a/emacs-lisp-mode/condition-case b/emacs-lisp-mode/condition-case
new file mode 100755
index 0000000..da794dd
--- /dev/null
+++ b/emacs-lisp-mode/condition-case
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: condition-case
+#key: condition-case
+#key: cc
+# --
+(condition-case $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/cons b/emacs-lisp-mode/cons
new file mode 100755
index 0000000..f186919
--- /dev/null
+++ b/emacs-lisp-mode/cons
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: cons
+#key: cons
+# --
+(cons $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/consp b/emacs-lisp-mode/consp
new file mode 100755
index 0000000..2b2ce5c
--- /dev/null
+++ b/emacs-lisp-mode/consp
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: consp
+#key: consp
+# --
+(consp $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/copy-directory b/emacs-lisp-mode/copy-directory
new file mode 100755
index 0000000..b2516d5
--- /dev/null
+++ b/emacs-lisp-mode/copy-directory
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: copy-directory
+#key: copy-directory
+#key: cd
+# --
+(copy-directory $0 NEWNAME &optional KEEP-TIME PARENTS) \ No newline at end of file
diff --git a/emacs-lisp-mode/copy-file b/emacs-lisp-mode/copy-file
new file mode 100755
index 0000000..b952b16
--- /dev/null
+++ b/emacs-lisp-mode/copy-file
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: copy-file
+#key: copy-file
+#key: cf
+# --
+(copy-file FILE$0 NEWNAME &optional OK-IF-ALREADY-EXISTS KEEP-TIME PRESERVE-UID-GID) \ No newline at end of file
diff --git a/emacs-lisp-mode/current-buffer b/emacs-lisp-mode/current-buffer
new file mode 100755
index 0000000..b25a48a
--- /dev/null
+++ b/emacs-lisp-mode/current-buffer
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: current-buffer
+#key: current-buffer
+#key: cb
+# --
+(current-buffer) \ No newline at end of file
diff --git a/emacs-lisp-mode/custom-autoload b/emacs-lisp-mode/custom-autoload
new file mode 100755
index 0000000..b5dbb71
--- /dev/null
+++ b/emacs-lisp-mode/custom-autoload
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: custom-autoload
+#key: custom-autoload
+#key: ca
+# --
+(custom-autoload$0 SYMBOL LOAD &optional NOSET) \ No newline at end of file
diff --git a/emacs-lisp-mode/defalias b/emacs-lisp-mode/defalias
new file mode 100755
index 0000000..7c3998a
--- /dev/null
+++ b/emacs-lisp-mode/defalias
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: defalias
+#key: defalias
+# --
+(defalias 'SYMBOL$0 'DEFINITION &optional DOCSTRING) \ No newline at end of file
diff --git a/emacs-lisp-mode/defcustom b/emacs-lisp-mode/defcustom
new file mode 100755
index 0000000..25ecbaa
--- /dev/null
+++ b/emacs-lisp-mode/defcustom
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: defcustom
+#key: defcustom
+# --
+(defcustom $0 VALUE "DOC" &optional ARGS) \ No newline at end of file
diff --git a/emacs-lisp-mode/define-key b/emacs-lisp-mode/define-key
new file mode 100755
index 0000000..e483a51
--- /dev/null
+++ b/emacs-lisp-mode/define-key
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: define-key
+#key: define-key
+#key: dk
+# --
+(define-key KEYMAPNAME$0 (kbd "M-b") 'FUNCNAME) \ No newline at end of file
diff --git a/emacs-lisp-mode/defsubst b/emacs-lisp-mode/defsubst
new file mode 100755
index 0000000..5ce9033
--- /dev/null
+++ b/emacs-lisp-mode/defsubst
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: defsubst
+#key: defsubst
+# --
+(defsubst $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/defun b/emacs-lisp-mode/defun
new file mode 100644
index 0000000..6d7001e
--- /dev/null
+++ b/emacs-lisp-mode/defun
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: defun
+# key: def
+# --
+(defun ${1:fun} (${2:args})
+ ${3:(interactive${4: "P"})}
+ $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/defvar b/emacs-lisp-mode/defvar
new file mode 100755
index 0000000..6781858
--- /dev/null
+++ b/emacs-lisp-mode/defvar
@@ -0,0 +1,4 @@
+#name: defvar
+#key: defvar
+# --
+(defvar $0 &optional ${1:initvalue} "${2:docstring}") \ No newline at end of file
diff --git a/emacs-lisp-mode/delete-char b/emacs-lisp-mode/delete-char
new file mode 100755
index 0000000..da983bd
--- /dev/null
+++ b/emacs-lisp-mode/delete-char
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: delete-char
+#key: delete-char
+#key: dc
+# --
+(delete-char $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/delete-directory b/emacs-lisp-mode/delete-directory
new file mode 100755
index 0000000..59f0838
--- /dev/null
+++ b/emacs-lisp-mode/delete-directory
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: delete-directory
+#key: delete-directory
+#key: dd
+# --
+(delete-directory $0 &optional RECURSIVE) \ No newline at end of file
diff --git a/emacs-lisp-mode/delete-file b/emacs-lisp-mode/delete-file
new file mode 100755
index 0000000..dfbd4f1
--- /dev/null
+++ b/emacs-lisp-mode/delete-file
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: delete-file
+#key: delete-file
+#key: df
+# --
+(delete-file $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/delete-region b/emacs-lisp-mode/delete-region
new file mode 100755
index 0000000..7c753d2
--- /dev/null
+++ b/emacs-lisp-mode/delete-region
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: delete-region
+#key: delete-region
+#key: dr
+# --
+(delete-region $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/directory-files b/emacs-lisp-mode/directory-files
new file mode 100755
index 0000000..df301a2
--- /dev/null
+++ b/emacs-lisp-mode/directory-files
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: directory-files
+#key: directory-files
+#key: df
+# --
+(directory-files $0 &optional FULL MATCH NOSORT) \ No newline at end of file
diff --git a/emacs-lisp-mode/dired.process_marked b/emacs-lisp-mode/dired.process_marked
new file mode 100644
index 0000000..1b42597
--- /dev/null
+++ b/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-lisp-mode/dolist b/emacs-lisp-mode/dolist
new file mode 100755
index 0000000..ea66015
--- /dev/null
+++ b/emacs-lisp-mode/dolist
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: dolist
+#key: dolist
+# --
+(dolist $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/end-of-line b/emacs-lisp-mode/end-of-line
new file mode 100755
index 0000000..f8a2d9f
--- /dev/null
+++ b/emacs-lisp-mode/end-of-line
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: end-of-line
+#key: end-of-line
+#key: eol
+# --
+(end-of-line) \ No newline at end of file
diff --git a/emacs-lisp-mode/eq b/emacs-lisp-mode/eq
new file mode 100755
index 0000000..3d29f52
--- /dev/null
+++ b/emacs-lisp-mode/eq
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: eq
+#key: eq
+# --
+(eq $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/equal b/emacs-lisp-mode/equal
new file mode 100755
index 0000000..7b0dd58
--- /dev/null
+++ b/emacs-lisp-mode/equal
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: equal
+#key: equal
+# --
+(equal $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/error b/emacs-lisp-mode/error
new file mode 100755
index 0000000..48bf689
--- /dev/null
+++ b/emacs-lisp-mode/error
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: error
+#key: error
+# --
+(error "$0" &optional ARGS) \ No newline at end of file
diff --git a/emacs-lisp-mode/expand-file-name b/emacs-lisp-mode/expand-file-name
new file mode 100755
index 0000000..8e6c596
--- /dev/null
+++ b/emacs-lisp-mode/expand-file-name
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: expand-file-name
+#key: expand-file-name
+#key: efn
+# --
+(expand-file-name $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/f b/emacs-lisp-mode/f
new file mode 100755
index 0000000..011a606
--- /dev/null
+++ b/emacs-lisp-mode/f
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: format
+#key: format
+# --
+(format "$0" &optional OBJECTS) \ No newline at end of file
diff --git a/emacs-lisp-mode/fboundp b/emacs-lisp-mode/fboundp
new file mode 100755
index 0000000..0212c2d
--- /dev/null
+++ b/emacs-lisp-mode/fboundp
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: fboundp
+#key: fboundp
+# --
+(fboundp '$0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/file-name-directory b/emacs-lisp-mode/file-name-directory
new file mode 100755
index 0000000..e7fb5c0
--- /dev/null
+++ b/emacs-lisp-mode/file-name-directory
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: file-name-directory
+#key: file-name-directory
+#key: fnd
+# --
+(file-name-directory $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/file-name-extension b/emacs-lisp-mode/file-name-extension
new file mode 100755
index 0000000..38dc0c4
--- /dev/null
+++ b/emacs-lisp-mode/file-name-extension
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: file-name-extension
+#key: file-name-extension
+#key: fne
+# --
+(file-name-extension $0 &optional PERIOD) \ No newline at end of file
diff --git a/emacs-lisp-mode/file-name-nondirectory b/emacs-lisp-mode/file-name-nondirectory
new file mode 100755
index 0000000..7310bec
--- /dev/null
+++ b/emacs-lisp-mode/file-name-nondirectory
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: file-name-nondirectory
+#key: file-name-nondirectory
+#key: fnn
+# --
+(file-name-nondirectory $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/file-name-sans-extension b/emacs-lisp-mode/file-name-sans-extension
new file mode 100755
index 0000000..8b18db5
--- /dev/null
+++ b/emacs-lisp-mode/file-name-sans-extension
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: file-name-sans-extension
+#key: file-name-sans-extension
+#key: fnse
+# --
+(file-name-sans-extension $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/file-relative-name b/emacs-lisp-mode/file-relative-name
new file mode 100755
index 0000000..39b6807
--- /dev/null
+++ b/emacs-lisp-mode/file-relative-name
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: file-relative-name
+#key: file-relative-name
+#key: frn
+# --
+(file-relative-name $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/file.process b/emacs-lisp-mode/file.process
new file mode 100644
index 0000000..abd1a33
--- /dev/null
+++ b/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-lisp-mode/file.read-lines b/emacs-lisp-mode/file.read-lines
new file mode 100644
index 0000000..b4a1942
--- /dev/null
+++ b/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-lisp-mode/find-file b/emacs-lisp-mode/find-file
new file mode 100755
index 0000000..8038e83
--- /dev/null
+++ b/emacs-lisp-mode/find-file
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: find-file
+#key: find-file
+#key: ff
+# --
+(find-file $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/find-replace b/emacs-lisp-mode/find-replace
new file mode 100644
index 0000000..cefcf51
--- /dev/null
+++ b/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-lisp-mode/format b/emacs-lisp-mode/format
new file mode 100755
index 0000000..011a606
--- /dev/null
+++ b/emacs-lisp-mode/format
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: format
+#key: format
+# --
+(format "$0" &optional OBJECTS) \ No newline at end of file
diff --git a/emacs-lisp-mode/forward-char b/emacs-lisp-mode/forward-char
new file mode 100755
index 0000000..1298e98
--- /dev/null
+++ b/emacs-lisp-mode/forward-char
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: forward-char
+#key: forward-char
+#key: fc
+# --
+(forward-char $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/forward-line b/emacs-lisp-mode/forward-line
new file mode 100755
index 0000000..37d94d7
--- /dev/null
+++ b/emacs-lisp-mode/forward-line
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: forward-line
+#key: forward-line
+#key: fl
+# --
+(forward-line $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/funcall b/emacs-lisp-mode/funcall
new file mode 100755
index 0000000..fb486bc
--- /dev/null
+++ b/emacs-lisp-mode/funcall
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: funcall
+#key: funcall
+# --
+(funcall $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/function b/emacs-lisp-mode/function
new file mode 100755
index 0000000..cbebaf0
--- /dev/null
+++ b/emacs-lisp-mode/function
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: function
+#key: function
+# --
+(function $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/get b/emacs-lisp-mode/get
new file mode 100755
index 0000000..9b29658
--- /dev/null
+++ b/emacs-lisp-mode/get
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: get
+#key: get
+# --
+(get SYMBOL$0 PROPNAME) \ No newline at end of file
diff --git a/emacs-lisp-mode/global-set-key b/emacs-lisp-mode/global-set-key
new file mode 100755
index 0000000..8629f27
--- /dev/null
+++ b/emacs-lisp-mode/global-set-key
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: global-set-key
+#key: global-set-key
+#key: gsk
+# --
+(global-set-key (kbd "C-$0") 'COMMAND) \ No newline at end of file
diff --git a/emacs-lisp-mode/goto-char b/emacs-lisp-mode/goto-char
new file mode 100755
index 0000000..7cb8d2b
--- /dev/null
+++ b/emacs-lisp-mode/goto-char
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: goto-char
+#key: goto-char
+#key: gc
+# --
+(goto-char $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/grabstring b/emacs-lisp-mode/grabstring
new file mode 100644
index 0000000..55600b1
--- /dev/null
+++ b/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-lisp-mode/grabthing b/emacs-lisp-mode/grabthing
new file mode 100644
index 0000000..772b8dc
--- /dev/null
+++ b/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-lisp-mode/hash b/emacs-lisp-mode/hash
new file mode 100644
index 0000000..0022722
--- /dev/null
+++ b/emacs-lisp-mode/hash
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: hash
+# key: hash
+# --
+make-hash-table ${1:options} \ No newline at end of file
diff --git a/emacs-lisp-mode/if b/emacs-lisp-mode/if
new file mode 100755
index 0000000..c797755
--- /dev/null
+++ b/emacs-lisp-mode/if
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: if
+#key: if
+# --
+(if $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/insert b/emacs-lisp-mode/insert
new file mode 100755
index 0000000..ae5943d
--- /dev/null
+++ b/emacs-lisp-mode/insert
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: insert
+#key: insert
+#key: i
+# --
+(insert $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/insert-file-contents b/emacs-lisp-mode/insert-file-contents
new file mode 100755
index 0000000..ffdd154
--- /dev/null
+++ b/emacs-lisp-mode/insert-file-contents
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: insert-file-contents
+#key: insert-file-contents
+#key: ifc
+# --
+(insert-file-contents $0 &optional VISIT BEG END REPLACE) \ No newline at end of file
diff --git a/emacs-lisp-mode/interactive b/emacs-lisp-mode/interactive
new file mode 100755
index 0000000..f973892
--- /dev/null
+++ b/emacs-lisp-mode/interactive
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: interactive
+#key: interactive
+# --
+(interactive) \ No newline at end of file
diff --git a/emacs-lisp-mode/kbd b/emacs-lisp-mode/kbd
new file mode 100755
index 0000000..be91b08
--- /dev/null
+++ b/emacs-lisp-mode/kbd
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: kbd
+#key: kbd
+# --
+(kbd "$0") \ No newline at end of file
diff --git a/emacs-lisp-mode/kill-buffer b/emacs-lisp-mode/kill-buffer
new file mode 100755
index 0000000..491a73b
--- /dev/null
+++ b/emacs-lisp-mode/kill-buffer
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: kill-buffer
+#key: kill-buffer
+#key: kb
+# --
+(kill-buffer $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/lambda b/emacs-lisp-mode/lambda
new file mode 100755
index 0000000..ae4062f
--- /dev/null
+++ b/emacs-lisp-mode/lambda
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: lambda
+#key: lambda
+# --
+(lambda ($0) "DOCSTRING" (interactive) BODY) \ No newline at end of file
diff --git a/emacs-lisp-mode/length b/emacs-lisp-mode/length
new file mode 100755
index 0000000..46a379b
--- /dev/null
+++ b/emacs-lisp-mode/length
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: length
+#key: length
+# --
+(length $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/let b/emacs-lisp-mode/let
new file mode 100755
index 0000000..76e991e
--- /dev/null
+++ b/emacs-lisp-mode/let
@@ -0,0 +1,8 @@
+#contributor: Xah Lee (XahLee.org)
+#name: let
+#key: let
+#key: l
+# --
+(let ($1 )
+ $0
+) \ No newline at end of file
diff --git a/emacs-lisp-mode/line-beginning-position b/emacs-lisp-mode/line-beginning-position
new file mode 100755
index 0000000..647158b
--- /dev/null
+++ b/emacs-lisp-mode/line-beginning-position
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: line-beginning-position
+#key: line-beginning-position
+#key: lbp
+# --
+(line-beginning-position) \ No newline at end of file
diff --git a/emacs-lisp-mode/line-end-position b/emacs-lisp-mode/line-end-position
new file mode 100755
index 0000000..f3a4f4c
--- /dev/null
+++ b/emacs-lisp-mode/line-end-position
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: line-end-position
+#key: line-end-position
+#key: lep
+# --
+(line-end-position) \ No newline at end of file
diff --git a/emacs-lisp-mode/list b/emacs-lisp-mode/list
new file mode 100755
index 0000000..11be961
--- /dev/null
+++ b/emacs-lisp-mode/list
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: list
+#key: list
+# --
+(list $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/looking-at b/emacs-lisp-mode/looking-at
new file mode 100755
index 0000000..83741dd
--- /dev/null
+++ b/emacs-lisp-mode/looking-at
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: looking-at
+#key: looking-at
+#key: la
+# --
+(looking-at $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/make-directory b/emacs-lisp-mode/make-directory
new file mode 100755
index 0000000..6c6ee64
--- /dev/null
+++ b/emacs-lisp-mode/make-directory
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: make-directory
+#key: make-directory
+#key: md
+# --
+(make-directory $0 &optional PARENTS) \ No newline at end of file
diff --git a/emacs-lisp-mode/make-local-variable b/emacs-lisp-mode/make-local-variable
new file mode 100755
index 0000000..06e0ff4
--- /dev/null
+++ b/emacs-lisp-mode/make-local-variable
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: make-local-variable
+#key: make-local-variable
+#key: mlv
+# --
+(make-local-variable $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/mapc b/emacs-lisp-mode/mapc
new file mode 100755
index 0000000..f244f64
--- /dev/null
+++ b/emacs-lisp-mode/mapc
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: mapc
+#key: mapc
+# --
+(mapc '$0 SEQUENCE) \ No newline at end of file
diff --git a/emacs-lisp-mode/mapcar b/emacs-lisp-mode/mapcar
new file mode 100755
index 0000000..25bbd5d
--- /dev/null
+++ b/emacs-lisp-mode/mapcar
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: mapcar
+#key: mapcar
+# --
+(mapcar $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/match-beginning b/emacs-lisp-mode/match-beginning
new file mode 100755
index 0000000..b3ecc75
--- /dev/null
+++ b/emacs-lisp-mode/match-beginning
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: match-beginning
+#key: match-beginning
+#key: mb
+# --
+(match-beginning N$0) \ No newline at end of file
diff --git a/emacs-lisp-mode/match-end b/emacs-lisp-mode/match-end
new file mode 100755
index 0000000..d263499
--- /dev/null
+++ b/emacs-lisp-mode/match-end
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: match-end
+#key: match-end
+#key: me
+# --
+(match-end N$0) \ No newline at end of file
diff --git a/emacs-lisp-mode/match-string b/emacs-lisp-mode/match-string
new file mode 100755
index 0000000..5c74e9d
--- /dev/null
+++ b/emacs-lisp-mode/match-string
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: match-string
+#key: match-string
+#key: ms
+# --
+(match-string $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/memq b/emacs-lisp-mode/memq
new file mode 100755
index 0000000..f0f7cba
--- /dev/null
+++ b/emacs-lisp-mode/memq
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: memq
+#key: memq
+# --
+(memq ELT$0 LIST) \ No newline at end of file
diff --git a/emacs-lisp-mode/message b/emacs-lisp-mode/message
new file mode 100755
index 0000000..ea3009e
--- /dev/null
+++ b/emacs-lisp-mode/message
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: message
+#key: message
+#key: m
+# --
+(message "FORMATSTRING$0" &optional ARGS) \ No newline at end of file
diff --git a/emacs-lisp-mode/minor_mode b/emacs-lisp-mode/minor_mode
new file mode 100644
index 0000000..f0a09b2
--- /dev/null
+++ b/emacs-lisp-mode/minor_mode
@@ -0,0 +1,20 @@
+# -*- mode: snippet -*-
+# name: minor_mode
+# key: minor
+# --
+(defvar ${1:mode}-modeline-indicator " ${2:INDICATOR}"
+ "call ($1-install-mode) again if this is changed")
+
+(defvar $1-mode nil)
+(make-variable-buffer-local '$1-mode)
+(put '$1-mode 'permanent-local t)
+
+(defun $1-mode (&optional arg)
+ "$0"
+ (interactive "P")
+ (setq $1-mode
+ (if (null arg) (not $1-mode)
+ (> (prefix-numeric-value arg) 0)))
+ (force-mode-line-update))
+
+(provide '$1-mode) \ No newline at end of file
diff --git a/emacs-lisp-mode/not b/emacs-lisp-mode/not
new file mode 100755
index 0000000..083bcd7
--- /dev/null
+++ b/emacs-lisp-mode/not
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: not
+#key: not
+#key: n
+# --
+(not $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/nth b/emacs-lisp-mode/nth
new file mode 100755
index 0000000..b3880a2
--- /dev/null
+++ b/emacs-lisp-mode/nth
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: nth
+#key: nth
+# --
+(nth N$0 LIST) \ No newline at end of file
diff --git a/emacs-lisp-mode/null b/emacs-lisp-mode/null
new file mode 100755
index 0000000..9d451ec
--- /dev/null
+++ b/emacs-lisp-mode/null
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: null
+#key: null
+# --
+(null $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/number-to-string b/emacs-lisp-mode/number-to-string
new file mode 100755
index 0000000..42eccb7
--- /dev/null
+++ b/emacs-lisp-mode/number-to-string
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: number-to-string
+#key: number-to-string
+#key: nts
+# --
+(number-to-string $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/or b/emacs-lisp-mode/or
new file mode 100755
index 0000000..046218c
--- /dev/null
+++ b/emacs-lisp-mode/or
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: or
+#key: or
+#key: o
+# --
+(or $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/point b/emacs-lisp-mode/point
new file mode 100755
index 0000000..6aa6b74
--- /dev/null
+++ b/emacs-lisp-mode/point
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: point
+#key: point
+#key: p
+# --
+(point) \ No newline at end of file
diff --git a/emacs-lisp-mode/point-max b/emacs-lisp-mode/point-max
new file mode 100755
index 0000000..6544869
--- /dev/null
+++ b/emacs-lisp-mode/point-max
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: point-max
+#key: point-max
+# --
+(point-max) \ No newline at end of file
diff --git a/emacs-lisp-mode/point-min b/emacs-lisp-mode/point-min
new file mode 100755
index 0000000..029d736
--- /dev/null
+++ b/emacs-lisp-mode/point-min
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: point-min
+#key: point-min
+#key: pm
+# --
+(point-min) \ No newline at end of file
diff --git a/emacs-lisp-mode/princ b/emacs-lisp-mode/princ
new file mode 100755
index 0000000..88ad7d7
--- /dev/null
+++ b/emacs-lisp-mode/princ
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: princ
+#key: princ
+# --
+(princ $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/print b/emacs-lisp-mode/print
new file mode 100755
index 0000000..7d0f421
--- /dev/null
+++ b/emacs-lisp-mode/print
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: print
+#key: print
+# --
+(print $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/progn b/emacs-lisp-mode/progn
new file mode 100755
index 0000000..d07c5c3
--- /dev/null
+++ b/emacs-lisp-mode/progn
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: progn
+#key: progn
+# --
+(progn $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/push b/emacs-lisp-mode/push
new file mode 100755
index 0000000..f019b80
--- /dev/null
+++ b/emacs-lisp-mode/push
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: push
+#key: push
+# --
+(push $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/put b/emacs-lisp-mode/put
new file mode 100755
index 0000000..7a91f20
--- /dev/null
+++ b/emacs-lisp-mode/put
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: put
+#key: put
+# --
+(put $0 PROPNAME VALUE) \ No newline at end of file
diff --git a/emacs-lisp-mode/re-search-backward b/emacs-lisp-mode/re-search-backward
new file mode 100755
index 0000000..a04d99f
--- /dev/null
+++ b/emacs-lisp-mode/re-search-backward
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: re-search-backward
+#key: re-search-backward
+#key: rsb
+# --
+(re-search-backward REGEXP$0 &optional BOUND NOERROR COUNT) \ No newline at end of file
diff --git a/emacs-lisp-mode/re-search-forward b/emacs-lisp-mode/re-search-forward
new file mode 100755
index 0000000..31a24a3
--- /dev/null
+++ b/emacs-lisp-mode/re-search-forward
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: re-search-forward
+#key: re-search-forward
+#key: rsf
+# --
+(re-search-forward REGEXP$0 &optional BOUND NOERROR COUNT) \ No newline at end of file
diff --git a/emacs-lisp-mode/region-active-p b/emacs-lisp-mode/region-active-p
new file mode 100755
index 0000000..e70553e
--- /dev/null
+++ b/emacs-lisp-mode/region-active-p
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: region-active-p
+#key: region-active-p
+#key: rap
+# --
+(region-active-p) \ No newline at end of file
diff --git a/emacs-lisp-mode/region-beginning b/emacs-lisp-mode/region-beginning
new file mode 100755
index 0000000..55496e2
--- /dev/null
+++ b/emacs-lisp-mode/region-beginning
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: region-beginning
+#key: region-beginning
+#key: rb
+# --
+(region-beginning) \ No newline at end of file
diff --git a/emacs-lisp-mode/region-end b/emacs-lisp-mode/region-end
new file mode 100755
index 0000000..fddcd9f
--- /dev/null
+++ b/emacs-lisp-mode/region-end
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: region-end
+#key: region-end
+#key: re
+# --
+(region-end) \ No newline at end of file
diff --git a/emacs-lisp-mode/rename-file b/emacs-lisp-mode/rename-file
new file mode 100755
index 0000000..b589a89
--- /dev/null
+++ b/emacs-lisp-mode/rename-file
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: rename-file
+#key: rename-file
+#key: rf
+# --
+(rename-file FILE$0 NEWNAME &optional OK-IF-ALREADY-EXISTS) \ No newline at end of file
diff --git a/emacs-lisp-mode/repeat b/emacs-lisp-mode/repeat
new file mode 100755
index 0000000..45422eb
--- /dev/null
+++ b/emacs-lisp-mode/repeat
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: repeat
+#key: repeat
+# --
+(repeat $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/replace-regexp b/emacs-lisp-mode/replace-regexp
new file mode 100755
index 0000000..7535bc1
--- /dev/null
+++ b/emacs-lisp-mode/replace-regexp
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: replace-regexp
+#key: replace-regexp
+#key: rr
+# --
+(replace-regexp REGEXP$0 TO-STRING &optional DELIMITED START END) \ No newline at end of file
diff --git a/emacs-lisp-mode/replace-regexp-in-string b/emacs-lisp-mode/replace-regexp-in-string
new file mode 100755
index 0000000..edf7f5b
--- /dev/null
+++ b/emacs-lisp-mode/replace-regexp-in-string
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: replace-regexp-in-string
+#key: replace-regexp-in-string
+#key: rris
+# --
+(replace-regexp-in-string REGEXP$0 REP STRING &optional FIXEDCASE LITERAL SUBEXP START) \ No newline at end of file
diff --git a/emacs-lisp-mode/require b/emacs-lisp-mode/require
new file mode 100755
index 0000000..9c91035
--- /dev/null
+++ b/emacs-lisp-mode/require
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: require
+#key: require
+# --
+(require $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/save-buffer b/emacs-lisp-mode/save-buffer
new file mode 100755
index 0000000..931a72c
--- /dev/null
+++ b/emacs-lisp-mode/save-buffer
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: save-buffer
+#key: save-buffer
+#key: sb
+# --
+(save-buffer $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/save-excursion b/emacs-lisp-mode/save-excursion
new file mode 100755
index 0000000..5f587ce
--- /dev/null
+++ b/emacs-lisp-mode/save-excursion
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: save-excursion
+#key: save-excursion
+#key: se
+# --
+(save-excursion $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/search-backward b/emacs-lisp-mode/search-backward
new file mode 100755
index 0000000..4b07486
--- /dev/null
+++ b/emacs-lisp-mode/search-backward
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: search-backward
+#key: search-backward
+#key: sb
+# --
+(search-backward "$0" &optional BOUND NOERROR COUNT) \ No newline at end of file
diff --git a/emacs-lisp-mode/search-backward-regexp b/emacs-lisp-mode/search-backward-regexp
new file mode 100755
index 0000000..33795fd
--- /dev/null
+++ b/emacs-lisp-mode/search-backward-regexp
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: search-backward-regexp
+#key: search-backward-regexp
+#key: sbr
+# --
+(search-backward-regexp "$0" &optional BOUND NOERROR COUNT) \ No newline at end of file
diff --git a/emacs-lisp-mode/search-forward b/emacs-lisp-mode/search-forward
new file mode 100755
index 0000000..03e56c8
--- /dev/null
+++ b/emacs-lisp-mode/search-forward
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: search-forward
+#key: search-forward
+#key: sf
+# --
+(search-forward "$0" &optional BOUND NOERROR COUNT) \ No newline at end of file
diff --git a/emacs-lisp-mode/search-forward-regexp b/emacs-lisp-mode/search-forward-regexp
new file mode 100755
index 0000000..eb37b84
--- /dev/null
+++ b/emacs-lisp-mode/search-forward-regexp
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: search-forward-regexp
+#key: search-forward-regexp
+#key: sfr
+# --
+(search-forward-regexp "$0" &optional BOUND NOERROR COUNT) \ No newline at end of file
diff --git a/emacs-lisp-mode/set b/emacs-lisp-mode/set
new file mode 100755
index 0000000..cf9c101
--- /dev/null
+++ b/emacs-lisp-mode/set
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: set
+#key: set
+# --
+(set $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/set-buffer b/emacs-lisp-mode/set-buffer
new file mode 100755
index 0000000..0eff93d
--- /dev/null
+++ b/emacs-lisp-mode/set-buffer
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: set-buffer
+#key: set-buffer
+#key: sb
+# --
+(set-buffer $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/set-file-modes b/emacs-lisp-mode/set-file-modes
new file mode 100755
index 0000000..f7d7e16
--- /dev/null
+++ b/emacs-lisp-mode/set-file-modes
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: set-file-modes
+#key: set-file-modes
+#key: sfm
+# --
+(set-file-modes $0 MODE) \ No newline at end of file
diff --git a/emacs-lisp-mode/set-mark b/emacs-lisp-mode/set-mark
new file mode 100755
index 0000000..9a482a1
--- /dev/null
+++ b/emacs-lisp-mode/set-mark
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: set-mark
+#key: set-mark
+#key: sm
+# --
+(set-mark $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/setq b/emacs-lisp-mode/setq
new file mode 100755
index 0000000..4bdb4fc
--- /dev/null
+++ b/emacs-lisp-mode/setq
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: setq
+#key: setq
+#key: s
+# --
+(setq $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/skip-chars-backward b/emacs-lisp-mode/skip-chars-backward
new file mode 100755
index 0000000..0fc4cf4
--- /dev/null
+++ b/emacs-lisp-mode/skip-chars-backward
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: skip-chars-backward
+#key: skip-chars-backward
+#key: scb
+# --
+(skip-chars-backward "$0" &optional LIM) \ No newline at end of file
diff --git a/emacs-lisp-mode/skip-chars-forward b/emacs-lisp-mode/skip-chars-forward
new file mode 100755
index 0000000..110cbd5
--- /dev/null
+++ b/emacs-lisp-mode/skip-chars-forward
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: skip-chars-forward
+#key: skip-chars-forward
+#key: scf
+# --
+(skip-chars-forward "$0" &optional LIM) \ No newline at end of file
diff --git a/emacs-lisp-mode/split-string b/emacs-lisp-mode/split-string
new file mode 100755
index 0000000..37c372d
--- /dev/null
+++ b/emacs-lisp-mode/split-string
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: split-string
+#key: split-string
+#key: ss
+# --
+(split-string $0 &optional SEPARATORS OMIT-NULLS) \ No newline at end of file
diff --git a/emacs-lisp-mode/string b/emacs-lisp-mode/string
new file mode 100755
index 0000000..f3a4dda
--- /dev/null
+++ b/emacs-lisp-mode/string
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: string
+#key: string
+# --
+(string $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/string-match b/emacs-lisp-mode/string-match
new file mode 100755
index 0000000..1ef9876
--- /dev/null
+++ b/emacs-lisp-mode/string-match
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: string-match
+#key: string-match
+#key: sm
+# --
+(string-match "REGEXP$0" "STRING" &optional START) \ No newline at end of file
diff --git a/emacs-lisp-mode/string-to-number b/emacs-lisp-mode/string-to-number
new file mode 100755
index 0000000..449d621
--- /dev/null
+++ b/emacs-lisp-mode/string-to-number
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: string-to-number
+#key: string-to-number
+#key: stn
+# --
+(string-to-number "$0") \ No newline at end of file
diff --git a/emacs-lisp-mode/string= b/emacs-lisp-mode/string=
new file mode 100755
index 0000000..d0d43aa
--- /dev/null
+++ b/emacs-lisp-mode/string=
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: string=
+#key: string=
+# --
+(string= $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/stringp b/emacs-lisp-mode/stringp
new file mode 100755
index 0000000..c20be65
--- /dev/null
+++ b/emacs-lisp-mode/stringp
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: stringp
+#key: stringp
+# --
+(stringp $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/substring b/emacs-lisp-mode/substring
new file mode 100755
index 0000000..8ab6b49
--- /dev/null
+++ b/emacs-lisp-mode/substring
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: substring
+#key: substring
+# --
+(substring STRING$0 FROM &optional TO) \ No newline at end of file
diff --git a/emacs-lisp-mode/thing-at-point b/emacs-lisp-mode/thing-at-point
new file mode 100755
index 0000000..9c6e189
--- /dev/null
+++ b/emacs-lisp-mode/thing-at-point
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: thing-at-point
+#key: thing-at-point
+#key: tap
+# --
+(thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ... \ No newline at end of file
diff --git a/emacs-lisp-mode/traverse_dir b/emacs-lisp-mode/traverse_dir
new file mode 100644
index 0000000..2859cbd
--- /dev/null
+++ b/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-lisp-mode/unless b/emacs-lisp-mode/unless
new file mode 100755
index 0000000..15c1518
--- /dev/null
+++ b/emacs-lisp-mode/unless
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: unless
+#key: unless
+# --
+(unless $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/vector b/emacs-lisp-mode/vector
new file mode 100755
index 0000000..59ad236
--- /dev/null
+++ b/emacs-lisp-mode/vector
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: vector
+#key: vector
+#key: v
+# --
+(vector $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/when b/emacs-lisp-mode/when
new file mode 100755
index 0000000..c5f4478
--- /dev/null
+++ b/emacs-lisp-mode/when
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: when
+#key: when
+# --
+(when $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/while b/emacs-lisp-mode/while
new file mode 100755
index 0000000..4584be3
--- /dev/null
+++ b/emacs-lisp-mode/while
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: while
+#key: while
+# --
+(while $0) \ No newline at end of file
diff --git a/emacs-lisp-mode/widget-get b/emacs-lisp-mode/widget-get
new file mode 100755
index 0000000..24caf7b
--- /dev/null
+++ b/emacs-lisp-mode/widget-get
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: widget-get
+#key: widget-get
+#key: wg
+# --
+(widget-get $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/with-current-buffer b/emacs-lisp-mode/with-current-buffer
new file mode 100755
index 0000000..9041303
--- /dev/null
+++ b/emacs-lisp-mode/with-current-buffer
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: with-current-buffer
+#key: with-current-buffer
+#key: wcb
+# --
+(with-current-buffer $0 ) \ No newline at end of file
diff --git a/emacs-lisp-mode/word-or-region b/emacs-lisp-mode/word-or-region
new file mode 100644
index 0000000..66a59e4
--- /dev/null
+++ b/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-lisp-mode/word_regexp b/emacs-lisp-mode/word_regexp
new file mode 100644
index 0000000..4c3bfe6
--- /dev/null
+++ b/emacs-lisp-mode/word_regexp
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: word_regexp
+# key: <
+# --
+"\\_<${1:word}\\_>" \ No newline at end of file
diff --git a/emacs-lisp-mode/x-dired.process_marked b/emacs-lisp-mode/x-dired.process_marked
new file mode 100755
index 0000000..9af5a26
--- /dev/null
+++ b/emacs-lisp-mode/x-dired.process_marked
@@ -0,0 +1,17 @@
+#contributor: Xah Lee (XahLee.org)
+#name: process marked files in dired
+# key: x-dired
+# --
+;; 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 \ No newline at end of file
diff --git a/emacs-lisp-mode/x-file.process b/emacs-lisp-mode/x-file.process
new file mode 100755
index 0000000..3c82822
--- /dev/null
+++ b/emacs-lisp-mode/x-file.process
@@ -0,0 +1,18 @@
+#contributor: Xah Lee (XahLee.org)
+#name: a function that process a file
+# key: x-file
+# --
+(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"))) \ No newline at end of file
diff --git a/emacs-lisp-mode/x-file.read-lines b/emacs-lisp-mode/x-file.read-lines
new file mode 100755
index 0000000..2b23983
--- /dev/null
+++ b/emacs-lisp-mode/x-file.read-lines
@@ -0,0 +1,18 @@
+#contributor: Xah Lee (XahLee.org)
+#name: read lines of a file
+# key: x-file
+# --
+(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-lisp-mode/x-find-replace b/emacs-lisp-mode/x-find-replace
new file mode 100755
index 0000000..d4c4d11
--- /dev/null
+++ b/emacs-lisp-mode/x-find-replace
@@ -0,0 +1,18 @@
+#contributor: Xah Lee (XahLee.org)
+#name: find and replace on region
+# key: x-find-replace
+# --
+(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))
+ )
+ ) \ No newline at end of file
diff --git a/emacs-lisp-mode/x-grabstring b/emacs-lisp-mode/x-grabstring
new file mode 100755
index 0000000..d348e93
--- /dev/null
+++ b/emacs-lisp-mode/x-grabstring
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: grab buffer substring
+# key: x-grabstring
+# --
+(setq $0 (buffer-substring-no-properties myStartPos myEndPos)) \ No newline at end of file
diff --git a/emacs-lisp-mode/x-grabthing b/emacs-lisp-mode/x-grabthing
new file mode 100755
index 0000000..2c0079d
--- /dev/null
+++ b/emacs-lisp-mode/x-grabthing
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: grab word under cursor
+# key: x-grabthing
+# --
+(setq $0 (thing-at-point 'symbol)) \ No newline at end of file
diff --git a/emacs-lisp-mode/x-traverse_dir b/emacs-lisp-mode/x-traverse_dir
new file mode 100755
index 0000000..cfa461a
--- /dev/null
+++ b/emacs-lisp-mode/x-traverse_dir
@@ -0,0 +1,7 @@
+#name: traversing a directory
+#contributor: Xah Lee (XahLee.org)
+# key: x-traverse_dir
+# --
+;; apply a function to all files in a dir
+(require 'find-lisp)
+(mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$")) \ No newline at end of file
diff --git a/emacs-lisp-mode/x-word-or-region b/emacs-lisp-mode/x-word-or-region
new file mode 100755
index 0000000..c7b851b
--- /dev/null
+++ b/emacs-lisp-mode/x-word-or-region
@@ -0,0 +1,28 @@
+#contributor: Xah Lee (XahLee.org)
+#name: Command that works on region or word
+# key: x-word-or-region
+# --
+;; 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
+
+ )
+) \ No newline at end of file
diff --git a/emacs-lisp-mode/y-or-n-p b/emacs-lisp-mode/y-or-n-p
new file mode 100755
index 0000000..8aeec63
--- /dev/null
+++ b/emacs-lisp-mode/y-or-n-p
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: y-or-n-p
+#key: y-or-n-p
+#key: yonp
+# --
+(yes-or-no-p "PROMPT$0 ") \ No newline at end of file
diff --git a/emacs-lisp-mode/yes-or-no-p b/emacs-lisp-mode/yes-or-no-p
new file mode 100755
index 0000000..e7bb064
--- /dev/null
+++ b/emacs-lisp-mode/yes-or-no-p
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: yes-or-no-p
+#key: yes-or-no-p
+# --
+(yes-or-no-p "PROMPT$0 ") \ No newline at end of file
diff --git a/enh-ruby-mode b/enh-ruby-mode
new file mode 120000
index 0000000..6771f4d
--- /dev/null
+++ b/enh-ruby-mode
@@ -0,0 +1 @@
+ruby-mode \ No newline at end of file
diff --git a/ensime-mode b/ensime-mode
new file mode 120000
index 0000000..92088ba
--- /dev/null
+++ b/ensime-mode
@@ -0,0 +1 @@
+scala-mode \ No newline at end of file
diff --git a/erc-mode/blist b/erc-mode/blist
new file mode 100644
index 0000000..bf30419
--- /dev/null
+++ b/erc-mode/blist
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: blist
+# key: b
+# --
+blist
diff --git a/erc-mode/help b/erc-mode/help
new file mode 100644
index 0000000..a47a572
--- /dev/null
+++ b/erc-mode/help
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: help
+# key: h
+# --
+help $0 \ No newline at end of file
diff --git a/erlang-mode/after b/erlang-mode/after
new file mode 100644
index 0000000..264e201
--- /dev/null
+++ b/erlang-mode/after
@@ -0,0 +1,4 @@
+#name : after ... ->
+# --
+after
+ $1 -> $0
diff --git a/erlang-mode/begin b/erlang-mode/begin
new file mode 100644
index 0000000..7b48494
--- /dev/null
+++ b/erlang-mode/begin
@@ -0,0 +1,5 @@
+#name : begin ... end
+# --
+begin
+ $0
+end
diff --git a/erlang-mode/beh b/erlang-mode/beh
new file mode 100644
index 0000000..4975b26
--- /dev/null
+++ b/erlang-mode/beh
@@ -0,0 +1,4 @@
+#name : -behaviour(...).
+# --
+-behaviour(${1:gen_server}).
+$0
diff --git a/erlang-mode/case b/erlang-mode/case
new file mode 100644
index 0000000..5bed114
--- /dev/null
+++ b/erlang-mode/case
@@ -0,0 +1,5 @@
+#name : case ... of ... end
+# --
+case $1 of
+ $0
+end
diff --git a/erlang-mode/compile b/erlang-mode/compile
new file mode 100644
index 0000000..ae3a4d8
--- /dev/null
+++ b/erlang-mode/compile
@@ -0,0 +1,4 @@
+#name : -compile(...).
+# --
+-compile([${1:export_all}]).
+$0
diff --git a/erlang-mode/def b/erlang-mode/def
new file mode 100644
index 0000000..6fb92f1
--- /dev/null
+++ b/erlang-mode/def
@@ -0,0 +1,4 @@
+#name : -define(...,...).
+# --
+-define($1,$2).
+$0
diff --git a/erlang-mode/exp b/erlang-mode/exp
new file mode 100644
index 0000000..67f56da
--- /dev/null
+++ b/erlang-mode/exp
@@ -0,0 +1,5 @@
+#name : -export([]).
+#contributor : hitesh <hitesh.jasani@gmail.com>
+# --
+-export([${1:start/0}]).
+$0
diff --git a/erlang-mode/fun b/erlang-mode/fun
new file mode 100644
index 0000000..77f8293
--- /dev/null
+++ b/erlang-mode/fun
@@ -0,0 +1,3 @@
+#name : fun (...) -> ... end
+# --
+fun ($1) -> $0 end
diff --git a/erlang-mode/if b/erlang-mode/if
new file mode 100644
index 0000000..45674c4
--- /dev/null
+++ b/erlang-mode/if
@@ -0,0 +1,6 @@
+#name : if ... -> ... ; true -> ... end
+# --
+if
+ $1 -> $2;
+ true -> $0
+end
diff --git a/erlang-mode/ifdef b/erlang-mode/ifdef
new file mode 100644
index 0000000..ea89ecf
--- /dev/null
+++ b/erlang-mode/ifdef
@@ -0,0 +1,5 @@
+#name : -ifdef(...). ... -endif.
+# --
+-ifdef($1).
+$0
+-endif.
diff --git a/erlang-mode/ifndef b/erlang-mode/ifndef
new file mode 100644
index 0000000..dcd67a7
--- /dev/null
+++ b/erlang-mode/ifndef
@@ -0,0 +1,5 @@
+#name : -ifndef(...). ... -endif.
+# --
+-ifndef($1).
+$0
+-endif.
diff --git a/erlang-mode/imp b/erlang-mode/imp
new file mode 100644
index 0000000..c035ddd
--- /dev/null
+++ b/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/erlang-mode/inc b/erlang-mode/inc
new file mode 100644
index 0000000..f7b2161
--- /dev/null
+++ b/erlang-mode/inc
@@ -0,0 +1,4 @@
+#name : -include("...").
+# --
+-include("$1").
+$0
diff --git a/erlang-mode/inc.lib b/erlang-mode/inc.lib
new file mode 100644
index 0000000..09a6723
--- /dev/null
+++ b/erlang-mode/inc.lib
@@ -0,0 +1,4 @@
+#name : -include_lib("...").
+# --
+-include_lib("$1").
+$0
diff --git a/erlang-mode/loop b/erlang-mode/loop
new file mode 100644
index 0000000..0205802
--- /dev/null
+++ b/erlang-mode/loop
@@ -0,0 +1,8 @@
+#name : loop(...) -> receive _ -> loop(...) end.
+# --
+${1:loop}($2) ->
+ receive
+ ${3:_} ->
+ $1($2)
+ end.
+$0
diff --git a/erlang-mode/mod b/erlang-mode/mod
new file mode 100644
index 0000000..7275d39
--- /dev/null
+++ b/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/erlang-mode/rcv b/erlang-mode/rcv
new file mode 100644
index 0000000..804fb3f
--- /dev/null
+++ b/erlang-mode/rcv
@@ -0,0 +1,5 @@
+#name : receive ... -> ... end
+# --
+receive
+ $1 -> $0
+end
diff --git a/erlang-mode/rcv.after b/erlang-mode/rcv.after
new file mode 100644
index 0000000..51046df
--- /dev/null
+++ b/erlang-mode/rcv.after
@@ -0,0 +1,6 @@
+#name : receive after ... -> ... end
+# --
+receive
+after
+ $1 -> $0
+end
diff --git a/erlang-mode/rec b/erlang-mode/rec
new file mode 100644
index 0000000..0d67834
--- /dev/null
+++ b/erlang-mode/rec
@@ -0,0 +1,4 @@
+#name : -record(...,{...}).
+# --
+-record($1,{$2}).
+$0
diff --git a/erlang-mode/try b/erlang-mode/try
new file mode 100644
index 0000000..fa5c9c2
--- /dev/null
+++ b/erlang-mode/try
@@ -0,0 +1,7 @@
+#name : try ... of ... catch after end
+# --
+try $1 of
+ $0
+catch
+after
+end
diff --git a/erlang-mode/undef b/erlang-mode/undef
new file mode 100644
index 0000000..7ab5dd4
--- /dev/null
+++ b/erlang-mode/undef
@@ -0,0 +1,4 @@
+#name : -undef(...).
+# --
+-undef($1).
+$0
diff --git a/f90-mode/au b/f90-mode/au
new file mode 100644
index 0000000..1f0af73
--- /dev/null
+++ b/f90-mode/au
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : automatic
+# --
+automatic $0
diff --git a/f90-mode/bd b/f90-mode/bd
new file mode 100644
index 0000000..8840102
--- /dev/null
+++ b/f90-mode/bd
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : block data
+# --
+block data $0
diff --git a/f90-mode/c b/f90-mode/c
new file mode 100644
index 0000000..c7182e4
--- /dev/null
+++ b/f90-mode/c
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : continue
+# --
+continue $0
diff --git a/f90-mode/ch b/f90-mode/ch
new file mode 100644
index 0000000..7e6b4cb
--- /dev/null
+++ b/f90-mode/ch
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : character
+# --
+character $0
diff --git a/f90-mode/cx b/f90-mode/cx
new file mode 100644
index 0000000..8feb41e
--- /dev/null
+++ b/f90-mode/cx
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : complex
+# --
+complex $0
diff --git a/f90-mode/dc b/f90-mode/dc
new file mode 100644
index 0000000..1992b1b
--- /dev/null
+++ b/f90-mode/dc
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : double complex
+# --
+double complex $0
diff --git a/f90-mode/do b/f90-mode/do
new file mode 100644
index 0000000..09f5cb2
--- /dev/null
+++ b/f90-mode/do
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# contributor: Jonas Kalderstam <jonas@kalderstam.se>
+# name: do ... end do ...
+# key: do
+# --
+do $1
+ $0
+end do
diff --git a/f90-mode/dp b/f90-mode/dp
new file mode 100644
index 0000000..ad014b7
--- /dev/null
+++ b/f90-mode/dp
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : double precision
+# --
+double precision $0
diff --git a/f90-mode/eq b/f90-mode/eq
new file mode 100644
index 0000000..0c6d09f
--- /dev/null
+++ b/f90-mode/eq
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : equivalence
+# --
+equivalence $0
diff --git a/f90-mode/forall b/f90-mode/forall
new file mode 100644
index 0000000..03da421
--- /dev/null
+++ b/f90-mode/forall
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# contributor: Jonas Kalderstam <jonas@kalderstam.se>
+# name: forall ... end forall ...
+# key: forall
+# --
+forall ($1)
+ $0
+end forall \ No newline at end of file
diff --git a/f90-mode/function b/f90-mode/function
new file mode 100644
index 0000000..e8f13ef
--- /dev/null
+++ b/f90-mode/function
@@ -0,0 +1,12 @@
+# -*- mode: snippet -*-
+# contributor: Jonas Kalderstam <jonas@kalderstam.se>
+# name: function ... end function ...
+# key: function
+# --
+function ${1:name} (${2:arg})
+ ${3:real} :: $1
+ ${4:real, intent(in)} :: $2
+
+ $0
+
+end function $1
diff --git a/f90-mode/ib b/f90-mode/ib
new file mode 100644
index 0000000..9275a12
--- /dev/null
+++ b/f90-mode/ib
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : implicit byte
+# --
+implicit byte $0
diff --git a/f90-mode/ic b/f90-mode/ic
new file mode 100644
index 0000000..79842ea
--- /dev/null
+++ b/f90-mode/ic
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : implicit complex
+# --
+implicit complex $0
diff --git a/f90-mode/ich b/f90-mode/ich
new file mode 100644
index 0000000..53c7f81
--- /dev/null
+++ b/f90-mode/ich
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : implicit character
+# --
+implicit character $0
diff --git a/f90-mode/if b/f90-mode/if
new file mode 100644
index 0000000..b4fb526
--- /dev/null
+++ b/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/f90-mode/ii b/f90-mode/ii
new file mode 100644
index 0000000..4b1fee5
--- /dev/null
+++ b/f90-mode/ii
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : implicit integer
+# --
+implicit integer $0
diff --git a/f90-mode/il b/f90-mode/il
new file mode 100644
index 0000000..8658af5
--- /dev/null
+++ b/f90-mode/il
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : implicit logical
+# --
+implicit logical $0
diff --git a/f90-mode/in b/f90-mode/in
new file mode 100644
index 0000000..0c1d5e1
--- /dev/null
+++ b/f90-mode/in
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : implicit none
+# --
+implicit none
diff --git a/f90-mode/inc b/f90-mode/inc
new file mode 100644
index 0000000..dd649c4
--- /dev/null
+++ b/f90-mode/inc
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : include
+# --
+include $0
diff --git a/f90-mode/intr b/f90-mode/intr
new file mode 100644
index 0000000..147fffd
--- /dev/null
+++ b/f90-mode/intr
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : intrinsic
+# --
+intrinsic $0
diff --git a/f90-mode/ir b/f90-mode/ir
new file mode 100644
index 0000000..fb37082
--- /dev/null
+++ b/f90-mode/ir
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : implicit real
+# --
+implicit real $0
diff --git a/f90-mode/l b/f90-mode/l
new file mode 100644
index 0000000..8605d69
--- /dev/null
+++ b/f90-mode/l
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : logical
+# --
+logical $0
diff --git a/f90-mode/module b/f90-mode/module
new file mode 100644
index 0000000..ebffe50
--- /dev/null
+++ b/f90-mode/module
@@ -0,0 +1,12 @@
+# -*- mode: snippet -*-
+# contributor: Jonas Kalderstam <jonas@kalderstam.se>
+# name: module ... end module ...
+# key: module
+# --
+module ${1:name}
+
+contains
+
+ $0
+
+end module $1
diff --git a/f90-mode/pa b/f90-mode/pa
new file mode 100644
index 0000000..1b1b503
--- /dev/null
+++ b/f90-mode/pa
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : parameter
+# --
+parameter $0
diff --git a/f90-mode/pr b/f90-mode/pr
new file mode 100644
index 0000000..24fc8c9
--- /dev/null
+++ b/f90-mode/pr
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# contributor: Jonas Kalderstam <jonas@kalderstam.se>
+# name: program ... end program ...
+# key: pr
+# --
+program ${1:name}
+ ${2:implicit none}
+
+ $0
+
+end program $1
diff --git a/f90-mode/program b/f90-mode/program
new file mode 100644
index 0000000..1458cb5
--- /dev/null
+++ b/f90-mode/program
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# contributor: Jonas Kalderstam <jonas@kalderstam.se>
+# name: program .. end program
+# key: program
+# --
+program ${1:name}
+ ${2:implicit none}
+
+ $0
+
+end program $1
diff --git a/f90-mode/puref b/f90-mode/puref
new file mode 100644
index 0000000..0c4b046
--- /dev/null
+++ b/f90-mode/puref
@@ -0,0 +1,12 @@
+# -*- mode: snippet -*-
+# contributor: Jonas Kalderstam <jonas@kalderstam.se>
+# name: pure function ... end function ...
+# key: pure func
+# --
+pure function ${1:name} (${2:arg})
+ ${3:real} :: $1
+ ${4:real, intent(in)} :: $2
+
+ $0
+
+end function $1
diff --git a/f90-mode/purefunc b/f90-mode/purefunc
new file mode 100644
index 0000000..eeb3a06
--- /dev/null
+++ b/f90-mode/purefunc
@@ -0,0 +1,12 @@
+# -*- mode: snippet -*-
+# contributor: Jonas Kalderstam <jonas@kalderstam.se>
+# name: pure function .. end function
+# key: pure function
+# --
+pure function ${1:name} (${2:arg})
+ ${3:real} :: $1
+ ${4:real, intent(in)} :: $2
+
+ $0
+
+end function $1
diff --git a/f90-mode/pures b/f90-mode/pures
new file mode 100644
index 0000000..e306d4b
--- /dev/null
+++ b/f90-mode/pures
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# contributor: Jonas Kalderstam <jonas@kalderstam.se>
+# name: pure subroutine .. end subroutine
+# key: pure subroutine
+# --
+pure subroutine ${1:name} (${2:arg})
+ ${3:real, intent(in) :: $2}
+
+ $0
+end subroutine $1
diff --git a/f90-mode/puresub b/f90-mode/puresub
new file mode 100644
index 0000000..cc908d0
--- /dev/null
+++ b/f90-mode/puresub
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# contributor: Jonas Kalderstam <jonas@kalderstam.se>
+# name: pure subroutine ... end subroutine ...
+# key: pure sub
+# --
+pure subroutine ${1:name} (${2:arg})
+ ${3:real, intent(in) :: $2}
+
+ $0
+end subroutine $1
diff --git a/f90-mode/re b/f90-mode/re
new file mode 100644
index 0000000..08c7ba0
--- /dev/null
+++ b/f90-mode/re
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : read (*,*)
+# --
+read (${1:*},${2:*}) $0
diff --git a/f90-mode/st b/f90-mode/st
new file mode 100644
index 0000000..23ae7d0
--- /dev/null
+++ b/f90-mode/st
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : structure
+# --
+structure $0
diff --git a/f90-mode/su b/f90-mode/su
new file mode 100644
index 0000000..63fea4a
--- /dev/null
+++ b/f90-mode/su
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# contributor: Jonas Kalderstam <jonas@kalderstam.se>
+# name: subroutine ... end subroutine ...
+# key: su
+# --
+subroutine ${1:name} (${2:arg})
+ ${3:real, intent(in) :: $2}
+
+ $0
+end subroutine $1
diff --git a/f90-mode/subroutine b/f90-mode/subroutine
new file mode 100644
index 0000000..35e913a
--- /dev/null
+++ b/f90-mode/subroutine
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# contributor: Jonas Kalderstam <jonas@kalderstam.se>
+# name: subroutine .. end subroutine
+# key: subroutine
+# --
+subroutine ${1:name} (${2:arg})
+ ${3:real, intent(in) :: $2}
+
+ $0
+end subroutine $1
diff --git a/f90-mode/until b/f90-mode/until
new file mode 100644
index 0000000..5094629
--- /dev/null
+++ b/f90-mode/until
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# contributor: Jonas Kalderstam <jonas@kalderstam.se>
+# name: until ... end until ...
+# key: until
+# --
+do
+ $0
+ if (${1:condition}) exit
+end do
diff --git a/f90-mode/where b/f90-mode/where
new file mode 100644
index 0000000..98c2b1c
--- /dev/null
+++ b/f90-mode/where
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# contributor: Jonas Kalderstam <jonas@kalderstam.se>
+# name: where ... end where ...
+# key: where
+# --
+
+where (${1:condition})
+ $0
+end where
diff --git a/f90-mode/while b/f90-mode/while
new file mode 100644
index 0000000..3acc12f
--- /dev/null
+++ b/f90-mode/while
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# contributor: Jonas Kalderstam <jonas@kalderstam.se>
+# name: while ... end while ...
+# key: while
+# --
+do while (${1:condition})
+ $0
+end do
diff --git a/f90-mode/wr b/f90-mode/wr
new file mode 100644
index 0000000..1ac3eb9
--- /dev/null
+++ b/f90-mode/wr
@@ -0,0 +1,4 @@
+#contributor: Li Zhu <http://www.zhuli.name>
+#name : write (*,*)
+# --
+write (${1:*},${2:*}) $0
diff --git a/fundamental-mode/.yas-setup.el b/fundamental-mode/.yas-setup.el
new file mode 100644
index 0000000..cc4a171
--- /dev/null
+++ b/fundamental-mode/.yas-setup.el
@@ -0,0 +1,8 @@
+(defun ca-all-asscs (asslist query)
+ "returns a list of all corresponding values (like rassoc)"
+ (cond
+ ((null asslist) nil)
+ (t
+ (if (equal (cdr (car asslist)) query)
+ (cons (car (car asslist)) (ca-all-asscs (cdr asslist) query))
+ (ca-all-asscs (cdr asslist) query)))))
diff --git a/git-commit-mode/.yas-parents b/git-commit-mode/.yas-parents
new file mode 100644
index 0000000..d58dacb
--- /dev/null
+++ b/git-commit-mode/.yas-parents
@@ -0,0 +1 @@
+text-mode \ No newline at end of file
diff --git a/git-commit-mode/fixes b/git-commit-mode/fixes
new file mode 100644
index 0000000..22ad91d
--- /dev/null
+++ b/git-commit-mode/fixes
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: fixes
+# key: fix
+# --
+fixes #${1:100} \ No newline at end of file
diff --git a/git-commit-mode/references b/git-commit-mode/references
new file mode 100644
index 0000000..160ebc0
--- /dev/null
+++ b/git-commit-mode/references
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: references
+# key: ref
+# --
+references #${1:100} \ No newline at end of file
diff --git a/go-mode/benchmark b/go-mode/benchmark
new file mode 100644
index 0000000..ef669a8
--- /dev/null
+++ b/go-mode/benchmark
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: benchmark
+# key: bench
+# contributor : @atotto
+# --
+func Benchmark$1(b *testing.B) {
+ for i := 0; i < b.N; i++ {
+ $0
+ }
+}
diff --git a/go-mode/const b/go-mode/const
new file mode 100644
index 0000000..c6524e3
--- /dev/null
+++ b/go-mode/const
@@ -0,0 +1,6 @@
+# -*- mode:snippet -*-
+# name: const
+# key: const
+# --
+const ${1:name type} = ${2:val}
+$0 \ No newline at end of file
diff --git a/go-mode/const( b/go-mode/const(
new file mode 100644
index 0000000..03f26da
--- /dev/null
+++ b/go-mode/const(
@@ -0,0 +1,7 @@
+# -*- mode:snippet -*-
+# name: const (...)
+# key: const
+# --
+const (
+ ${1:name type} = ${2:val}
+) \ No newline at end of file
diff --git a/go-mode/dd b/go-mode/dd
new file mode 100644
index 0000000..6e6fd1e
--- /dev/null
+++ b/go-mode/dd
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: debug fmt.Printf
+# key: dd
+# --
+fmt.Printf("%+v\n", $1) // output for debug
+$0 \ No newline at end of file
diff --git a/go-mode/default b/go-mode/default
new file mode 100644
index 0000000..e0cd749
--- /dev/null
+++ b/go-mode/default
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: default
+# key: def
+# --
+default:
+$0 \ No newline at end of file
diff --git a/go-mode/else b/go-mode/else
new file mode 100644
index 0000000..7f71305
--- /dev/null
+++ b/go-mode/else
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: else
+# key: el
+# --
+ else {
+ $0
+} \ No newline at end of file
diff --git a/go-mode/error b/go-mode/error
new file mode 100644
index 0000000..85c539a
--- /dev/null
+++ b/go-mode/error
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: error
+# key: err
+# contributor : @atotto
+# --
+if err != nil {
+ $0
+} \ No newline at end of file
diff --git a/go-mode/example b/go-mode/example
new file mode 100644
index 0000000..acfb75d
--- /dev/null
+++ b/go-mode/example
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: example
+# key: example
+# contributor : @atotto
+# --
+func Example$1() {
+ $0
+}
diff --git a/go-mode/for b/go-mode/for
new file mode 100644
index 0000000..9f404a3
--- /dev/null
+++ b/go-mode/for
@@ -0,0 +1,7 @@
+# -*- mode:snippet -*-
+# name: for
+# key: for
+# --
+for $1 {
+ $0
+}
diff --git a/go-mode/forrange b/go-mode/forrange
new file mode 100644
index 0000000..9d889eb
--- /dev/null
+++ b/go-mode/forrange
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: for range
+# key: range
+# contributor : @atotto
+# --
+for ${3:key}, ${2:value} := range ${1:target} {
+ $0
+} \ No newline at end of file
diff --git a/go-mode/func b/go-mode/func
new file mode 100644
index 0000000..3b2e0f5
--- /dev/null
+++ b/go-mode/func
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: func
+# key: func
+# --
+//
+func ${1:name}(${2:args}) $3 {
+ $0
+} \ No newline at end of file
diff --git a/go-mode/if b/go-mode/if
new file mode 100644
index 0000000..569c1d5
--- /dev/null
+++ b/go-mode/if
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: if
+# key: if
+# --
+if $1 {
+ $0
+} \ No newline at end of file
diff --git a/go-mode/iferr b/go-mode/iferr
new file mode 100644
index 0000000..f1a284e
--- /dev/null
+++ b/go-mode/iferr
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: if error
+# key: iferr
+# --
+if err != $1 {
+ $0
+}
diff --git a/go-mode/import b/go-mode/import
new file mode 100644
index 0000000..adf411b
--- /dev/null
+++ b/go-mode/import
@@ -0,0 +1,6 @@
+# -*- mode:snippet -*-
+# name: import
+# key: imp
+# --
+import "$1"
+$0 \ No newline at end of file
diff --git a/go-mode/import( b/go-mode/import(
new file mode 100644
index 0000000..b38ccf7
--- /dev/null
+++ b/go-mode/import(
@@ -0,0 +1,7 @@
+# -*- mode:snippet -*-
+# name: import (...)
+# key: imp
+# --
+import (
+ "$0"
+)
diff --git a/go-mode/lambda b/go-mode/lambda
new file mode 100644
index 0000000..07edca4
--- /dev/null
+++ b/go-mode/lambda
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: lambda func
+# key: lambda
+# --
+func(${1:args}) $2 {
+ $0
+}() \ No newline at end of file
diff --git a/go-mode/main b/go-mode/main
new file mode 100644
index 0000000..22d4b85
--- /dev/null
+++ b/go-mode/main
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: func main()
+# key: main
+# --
+func main() {
+ $0
+} \ No newline at end of file
diff --git a/go-mode/map b/go-mode/map
new file mode 100644
index 0000000..a2860ce
--- /dev/null
+++ b/go-mode/map
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: map
+# key: map
+# --
+map[${1:type}]${2:type}
diff --git a/go-mode/printf b/go-mode/printf
new file mode 100644
index 0000000..56563df
--- /dev/null
+++ b/go-mode/printf
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: fmt.Printf(...)
+# key: pr
+# --
+fmt.Printf("${1:%s}\n", ${2:args})
+$0 \ No newline at end of file
diff --git a/go-mode/select b/go-mode/select
new file mode 100644
index 0000000..1db4b3c
--- /dev/null
+++ b/go-mode/select
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: select
+# key: sel
+# --
+select {
+case $1:
+ $0
+} \ No newline at end of file
diff --git a/go-mode/switch b/go-mode/switch
new file mode 100644
index 0000000..95c9dd7
--- /dev/null
+++ b/go-mode/switch
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: switch
+# key: sw
+# --
+switch $1 {
+case $2:
+ $0
+} \ No newline at end of file
diff --git a/go-mode/test b/go-mode/test
new file mode 100644
index 0000000..8baf8c9
--- /dev/null
+++ b/go-mode/test
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: test
+# key: at
+# contributor : @atotto
+# --
+func Test$1(t *testing.T) {
+ $0
+}
diff --git a/go-mode/testmain b/go-mode/testmain
new file mode 100644
index 0000000..5f208da
--- /dev/null
+++ b/go-mode/testmain
@@ -0,0 +1,21 @@
+# -*- mode: snippet -*-
+# name: testmain
+# key: testmain
+# contributor : @atotto
+# --
+func TestMain(m *testing.M) {
+ setup()
+ ret := m.Run()
+ if ret == 0 {
+ teardown()
+ }
+ os.Exit(ret)
+}
+
+func setup() {
+ $1
+}
+
+func teardown() {
+ $2
+} \ No newline at end of file
diff --git a/go-mode/type b/go-mode/type
new file mode 100644
index 0000000..862feb7
--- /dev/null
+++ b/go-mode/type
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: type
+# key: type
+# --
+type $1 $2 {
+ $0
+} \ No newline at end of file
diff --git a/go-mode/var b/go-mode/var
new file mode 100644
index 0000000..839eb9f
--- /dev/null
+++ b/go-mode/var
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: var
+# key: var
+# --
+var ${1:name} ${2:type}
+$0 \ No newline at end of file
diff --git a/go-mode/var( b/go-mode/var(
new file mode 100644
index 0000000..5ad7cc8
--- /dev/null
+++ b/go-mode/var(
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: var (...)
+# key: var
+# --
+var (
+ ${1:name} ${2:type}
+) \ No newline at end of file
diff --git a/groovy-mode/.yas-parents b/groovy-mode/.yas-parents
new file mode 100644
index 0000000..c23a148
--- /dev/null
+++ b/groovy-mode/.yas-parents
@@ -0,0 +1 @@
+java-mode \ No newline at end of file
diff --git a/groovy-mode/class b/groovy-mode/class
new file mode 100644
index 0000000..d58e4ba
--- /dev/null
+++ b/groovy-mode/class
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: class
+# key: class
+# --
+class ${1:Class} {
+ $0
+} \ No newline at end of file
diff --git a/groovy-mode/def b/groovy-mode/def
new file mode 100644
index 0000000..5d7aa22
--- /dev/null
+++ b/groovy-mode/def
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: def
+# key: def
+# --
+def ${1:method}(${2:args}) {
+ $0
+} \ No newline at end of file
diff --git a/groovy-mode/dict b/groovy-mode/dict
new file mode 100644
index 0000000..380eaf8
--- /dev/null
+++ b/groovy-mode/dict
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: dict
+# key: dict
+# --
+${1:dict} = [${2:key} : ${3:value}$0] \ No newline at end of file
diff --git a/groovy-mode/for b/groovy-mode/for
new file mode 100644
index 0000000..c060814
--- /dev/null
+++ b/groovy-mode/for
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: for
+# key: for
+# --
+for (${1:var} in ${2:iter}) {
+ $0
+}
diff --git a/groovy-mode/println b/groovy-mode/println
new file mode 100644
index 0000000..0fd8648
--- /dev/null
+++ b/groovy-mode/println
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: println
+# key: pr
+# --
+println ${1:"string"}
+$0 \ No newline at end of file
diff --git a/groovy-mode/times b/groovy-mode/times
new file mode 100644
index 0000000..39d218d
--- /dev/null
+++ b/groovy-mode/times
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: times
+# key: times
+# --
+${1:10}.times {
+ $0
+} . \ No newline at end of file
diff --git a/haskell-mode/case b/haskell-mode/case
new file mode 100644
index 0000000..4a4f6cb
--- /dev/null
+++ b/haskell-mode/case
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: case
+# key: case
+# --
+case ${1:var} of
+ ${2:cond} -> ${3:value}
+ $0
+ otherwise -> ${4:other} \ No newline at end of file
diff --git a/haskell-mode/data b/haskell-mode/data
new file mode 100644
index 0000000..ed0166f
--- /dev/null
+++ b/haskell-mode/data
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: data
+# key: da
+# --
+data ${1:Type} = $2 \ No newline at end of file
diff --git a/haskell-mode/doc b/haskell-mode/doc
new file mode 100644
index 0000000..d9ac695
--- /dev/null
+++ b/haskell-mode/doc
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: doc
+# key: d
+# --
+{-
+ $0
+-} \ No newline at end of file
diff --git a/haskell-mode/efix b/haskell-mode/efix
new file mode 100644
index 0000000..e8714f3
--- /dev/null
+++ b/haskell-mode/efix
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: fixme dummy
+# key: efix
+# expand-env: ((yas-indent-line 'fixed))
+# --
+(error "FIXME: $0") \ No newline at end of file
diff --git a/haskell-mode/function b/haskell-mode/function
new file mode 100644
index 0000000..ea2e022
--- /dev/null
+++ b/haskell-mode/function
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: fun
+# key: fun
+# --
+${1:function-name} :: ${2:type}
+$1 ${3:arguments} $0 \ No newline at end of file
diff --git a/haskell-mode/functione b/haskell-mode/functione
new file mode 100644
index 0000000..22276e7
--- /dev/null
+++ b/haskell-mode/functione
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: fune
+# key: fune
+# --
+${1:function-name} :: ${2:type}
+$1 = $0error "Not implemented: $1" \ No newline at end of file
diff --git a/haskell-mode/import b/haskell-mode/import
new file mode 100644
index 0000000..3771543
--- /dev/null
+++ b/haskell-mode/import
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: import
+# key: import
+# --
+import${1: qualified} ${2:Module${3:(symbols)}}${4: as ${5:alias}} \ No newline at end of file
diff --git a/haskell-mode/instance b/haskell-mode/instance
new file mode 100644
index 0000000..d288db7
--- /dev/null
+++ b/haskell-mode/instance
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: instance
+# key: ins
+# --
+instance ${1:${2:(Show a)} => }${3:Ord} ${4:DataType} where
+$0
diff --git a/haskell-mode/main b/haskell-mode/main
new file mode 100644
index 0000000..5ab76ba
--- /dev/null
+++ b/haskell-mode/main
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: main function
+# key: main
+# expand-env: ((yas-indent-line 'fixed))
+# --
+main :: IO ()
+main = do $0 \ No newline at end of file
diff --git a/haskell-mode/module b/haskell-mode/module
new file mode 100644
index 0000000..20d4f3c
--- /dev/null
+++ b/haskell-mode/module
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: module
+# key: mod
+# --
+module ${1:Module} where
+$0 \ No newline at end of file
diff --git a/haskell-mode/new class b/haskell-mode/new class
new file mode 100644
index 0000000..2206efa
--- /dev/null
+++ b/haskell-mode/new class
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: new class
+# key: class
+# --
+class ${1:Class Name} where
+ $0 \ No newline at end of file
diff --git a/haskell-mode/pragma b/haskell-mode/pragma
new file mode 100644
index 0000000..6532151
--- /dev/null
+++ b/haskell-mode/pragma
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: pragma
+# key: {
+# --
+{-# ${1:PRAGMA} #-} \ No newline at end of file
diff --git a/haskell-mode/print b/haskell-mode/print
new file mode 100644
index 0000000..30b4a44
--- /dev/null
+++ b/haskell-mode/print
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: print
+# key: pr
+# --
+print $0 \ No newline at end of file
diff --git a/html-mode/.yas-parents b/html-mode/.yas-parents
new file mode 100644
index 0000000..74c3dd5
--- /dev/null
+++ b/html-mode/.yas-parents
@@ -0,0 +1 @@
+nxml-mode
diff --git a/html-mode/dd b/html-mode/dd
new file mode 100644
index 0000000..8120b13
--- /dev/null
+++ b/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/html-mode/dl b/html-mode/dl
new file mode 100644
index 0000000..be11bb5
--- /dev/null
+++ b/html-mode/dl
@@ -0,0 +1,7 @@
+#contributor : Rodrigo Setti <rodrigosetti@gmail.com>
+#name : <dl> ... </dl>
+#group : list
+# --
+<dl>
+ $0
+</dl>
diff --git a/html-mode/doctype b/html-mode/doctype
new file mode 100644
index 0000000..a60dfb6
--- /dev/null
+++ b/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/html-mode/doctype.xhml1 b/html-mode/doctype.xhml1
new file mode 100644
index 0000000..5d95e07
--- /dev/null
+++ b/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/html-mode/doctype.xhtml1_1 b/html-mode/doctype.xhtml1_1
new file mode 100644
index 0000000..fec46d7
--- /dev/null
+++ b/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/html-mode/doctype.xhtml1_strict b/html-mode/doctype.xhtml1_strict
new file mode 100644
index 0000000..20d95d3
--- /dev/null
+++ b/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/html-mode/doctype.xhtml1_transitional b/html-mode/doctype.xhtml1_transitional
new file mode 100644
index 0000000..c5255fc
--- /dev/null
+++ b/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/html-mode/dt b/html-mode/dt
new file mode 100644
index 0000000..f385cec
--- /dev/null
+++ b/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/html-mode/form b/html-mode/form
new file mode 100644
index 0000000..f1c066d
--- /dev/null
+++ b/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/html-mode/html b/html-mode/html
new file mode 100644
index 0000000..958aa6d
--- /dev/null
+++ b/html-mode/html
@@ -0,0 +1,6 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <html>...</html>
+# --
+<html>
+ $0
+</html>
diff --git a/html-mode/html.xmlns b/html-mode/html.xmlns
new file mode 100644
index 0000000..7dd7ee4
--- /dev/null
+++ b/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/html-mode/link.stylesheet b/html-mode/link.stylesheet
new file mode 100644
index 0000000..6c9de74
--- /dev/null
+++ b/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/html-mode/link.stylesheet-ie b/html-mode/link.stylesheet-ie
new file mode 100644
index 0000000..4f6a776
--- /dev/null
+++ b/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/html-mode/mailto b/html-mode/mailto
new file mode 100644
index 0000000..419f2a5
--- /dev/null
+++ b/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/html-mode/meta b/html-mode/meta
new file mode 100644
index 0000000..30319ef
--- /dev/null
+++ b/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/html-mode/meta.http-equiv b/html-mode/meta.http-equiv
new file mode 100644
index 0000000..9913652
--- /dev/null
+++ b/html-mode/meta.http-equiv
@@ -0,0 +1,5 @@
+#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <meta http-equiv="..." content="..." />
+#group : meta
+# --
+<meta http-equiv="${1:Content-Type}" content="${2:text/html; charset=UTF-8}" />
diff --git a/html-mode/script.javascript b/html-mode/script.javascript
new file mode 100644
index 0000000..bf0c3b5
--- /dev/null
+++ b/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/html-mode/script.javascript-src b/html-mode/script.javascript-src
new file mode 100644
index 0000000..b64c4dc
--- /dev/null
+++ b/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/html-mode/textarea b/html-mode/textarea
new file mode 100644
index 0000000..058498f
--- /dev/null
+++ b/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/html-mode/th b/html-mode/th
new file mode 100644
index 0000000..3b5fab1
--- /dev/null
+++ b/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/java-mode/apr_assert b/java-mode/apr_assert
new file mode 100644
index 0000000..a3942be
--- /dev/null
+++ b/java-mode/apr_assert
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: apr_assert
+# key: apr_assert
+# --
+if (Globals.useAssertions) {
+ ${1:assert ..};
+}
diff --git a/java-mode/assert b/java-mode/assert
new file mode 100644
index 0000000..686ffea
--- /dev/null
+++ b/java-mode/assert
@@ -0,0 +1,5 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: assert
+# key: as
+# --
+assert ${1:expression}; \ No newline at end of file
diff --git a/java-mode/assertEquals b/java-mode/assertEquals
new file mode 100644
index 0000000..ce23dae
--- /dev/null
+++ b/java-mode/assertEquals
@@ -0,0 +1,7 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: assertEquals
+# key: ae
+# group: test
+# --
+Assert.assertEquals($1, $2);
+$0 \ No newline at end of file
diff --git a/java-mode/cls b/java-mode/cls
new file mode 100644
index 0000000..88f534f
--- /dev/null
+++ b/java-mode/cls
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: cls
+# key: cls
+# --
+class ${1:Class} {
+ $0
+} \ No newline at end of file
diff --git a/java-mode/constructor b/java-mode/constructor
new file mode 100644
index 0000000..602e496
--- /dev/null
+++ b/java-mode/constructor
@@ -0,0 +1,7 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: constructor
+# key: c
+# --
+public ${1:Class} (${2:args}) {
+ $0
+} \ No newline at end of file
diff --git a/java-mode/define test method b/java-mode/define test method
new file mode 100644
index 0000000..fd9daf6
--- /dev/null
+++ b/java-mode/define test method
@@ -0,0 +1,8 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: define test method
+# key: dt
+# --
+@Test
+public void test${1:Name}() throws Exception {
+ $0
+}
diff --git a/java-mode/doc b/java-mode/doc
new file mode 100644
index 0000000..88f556e
--- /dev/null
+++ b/java-mode/doc
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: doc
+# key: /*
+# --
+/**
+ * ${1:documentation}
+ */ \ No newline at end of file
diff --git a/java-mode/equals b/java-mode/equals
new file mode 100644
index 0000000..e990966
--- /dev/null
+++ b/java-mode/equals
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: equals
+# key: eq
+# --
+public boolean equals(${1:Class} other) {
+ $0
+} \ No newline at end of file
diff --git a/java-mode/file_class b/java-mode/file_class
new file mode 100644
index 0000000..e0a46f6
--- /dev/null
+++ b/java-mode/file_class
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: file_class
+# key: file
+# --
+public class ${1:`(file-name-base
+ (or (buffer-file-name)
+ (buffer-name)))`} {
+ $0
+}
diff --git a/java-mode/for b/java-mode/for
new file mode 100644
index 0000000..833827b
--- /dev/null
+++ b/java-mode/for
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: for
+# key: for
+# --
+for (${1:int i = 0}; ${2:i < N}; ${3:i++}) {
+ $0
+} \ No newline at end of file
diff --git a/java-mode/fori b/java-mode/fori
new file mode 100644
index 0000000..a417f2c
--- /dev/null
+++ b/java-mode/fori
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: fori
+# key: fori
+# --
+for (${1:Object el} : ${2:iterator}) {
+ $0
+}
diff --git a/java-mode/getter b/java-mode/getter
new file mode 100644
index 0000000..747f9f4
--- /dev/null
+++ b/java-mode/getter
@@ -0,0 +1,7 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: getter
+# key: g
+# --
+public ${1:int} get${2:Field}() {
+ return ${3:field};
+} \ No newline at end of file
diff --git a/java-mode/if b/java-mode/if
new file mode 100644
index 0000000..cae545f
--- /dev/null
+++ b/java-mode/if
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: if
+# key: if
+# --
+if (${1:condition}) {
+ $0
+} \ No newline at end of file
diff --git a/java-mode/ife b/java-mode/ife
new file mode 100644
index 0000000..975643f
--- /dev/null
+++ b/java-mode/ife
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: ife
+# key: ife
+# --
+if (${1:cond}) {
+ $2
+}
+else {
+ $3
+} \ No newline at end of file
diff --git a/java-mode/import b/java-mode/import
new file mode 100644
index 0000000..56235a2
--- /dev/null
+++ b/java-mode/import
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: import
+# key: imp
+# --
+import ${1:System.};
+$0 \ No newline at end of file
diff --git a/java-mode/iterator b/java-mode/iterator
new file mode 100644
index 0000000..69fb2ac
--- /dev/null
+++ b/java-mode/iterator
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: iterator
+# key: iterator
+# --
+public Iterator<${1:type}> iterator() {
+ $0
+}
diff --git a/java-mode/javadoc b/java-mode/javadoc
new file mode 100644
index 0000000..5bc9051
--- /dev/null
+++ b/java-mode/javadoc
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: javadoc
+# key: doc
+# --
+/**
+ * $0
+ *
+ */ \ No newline at end of file
diff --git a/java-mode/lambda b/java-mode/lambda
new file mode 100644
index 0000000..a73a7a5
--- /dev/null
+++ b/java-mode/lambda
@@ -0,0 +1,5 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: lambda
+# key: \
+# --
+(${1:args}) -> ${2:expression}; \ No newline at end of file
diff --git a/java-mode/main b/java-mode/main
new file mode 100644
index 0000000..b24e49d
--- /dev/null
+++ b/java-mode/main
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: main
+# key: main
+# --
+public static void main(String[] args) {
+ $0
+} \ No newline at end of file
diff --git a/java-mode/main_class b/java-mode/main_class
new file mode 100644
index 0000000..624b31c
--- /dev/null
+++ b/java-mode/main_class
@@ -0,0 +1,11 @@
+# contributor: L. Guruprasad <lgp171188@gmail.com>
+# name: main_class
+# key: main_class
+# --
+class `(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))`
+{
+public static void main(String args[])
+{
+$0
+}
+} \ No newline at end of file
diff --git a/java-mode/method b/java-mode/method
new file mode 100644
index 0000000..7a6b9ed
--- /dev/null
+++ b/java-mode/method
@@ -0,0 +1,7 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: method
+# key: m
+# --
+${1:public} ${2:void} ${3:name}(${4:args}) {
+ $0
+} \ No newline at end of file
diff --git a/java-mode/new b/java-mode/new
new file mode 100644
index 0000000..f06091d
--- /dev/null
+++ b/java-mode/new
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: new
+# key: new
+# --
+${1:Type} ${2:obj} = new ${3:Constr}(${4:args});
+$0 \ No newline at end of file
diff --git a/java-mode/override b/java-mode/override
new file mode 100644
index 0000000..9878c85
--- /dev/null
+++ b/java-mode/override
@@ -0,0 +1,6 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: override
+# key: o
+# --
+@Override
+$0 \ No newline at end of file
diff --git a/java-mode/param b/java-mode/param
new file mode 100644
index 0000000..4a1f44d
--- /dev/null
+++ b/java-mode/param
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: param
+# key: param
+# --
+@param ${1:paramater} $0 \ No newline at end of file
diff --git a/java-mode/printf b/java-mode/printf
new file mode 100644
index 0000000..f93c965
--- /dev/null
+++ b/java-mode/printf
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: printf
+# key: printf
+# --
+System.out.printf("$0%n"); \ No newline at end of file
diff --git a/java-mode/println b/java-mode/println
new file mode 100644
index 0000000..7dd8f0d
--- /dev/null
+++ b/java-mode/println
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: println
+# key: pr
+# --
+System.out.println("${1:text}");
+$0 \ No newline at end of file
diff --git a/java-mode/return b/java-mode/return
new file mode 100644
index 0000000..5712e0c
--- /dev/null
+++ b/java-mode/return
@@ -0,0 +1,5 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: return
+# key: r
+# --
+return $0 \ No newline at end of file
diff --git a/java-mode/test b/java-mode/test
new file mode 100644
index 0000000..a37d115
--- /dev/null
+++ b/java-mode/test
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: test
+# key: test
+# --
+@Test
+public void test_${1:Case}() {
+ $0
+} \ No newline at end of file
diff --git a/java-mode/testClass b/java-mode/testClass
new file mode 100644
index 0000000..b01a68f
--- /dev/null
+++ b/java-mode/testClass
@@ -0,0 +1,12 @@
+# -*- mode: snippet -*-
+# name: testClass
+# key: tc
+# --
+import junit.framework.*;
+import junit.textui.*;
+
+public class Test${1:Class} extends TestCase {
+ protected void setUp() {
+ $0
+ }
+} \ No newline at end of file
diff --git a/java-mode/this b/java-mode/this
new file mode 100644
index 0000000..45201b4
--- /dev/null
+++ b/java-mode/this
@@ -0,0 +1,6 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: this
+# key: .
+# --
+this.$1 = $1;
+$0 \ No newline at end of file
diff --git a/java-mode/toString b/java-mode/toString
new file mode 100644
index 0000000..0382a9e
--- /dev/null
+++ b/java-mode/toString
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: toString
+# key: toStr
+# --
+public String toString() {
+ $0
+} \ No newline at end of file
diff --git a/java-mode/try b/java-mode/try
new file mode 100644
index 0000000..1a17ba3
--- /dev/null
+++ b/java-mode/try
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# name: try
+# key: try
+# --
+try {
+ $0
+}
+catch (${1:Throwable e}) {
+ ${2:System.out.println("Error " + e.getMessage());
+ e.printStackTrace();}
+}
diff --git a/java-mode/value b/java-mode/value
new file mode 100644
index 0000000..7ec38ef
--- /dev/null
+++ b/java-mode/value
@@ -0,0 +1,5 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: value
+# key: val
+# --
+final ${1:int} ${2:n} = $0; \ No newline at end of file
diff --git a/js-mode/al b/js-mode/al
new file mode 100644
index 0000000..04fbec4
--- /dev/null
+++ b/js-mode/al
@@ -0,0 +1,4 @@
+# -*- mode: snippet -*-
+#name : alert
+# --
+alert($0); \ No newline at end of file
diff --git a/js-mode/class b/js-mode/class
new file mode 100644
index 0000000..84171bb
--- /dev/null
+++ b/js-mode/class
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#name : Class
+# --
+var ${1:name} = new Class({
+ initialize: function($2) {
+ $0
+ }
+}); \ No newline at end of file
diff --git a/js-mode/com b/js-mode/com
new file mode 100644
index 0000000..6179e18
--- /dev/null
+++ b/js-mode/com
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#name : comment (/* ... */)
+# --
+/*
+ * $0
+ */ \ No newline at end of file
diff --git a/js-mode/debugger b/js-mode/debugger
new file mode 100644
index 0000000..09af6eb
--- /dev/null
+++ b/js-mode/debugger
@@ -0,0 +1,5 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: debugger
+# key: dbg
+# --
+debugger; \ No newline at end of file
diff --git a/js-mode/each b/js-mode/each
new file mode 100644
index 0000000..74cbddd
--- /dev/null
+++ b/js-mode/each
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#name : each
+# --
+${1:collection}.each(function($2) {
+ $0
+}); \ No newline at end of file
diff --git a/js-mode/el b/js-mode/el
new file mode 100644
index 0000000..ac13571
--- /dev/null
+++ b/js-mode/el
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#name : else
+# --
+else {
+ $0
+} \ No newline at end of file
diff --git a/js-mode/ev.add b/js-mode/ev.add
new file mode 100644
index 0000000..cf2a7e0
--- /dev/null
+++ b/js-mode/ev.add
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#name : addEvent
+# --
+addEvent('${1:event}', function($2) {
+ $0
+}); \ No newline at end of file
diff --git a/js-mode/ev.fire b/js-mode/ev.fire
new file mode 100644
index 0000000..c90e9ed
--- /dev/null
+++ b/js-mode/ev.fire
@@ -0,0 +1,4 @@
+# -*- mode: snippet -*-
+#name : fireEvent
+# --
+fireEvent('$0') \ No newline at end of file
diff --git a/js-mode/for b/js-mode/for
new file mode 100644
index 0000000..d79ed03
--- /dev/null
+++ b/js-mode/for
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#name : for
+# --
+for(var ${1:i} = ${2:0}; $1 < ${3:collection}.length; $1++) {
+ $0
+} \ No newline at end of file
diff --git a/js-mode/function b/js-mode/function
new file mode 100644
index 0000000..96621b6
--- /dev/null
+++ b/js-mode/function
@@ -0,0 +1,7 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: function
+# key: f
+# --
+function ${1:name}(${2:arg}) {
+ $0
+} \ No newline at end of file
diff --git a/js-mode/if b/js-mode/if
new file mode 100644
index 0000000..7306759
--- /dev/null
+++ b/js-mode/if
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#name : if
+# --
+if (${1:condition}) {
+ $0
+} \ No newline at end of file
diff --git a/js-mode/init b/js-mode/init
new file mode 100644
index 0000000..feac58a
--- /dev/null
+++ b/js-mode/init
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#name : Constructor
+# --
+initialize: function($1) {
+ $0
+} \ No newline at end of file
diff --git a/js-mode/log b/js-mode/log
new file mode 100644
index 0000000..2f33f4d
--- /dev/null
+++ b/js-mode/log
@@ -0,0 +1,4 @@
+# -*- mode: snippet -*-
+#name : console.log
+# --
+console.log($0); \ No newline at end of file
diff --git a/js-mode/req.html b/js-mode/req.html
new file mode 100644
index 0000000..bc1491f
--- /dev/null
+++ b/js-mode/req.html
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#name : html
+# --
+new Request.HTML({
+ onSuccess: function(responseTree, responseElements, responseHTML, responseJavaScript) {
+ $0
+ }
+}).${1:get}(${2:url}); \ No newline at end of file
diff --git a/js-mode/req.json b/js-mode/req.json
new file mode 100644
index 0000000..36fb03f
--- /dev/null
+++ b/js-mode/req.json
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#name : json
+# --
+new Request.JSON({
+ onSuccess: function(responseJSON, responseText) {
+ $0
+ }
+}).${1:send}(${2:url}); \ No newline at end of file
diff --git a/js2-mode b/js2-mode
new file mode 120000
index 0000000..6d4bce1
--- /dev/null
+++ b/js2-mode
@@ -0,0 +1 @@
+js-mode \ No newline at end of file
diff --git a/latex-mode/acronym b/latex-mode/acronym
new file mode 100644
index 0000000..ea2314c
--- /dev/null
+++ b/latex-mode/acronym
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: acronym
+# key: ac
+# --
+\newacronym{${1:label}}{${1:$(upcase yas-text)}}{${2:Name}} \ No newline at end of file
diff --git a/latex-mode/alertblock b/latex-mode/alertblock
new file mode 100644
index 0000000..d259d2b
--- /dev/null
+++ b/latex-mode/alertblock
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: alertblock
+# key: al
+# --
+\begin{alertblock}{$2}
+ $0
+\end{alertblock} \ No newline at end of file
diff --git a/latex-mode/alg b/latex-mode/alg
new file mode 100644
index 0000000..24a9c94
--- /dev/null
+++ b/latex-mode/alg
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: alg
+# key: alg
+# --
+\begin{algorithmic}
+$0
+\end{algorithmic}
diff --git a/latex-mode/begin b/latex-mode/begin
new file mode 100644
index 0000000..dabcbe8
--- /dev/null
+++ b/latex-mode/begin
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: begin
+# key: begin
+# --
+\begin{${1:environment}}
+$0
+\end{$1} \ No newline at end of file
diff --git a/latex-mode/block b/latex-mode/block
new file mode 100644
index 0000000..6b16f4b
--- /dev/null
+++ b/latex-mode/block
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: block
+# key: bl
+# --
+\begin{block}{$1}
+ $0
+\end{block} \ No newline at end of file
diff --git a/latex-mode/capgls b/latex-mode/capgls
new file mode 100644
index 0000000..d469185
--- /dev/null
+++ b/latex-mode/capgls
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: Gls
+# key: G
+# --
+\Gls{${1:label}} \ No newline at end of file
diff --git a/latex-mode/caption b/latex-mode/caption
new file mode 100644
index 0000000..98e25fb
--- /dev/null
+++ b/latex-mode/caption
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: caption
+# key: ca
+# --
+\caption{$0} \ No newline at end of file
diff --git a/latex-mode/cite b/latex-mode/cite
new file mode 100644
index 0000000..2e24838
--- /dev/null
+++ b/latex-mode/cite
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: cite
+# key: c
+# --
+\cite{$1} $0 \ No newline at end of file
diff --git a/latex-mode/code b/latex-mode/code
new file mode 100644
index 0000000..cef9570
--- /dev/null
+++ b/latex-mode/code
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: code
+# key: code
+# --
+\begin{lstlisting}
+$0
+\end{lstlisting} \ No newline at end of file
diff --git a/latex-mode/columns b/latex-mode/columns
new file mode 100644
index 0000000..80388f1
--- /dev/null
+++ b/latex-mode/columns
@@ -0,0 +1,13 @@
+# -*- mode: snippet -*-
+# name: columns
+# key: cols
+# --
+\begin{columns}
+ \begin{column}{.${1:5}\textwidth}
+ $0
+ \end{column}
+
+ \begin{column}{.${2:5}\textwidth}
+
+ \end{column}
+\end{columns} \ No newline at end of file
diff --git a/latex-mode/emph b/latex-mode/emph
new file mode 100644
index 0000000..36b19d7
--- /dev/null
+++ b/latex-mode/emph
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: emph
+# key: e
+# --
+\emph{$1}$0 \ No newline at end of file
diff --git a/latex-mode/enumerate b/latex-mode/enumerate
new file mode 100644
index 0000000..d49ce37
--- /dev/null
+++ b/latex-mode/enumerate
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: enumerate
+# key: enum
+# --
+\begin{enumerate}
+\item $0
+\end{enumerate} \ No newline at end of file
diff --git a/latex-mode/figure b/latex-mode/figure
new file mode 100644
index 0000000..a25d601
--- /dev/null
+++ b/latex-mode/figure
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: figure
+# key: fig
+# --
+\begin{figure}[ht]
+ \centering
+ \includegraphics[${1:options}]{figures/${2:path.pdf}}
+ \caption{\label{fig:${3:label}} $0}
+\end{figure}
diff --git a/latex-mode/frac b/latex-mode/frac
new file mode 100644
index 0000000..b35f8ef
--- /dev/null
+++ b/latex-mode/frac
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: frac
+# key: frac
+# --
+\frac{${1:numerator}}{${2:denominator}}$0 \ No newline at end of file
diff --git a/latex-mode/frame b/latex-mode/frame
new file mode 100644
index 0000000..f94357d
--- /dev/null
+++ b/latex-mode/frame
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: frame
+# key: fr
+# --
+\begin{frame}${1:[$2]}
+ ${3:\frametitle{$4}}
+ $0
+\end{frame} \ No newline at end of file
diff --git a/latex-mode/gls b/latex-mode/gls
new file mode 100644
index 0000000..c6a7aac
--- /dev/null
+++ b/latex-mode/gls
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: gls
+# key: g
+# --
+\gls{${1:label}} \ No newline at end of file
diff --git a/latex-mode/glspl b/latex-mode/glspl
new file mode 100644
index 0000000..699927b
--- /dev/null
+++ b/latex-mode/glspl
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: glspl
+# key: gp
+# --
+\glspl{${1:label}} \ No newline at end of file
diff --git a/latex-mode/if b/latex-mode/if
new file mode 100644
index 0000000..2d80b81
--- /dev/null
+++ b/latex-mode/if
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: if
+# key: if
+# --
+\IF {$${1:cond}$}
+ $0
+\ELSE
+\ENDIF
diff --git a/latex-mode/includegraphics b/latex-mode/includegraphics
new file mode 100644
index 0000000..d46c9a4
--- /dev/null
+++ b/latex-mode/includegraphics
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: includegraphics
+# key: ig
+# --
+\includegraphics${1:[$2]}{$0} \ No newline at end of file
diff --git a/latex-mode/item b/latex-mode/item
new file mode 100644
index 0000000..d4773f5
--- /dev/null
+++ b/latex-mode/item
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: item
+# key: -
+# --
+\item $0 \ No newline at end of file
diff --git a/latex-mode/itemize b/latex-mode/itemize
new file mode 100644
index 0000000..09a848f
--- /dev/null
+++ b/latex-mode/itemize
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: itemize
+# key: it
+# --
+\begin{itemize}
+\item $0
+\end{itemize} \ No newline at end of file
diff --git a/latex-mode/label b/latex-mode/label
new file mode 100644
index 0000000..96a72b4
--- /dev/null
+++ b/latex-mode/label
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: label
+# key: lab
+# --
+\label{$0} \ No newline at end of file
diff --git a/latex-mode/listing b/latex-mode/listing
new file mode 100644
index 0000000..3c95b17
--- /dev/null
+++ b/latex-mode/listing
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: listing
+# key: lst
+# --
+\begin{lstlisting}[float,label=lst:${1:label},caption=nextHopInfo: ${2:caption}]
+$0
+\end{lstlisting} \ No newline at end of file
diff --git a/latex-mode/movie b/latex-mode/movie
new file mode 100644
index 0000000..a01d032
--- /dev/null
+++ b/latex-mode/movie
@@ -0,0 +1,15 @@
+# -*- mode: snippet -*-
+# name: movie
+# key: movie
+# --
+\begin{center}
+\includemovie[
+ label=test,
+ controls=false,
+ text={\includegraphics[width=4in]{${1:image.pdf}}}
+]{4in}{4in}{${2:video file}}
+
+\movieref[rate=3]{test}{Play Fast}
+\movieref[rate=1]{test}{Play Normal Speed}
+\movieref[rate=0.2]{test}{Play Slow}
+\movieref[resume]{test}{Pause/Resume}
diff --git a/latex-mode/newcommand b/latex-mode/newcommand
new file mode 100644
index 0000000..e9e03ca
--- /dev/null
+++ b/latex-mode/newcommand
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: newcommand
+# key: cmd
+# --
+\newcommand{\\${1:name}}${2:[${3:0}]}{$0} \ No newline at end of file
diff --git a/latex-mode/newglossaryentry b/latex-mode/newglossaryentry
new file mode 100644
index 0000000..66c964a
--- /dev/null
+++ b/latex-mode/newglossaryentry
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: newglossaryentry
+# key: gl
+# --
+\newglossaryentry{${1:AC}}{name=${2:Andrea Crotti}${3:, description=${4:description}}} \ No newline at end of file
diff --git a/latex-mode/note b/latex-mode/note
new file mode 100644
index 0000000..1122d7a
--- /dev/null
+++ b/latex-mode/note
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: note
+# key: no
+# --
+\note{$0} \ No newline at end of file
diff --git a/latex-mode/python b/latex-mode/python
new file mode 100644
index 0000000..0ba0fc4
--- /dev/null
+++ b/latex-mode/python
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: python
+# key: py
+# --
+\lstset{language=python}
+\begin[language=python]{lstlisting}
+$0
+\end{lstlisting} \ No newline at end of file
diff --git a/latex-mode/question b/latex-mode/question
new file mode 100644
index 0000000..235eb59
--- /dev/null
+++ b/latex-mode/question
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: question
+# key: q
+# --
+\question{$0} \ No newline at end of file
diff --git a/latex-mode/section b/latex-mode/section
new file mode 100644
index 0000000..88faeab
--- /dev/null
+++ b/latex-mode/section
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: section
+# key: sec
+# --
+\section{${1:name}}
+\label{sec:${2:label}}
+
+$0 \ No newline at end of file
diff --git a/latex-mode/subf b/latex-mode/subf
new file mode 100644
index 0000000..0497748
--- /dev/null
+++ b/latex-mode/subf
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: subf
+# key: sf
+# --
+\subfigure[${1:caption}]{
+ \label{fig:${2:label}}
+ \includegraphics[width=.${3:3}\textwidth]{${4:path}}}
+$0 \ No newline at end of file
diff --git a/latex-mode/subfigure b/latex-mode/subfigure
new file mode 100644
index 0000000..e93678b
--- /dev/null
+++ b/latex-mode/subfigure
@@ -0,0 +1,13 @@
+# -*- mode: snippet -*-
+# name: subfigure
+# key: subfig
+# --
+\begin{figure}[ht]
+ \centering
+ \subfigure[$1]
+ {\label{fig:${2:label}}
+ \includegraphics[width=.${3:5}\textwidth]{${4:path}}}
+
+ \caption{${5:caption}}
+\label{fig:${6:label}}
+\end{figure}
diff --git a/latex-mode/subsec b/latex-mode/subsec
new file mode 100644
index 0000000..5658494
--- /dev/null
+++ b/latex-mode/subsec
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: subsec
+# key: sub
+# --
+\subsection{${1:name}}
+\label{subsec:${2:label}}
+
+$0 \ No newline at end of file
diff --git a/latex-mode/textbf b/latex-mode/textbf
new file mode 100644
index 0000000..84171d7
--- /dev/null
+++ b/latex-mode/textbf
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: textbf
+# key: b
+# --
+\textbf{$1}$0 \ No newline at end of file
diff --git a/latex-mode/usepackage b/latex-mode/usepackage
new file mode 100644
index 0000000..2afd38b
--- /dev/null
+++ b/latex-mode/usepackage
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: usepackage
+# key: pkg
+# --
+\usepackage{$0} \ No newline at end of file
diff --git a/lisp-interaction-mode/defun b/lisp-interaction-mode/defun
new file mode 100644
index 0000000..5cf3d68
--- /dev/null
+++ b/lisp-interaction-mode/defun
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: defun
+# key: defun
+# --
+(defun ${1:fun} (${2:args})
+ $0
+) \ No newline at end of file
diff --git a/lisp-mode/class b/lisp-mode/class
new file mode 100644
index 0000000..bc5eec9
--- /dev/null
+++ b/lisp-mode/class
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: class
+# key: cls
+# --
+(defclass ${1:name} (${2:inherits})
+ (${4:slot})
+ (:documentation "${3:doc}"))
+$0
diff --git a/lisp-mode/comment b/lisp-mode/comment
new file mode 100644
index 0000000..107fad9
--- /dev/null
+++ b/lisp-mode/comment
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: comment
+# key: /*
+# --
+#|${1:type the comment here}|#
+$0
diff --git a/lisp-mode/defpackage b/lisp-mode/defpackage
new file mode 100644
index 0000000..2e44ac2
--- /dev/null
+++ b/lisp-mode/defpackage
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: defpackage
+# key: defp
+# --
+(defpackage #:${1:name}
+ (:nicknames #:${2:nick})
+ (:use #:cl #:closer-mop #:${3:package})
+ (:shadow :${4.symbol})
+ (:shadowing-import-from #:${5:package} #:${6:symbol})
+ (:export :$0))
diff --git a/lisp-mode/do b/lisp-mode/do
new file mode 100644
index 0000000..6f90064
--- /dev/null
+++ b/lisp-mode/do
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: do
+# key: do
+# --
+(do ((${1:var1} ${2:init-form} ${3:step-form})
+ (${4:var2} ${5:init-form} ${6:step-form}))
+ (${7:condition} ${8:return-value})
+ (${9:body}))
+$0
diff --git a/lisp-mode/for b/lisp-mode/for
new file mode 100644
index 0000000..de8f644
--- /dev/null
+++ b/lisp-mode/for
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: do
+# key: for
+# --
+(dotimes (${1:var} ${2:count-form})
+ ${3:body})
+$0
diff --git a/lisp-mode/foreach b/lisp-mode/foreach
new file mode 100644
index 0000000..a993bf1
--- /dev/null
+++ b/lisp-mode/foreach
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: do
+# key: foreach
+# --
+(dolist (${1:var} ${2:list-form})
+ ${3:body})
+$0
diff --git a/lisp-mode/format b/lisp-mode/format
new file mode 100644
index 0000000..d4f10ad
--- /dev/null
+++ b/lisp-mode/format
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: format
+# key: print
+# --
+(format t "~& $0 ~%")
diff --git a/lisp-mode/if b/lisp-mode/if
new file mode 100644
index 0000000..cd57e3d
--- /dev/null
+++ b/lisp-mode/if
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: if
+# key: if
+# --
+(when (${1:condition})
+ (${2:then-do-this}))
+$0
diff --git a/lisp-mode/ifelse b/lisp-mode/ifelse
new file mode 100644
index 0000000..91854d8
--- /dev/null
+++ b/lisp-mode/ifelse
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: ifelse (...) (...) (...) ...
+# key: ifelse
+# --
+
+(if (${1:condition})
+ (${2:then})
+ (${3:else}))
+$0
diff --git a/lisp-mode/ifnot b/lisp-mode/ifnot
new file mode 100644
index 0000000..467636e
--- /dev/null
+++ b/lisp-mode/ifnot
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: ifnot (...) (...) ...
+# key: ifnot
+# --
+
+(unless (${1:condition})
+ (${2:then-do-this}))
+$0
diff --git a/lisp-mode/slot b/lisp-mode/slot
new file mode 100644
index 0000000..2a51f64
--- /dev/null
+++ b/lisp-mode/slot
@@ -0,0 +1,13 @@
+# -*- mode: snippet -*-
+# name: slot
+# key: slot
+# --
+(${1:name} :initarg :${1:$(yas/substr yas-text "[^: ]*")}
+ :initform (error ":${1:$(yas/substr yas-text "[^: ]*")} must be specified")
+ ;; :accessor ${1:$(yas/substr yas-text "[^: ]*")}
+ :reader ${1:$(yas/substr yas-text "[^: ]*")}-changed
+ :writer set-${1:$(yas/substr yas-text "[^: ]*")}
+ :type
+ :allocation ${3::class :instance}
+ :documentation "${2:about-slot}")
+$0
diff --git a/lisp-mode/switch b/lisp-mode/switch
new file mode 100644
index 0000000..6d002dd
--- /dev/null
+++ b/lisp-mode/switch
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: switch
+# key: switch
+# --
+
+(cond (${1:case1} (${2:do-this}))
+ (${3:case2} (${4:do-this}))
+ (t ${5:default}))
+$0
diff --git a/lisp-mode/typecast b/lisp-mode/typecast
new file mode 100644
index 0000000..4856e93
--- /dev/null
+++ b/lisp-mode/typecast
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: typecast
+# name: cast
+# --
+(coerce ${1:object} ${2:type})
+$0
diff --git a/lua-mode/fun b/lua-mode/fun
new file mode 100644
index 0000000..f2cc839
--- /dev/null
+++ b/lua-mode/fun
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: fun
+# key: fun
+# --
+function ()
+ ${1:return something}
+end \ No newline at end of file
diff --git a/m4-mode/def b/m4-mode/def
new file mode 100644
index 0000000..2cc90cb
--- /dev/null
+++ b/m4-mode/def
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: def
+# key: def
+# --
+define(\`${1:macro}',\`${2:subst}').
+$0 \ No newline at end of file
diff --git a/makefile-automake-mode/noinst_HEADERS b/makefile-automake-mode/noinst_HEADERS
new file mode 100644
index 0000000..ab0a30b
--- /dev/null
+++ b/makefile-automake-mode/noinst_HEADERS
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: noinst_HEADERS
+# key: noinst
+# --
+noinst_HEADERS = $0 \ No newline at end of file
diff --git a/makefile-bsdmake-mode/PHONY b/makefile-bsdmake-mode/PHONY
new file mode 100644
index 0000000..9652539
--- /dev/null
+++ b/makefile-bsdmake-mode/PHONY
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: PHONY
+# key: phony
+# --
+.PHONY: $0 \ No newline at end of file
diff --git a/makefile-bsdmake-mode/echo b/makefile-bsdmake-mode/echo
new file mode 100644
index 0000000..d772a6e
--- /dev/null
+++ b/makefile-bsdmake-mode/echo
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: echo
+# key: echo
+# --
+@echo ${1:"message to output"}
diff --git a/makefile-bsdmake-mode/gen b/makefile-bsdmake-mode/gen
new file mode 100644
index 0000000..2b5e466
--- /dev/null
+++ b/makefile-bsdmake-mode/gen
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# name: gen
+# key: gen
+# possibly add some smart control over the list
+# --
+all: ${1:targets}
+
+$0
+
+clean:
+ ${2:clean actions}
diff --git a/makefile-bsdmake-mode/if b/makefile-bsdmake-mode/if
new file mode 100644
index 0000000..2e623f0
--- /dev/null
+++ b/makefile-bsdmake-mode/if
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: if
+# key: if
+# --
+@if [ ${1:cond} ]
+ then $0
+fi
diff --git a/makefile-bsdmake-mode/var b/makefile-bsdmake-mode/var
new file mode 100644
index 0000000..196f4d9
--- /dev/null
+++ b/makefile-bsdmake-mode/var
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: var
+# key: $
+# --
+$(${1:VAR})$0 \ No newline at end of file
diff --git a/makefile-gmake-mode/patsubst b/makefile-gmake-mode/patsubst
new file mode 100644
index 0000000..a966757
--- /dev/null
+++ b/makefile-gmake-mode/patsubst
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: patsubst
+# key: ps
+# --
+$(patsubst ${1:from},${2:to},${3:src}) \ No newline at end of file
diff --git a/makefile-gmake-mode/phony b/makefile-gmake-mode/phony
new file mode 100644
index 0000000..8da99d7
--- /dev/null
+++ b/makefile-gmake-mode/phony
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: phony
+# key: ph
+# --
+.PHONY = $0 \ No newline at end of file
diff --git a/makefile-gmake-mode/wildcard b/makefile-gmake-mode/wildcard
new file mode 100644
index 0000000..c91dc9c
--- /dev/null
+++ b/makefile-gmake-mode/wildcard
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: wildcard
+# key: wl
+# --
+$(wildcard $0) \ No newline at end of file
diff --git a/makefile-mode/all b/makefile-mode/all
new file mode 100644
index 0000000..823886f
--- /dev/null
+++ b/makefile-mode/all
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: all
+# key: all
+# --
+all:
+ $0 \ No newline at end of file
diff --git a/malabar-mode/variable b/malabar-mode/variable
new file mode 100644
index 0000000..16ec628
--- /dev/null
+++ b/malabar-mode/variable
@@ -0,0 +1,5 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: variable
+# key: var
+# --
+${1:int} ${2:n} = $0; \ No newline at end of file
diff --git a/markdown-mode/+ b/markdown-mode/+
new file mode 100644
index 0000000..0407169
--- /dev/null
+++ b/markdown-mode/+
@@ -0,0 +1,5 @@
+#name : Unordered List
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
++ ${1:Text}
++$0
diff --git a/markdown-mode/- b/markdown-mode/-
new file mode 100644
index 0000000..9d5c51d
--- /dev/null
+++ b/markdown-mode/-
@@ -0,0 +1,5 @@
+#name : Unordered List
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+- ${1:Text}
+-$0
diff --git a/markdown-mode/_ b/markdown-mode/_
new file mode 100644
index 0000000..50ab476
--- /dev/null
+++ b/markdown-mode/_
@@ -0,0 +1,4 @@
+#name : Emphasis
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+_${1:Text}_ $0
diff --git a/markdown-mode/__ b/markdown-mode/__
new file mode 100644
index 0000000..b6304f3
--- /dev/null
+++ b/markdown-mode/__
@@ -0,0 +1,4 @@
+#name : Strong
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+**${1:Text}** $0
diff --git a/markdown-mode/` b/markdown-mode/`
new file mode 100644
index 0000000..ae58211
--- /dev/null
+++ b/markdown-mode/`
@@ -0,0 +1,4 @@
+#name : Inline Code
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+\`${1:Code}\` $0
diff --git a/markdown-mode/h1.1 b/markdown-mode/h1.1
new file mode 100644
index 0000000..8bb7ea2
--- /dev/null
+++ b/markdown-mode/h1.1
@@ -0,0 +1,6 @@
+#name : Header 1 (#)
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+# ${1:Header 1} #
+
+$0
diff --git a/markdown-mode/h1.2 b/markdown-mode/h1.2
new file mode 100644
index 0000000..57b178d
--- /dev/null
+++ b/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 yas-text) ?\=)}
+
+$0
diff --git a/markdown-mode/h2.1 b/markdown-mode/h2.1
new file mode 100644
index 0000000..bfee3fc
--- /dev/null
+++ b/markdown-mode/h2.1
@@ -0,0 +1,6 @@
+#name : Header 2 (##)
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+## ${1:Header 1} ##
+
+$0
diff --git a/markdown-mode/h2.2 b/markdown-mode/h2.2
new file mode 100644
index 0000000..8f94c73
--- /dev/null
+++ b/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 yas-text) ?\-)}
+
+$0
diff --git a/markdown-mode/h3 b/markdown-mode/h3
new file mode 100644
index 0000000..44a6104
--- /dev/null
+++ b/markdown-mode/h3
@@ -0,0 +1,6 @@
+#name : Header 3
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+### ${1:Header 3} ###
+
+$0
diff --git a/markdown-mode/h4 b/markdown-mode/h4
new file mode 100644
index 0000000..315140a
--- /dev/null
+++ b/markdown-mode/h4
@@ -0,0 +1,6 @@
+#name : Header 4
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+#### ${1:Header 4} ####
+
+$0
diff --git a/markdown-mode/h5 b/markdown-mode/h5
new file mode 100644
index 0000000..f50a785
--- /dev/null
+++ b/markdown-mode/h5
@@ -0,0 +1,6 @@
+#name : Header 5
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+##### ${1:Header 5} #####
+
+$0
diff --git a/markdown-mode/h6 b/markdown-mode/h6
new file mode 100644
index 0000000..1cdfebb
--- /dev/null
+++ b/markdown-mode/h6
@@ -0,0 +1,6 @@
+#name : Header 6
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+###### ${1:Header 6} ######
+
+$0
diff --git a/markdown-mode/hr.1 b/markdown-mode/hr.1
new file mode 100644
index 0000000..5fbe4f4
--- /dev/null
+++ b/markdown-mode/hr.1
@@ -0,0 +1,7 @@
+#name : Horizontal Rule (-)
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+
+----------
+
+$0
diff --git a/markdown-mode/hr.2 b/markdown-mode/hr.2
new file mode 100644
index 0000000..2d4de22
--- /dev/null
+++ b/markdown-mode/hr.2
@@ -0,0 +1,7 @@
+#name : Horizontal Rule (*)
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+
+*******
+
+$0
diff --git a/markdown-mode/img b/markdown-mode/img
new file mode 100644
index 0000000..69ee77d
--- /dev/null
+++ b/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/markdown-mode/link b/markdown-mode/link
new file mode 100644
index 0000000..dd7f99b
--- /dev/null
+++ b/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/markdown-mode/ol b/markdown-mode/ol
new file mode 100644
index 0000000..c8e3970
--- /dev/null
+++ b/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 yas-text)))}. $0
diff --git a/markdown-mode/rimg b/markdown-mode/rimg
new file mode 100644
index 0000000..caafb60
--- /dev/null
+++ b/markdown-mode/rimg
@@ -0,0 +1,4 @@
+#name : Referenced Image
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+![${1:Alt Text}][$2] $0
diff --git a/markdown-mode/rlb b/markdown-mode/rlb
new file mode 100644
index 0000000..681d9f0
--- /dev/null
+++ b/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/markdown-mode/rlink b/markdown-mode/rlink
new file mode 100644
index 0000000..e35a0c0
--- /dev/null
+++ b/markdown-mode/rlink
@@ -0,0 +1,4 @@
+#name : Reference Link
+#contributor: Peng Deng <dengpeng@gmail.com>
+# --
+[${1:Link Text}][$2] $0
diff --git a/markdown-mode/utf8 b/markdown-mode/utf8
new file mode 100644
index 0000000..b21c56f
--- /dev/null
+++ b/markdown-mode/utf8
@@ -0,0 +1,6 @@
+# name: utf-8 encoding
+# key: utf8
+# contributor: Thiago Perrotta
+# --
+<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
+$0
diff --git a/ned-mode/.yas-parents b/ned-mode/.yas-parents
new file mode 100644
index 0000000..0539988
--- /dev/null
+++ b/ned-mode/.yas-parents
@@ -0,0 +1 @@
+prog-mode \ No newline at end of file
diff --git a/ned-mode/chan b/ned-mode/chan
new file mode 100644
index 0000000..b1dda9a
--- /dev/null
+++ b/ned-mode/chan
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: chan
+# key: chan
+# --
+channel Channel extends ${1:ned.DelayChannel} {
+ $0
+}
diff --git a/ned-mode/connections b/ned-mode/connections
new file mode 100644
index 0000000..a731e88
--- /dev/null
+++ b/ned-mode/connections
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: connections
+# key: conn
+# --
+connections${1: allowunconnected}:
+ $0 \ No newline at end of file
diff --git a/ned-mode/for b/ned-mode/for
new file mode 100644
index 0000000..62ed072
--- /dev/null
+++ b/ned-mode/for
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: for
+# key: for
+# --
+for ${1:i}=${2:0}..${3:sizeof(port)-1} {
+ $0
+} \ No newline at end of file
diff --git a/ned-mode/import b/ned-mode/import
new file mode 100644
index 0000000..47aa063
--- /dev/null
+++ b/ned-mode/import
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: import
+# key: imp
+# --
+import ned.${1:Package}; \ No newline at end of file
diff --git a/ned-mode/network b/ned-mode/network
new file mode 100644
index 0000000..a7691e3
--- /dev/null
+++ b/ned-mode/network
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# name: network
+# key: net
+# --
+network ${1:Name}
+{
+ submodules:
+ $2
+ connections:
+ $3
+} \ No newline at end of file
diff --git a/ned-mode/simple b/ned-mode/simple
new file mode 100644
index 0000000..7db2698
--- /dev/null
+++ b/ned-mode/simple
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: simple
+# key: simple
+# --
+simple ${1:Component}${2: extends ${3:Component}}
+{
+ $0
+} \ No newline at end of file
diff --git a/ned-mode/submodules b/ned-mode/submodules
new file mode 100644
index 0000000..46c1612
--- /dev/null
+++ b/ned-mode/submodules
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: submodules
+# key: sub
+# --
+submodules:
+ $0 \ No newline at end of file
diff --git a/nesc-mode/.yas-parents b/nesc-mode/.yas-parents
new file mode 100644
index 0000000..2fa94cd
--- /dev/null
+++ b/nesc-mode/.yas-parents
@@ -0,0 +1 @@
+text-mode cc-mode \ No newline at end of file
diff --git a/nesc-mode/TOSSIM b/nesc-mode/TOSSIM
new file mode 100644
index 0000000..a7d6edb
--- /dev/null
+++ b/nesc-mode/TOSSIM
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: TOSSIM
+# key: tossim
+# --
+#ifndef TOSSIM
+ $0
+#endif \ No newline at end of file
diff --git a/nesc-mode/command b/nesc-mode/command
new file mode 100644
index 0000000..314e7a0
--- /dev/null
+++ b/nesc-mode/command
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: command
+# key: command
+# --
+command ${1:void} ${2:naMe}($3) {
+
+} \ No newline at end of file
diff --git a/nesc-mode/dbg b/nesc-mode/dbg
new file mode 100644
index 0000000..ab9b580
--- /dev/null
+++ b/nesc-mode/dbg
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: dbg
+# key: dbg
+# --
+dbg("${1:Module}", "${2:message}"${3:, ${4:var list}}); \ No newline at end of file
diff --git a/nesc-mode/event b/nesc-mode/event
new file mode 100644
index 0000000..1cdc257
--- /dev/null
+++ b/nesc-mode/event
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: event
+# key: event
+# --
+event ${1:void} ${2:On.Event}($3) {
+ $0
+} \ No newline at end of file
diff --git a/nesc-mode/ifdef b/nesc-mode/ifdef
new file mode 100644
index 0000000..dbe1a29
--- /dev/null
+++ b/nesc-mode/ifdef
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: ifdef
+# key: ifdef
+# --
+#ifdef ${1:Macro}
+ $2
+${3:#else}
+ $4
+#endif \ No newline at end of file
diff --git a/nesc-mode/interface b/nesc-mode/interface
new file mode 100644
index 0000000..495a6c4
--- /dev/null
+++ b/nesc-mode/interface
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: interface
+# key: int
+# --
+interface ${1:Interface} {
+ $0
+} \ No newline at end of file
diff --git a/nesc-mode/module b/nesc-mode/module
new file mode 100644
index 0000000..477f49e
--- /dev/null
+++ b/nesc-mode/module
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: module
+# key: mod
+# --
+module ${1:Module} {
+ ${2:uses interface ${3:Packet}};
+ $0
+} \ No newline at end of file
diff --git a/nesc-mode/nx b/nesc-mode/nx
new file mode 100644
index 0000000..38da916
--- /dev/null
+++ b/nesc-mode/nx
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: nx
+# key: nx
+# --
+nx_uint${1:8}_t ${2:var};
+$0 \ No newline at end of file
diff --git a/nesc-mode/provides b/nesc-mode/provides
new file mode 100644
index 0000000..175b621
--- /dev/null
+++ b/nesc-mode/provides
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: provides
+# key: provides
+# --
+provides interface ${1:Interface}; \ No newline at end of file
diff --git a/nesc-mode/sim b/nesc-mode/sim
new file mode 100644
index 0000000..cd77218
--- /dev/null
+++ b/nesc-mode/sim
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: sim
+# key: sim
+# --
+#ifdef TOSSIM
+ $0
+#endif \ No newline at end of file
diff --git a/nesc-mode/uint8_t b/nesc-mode/uint8_t
new file mode 100644
index 0000000..eb0144e
--- /dev/null
+++ b/nesc-mode/uint8_t
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: uint8_t
+# key: u8
+# --
+uint8_t ${1:var};
+$0 \ No newline at end of file
diff --git a/nesc-mode/uses b/nesc-mode/uses
new file mode 100644
index 0000000..cbb977d
--- /dev/null
+++ b/nesc-mode/uses
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: uses
+# key: uses
+# --
+uses interface ${1:Interface}${2: as ${3:alias}};
+$0 \ No newline at end of file
diff --git a/nsis-mode/.yas-parents b/nsis-mode/.yas-parents
new file mode 100644
index 0000000..0539988
--- /dev/null
+++ b/nsis-mode/.yas-parents
@@ -0,0 +1 @@
+prog-mode \ No newline at end of file
diff --git a/nsis-mode/define b/nsis-mode/define
new file mode 100644
index 0000000..223d364
--- /dev/null
+++ b/nsis-mode/define
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: define
+# key: def
+# --
+!define ${1:CONSTANT} ${2:value} \ No newline at end of file
diff --git a/nsis-mode/function b/nsis-mode/function
new file mode 100644
index 0000000..22926eb
--- /dev/null
+++ b/nsis-mode/function
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: function
+# key: fun
+# --
+Function ${1:Name}
+ $0
+FunctionEnd \ No newline at end of file
diff --git a/nsis-mode/if b/nsis-mode/if
new file mode 100644
index 0000000..da3e92f
--- /dev/null
+++ b/nsis-mode/if
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: if
+# key: if
+# --
+${IF} ${1:cond}
+ $0
+${ElseIf} ${2:else_cond}
+
+${EndIf} \ No newline at end of file
diff --git a/nsis-mode/include b/nsis-mode/include
new file mode 100644
index 0000000..a7e0f24
--- /dev/null
+++ b/nsis-mode/include
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: include
+# key: inc
+# --
+!include "${Library.nsh}" \ No newline at end of file
diff --git a/nsis-mode/insert_macro b/nsis-mode/insert_macro
new file mode 100644
index 0000000..451dbb6
--- /dev/null
+++ b/nsis-mode/insert_macro
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: insert_macro
+# key: im
+# --
+!insermacro ${1:Name} ${2:"args"} \ No newline at end of file
diff --git a/nsis-mode/instdir b/nsis-mode/instdir
new file mode 100644
index 0000000..f5b14bc
--- /dev/null
+++ b/nsis-mode/instdir
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: instdir
+# key: $
+# --
+$INSTDIR \ No newline at end of file
diff --git a/nsis-mode/macro b/nsis-mode/macro
new file mode 100644
index 0000000..0316183
--- /dev/null
+++ b/nsis-mode/macro
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: macro
+# key: macro
+# --
+!macro ${1:Name} UN
+$0
+
+!macroend \ No newline at end of file
diff --git a/nsis-mode/message b/nsis-mode/message
new file mode 100644
index 0000000..37de365
--- /dev/null
+++ b/nsis-mode/message
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: message
+# key: msg
+# --
+MessageBox MB_OK "${1:hello}" \ No newline at end of file
diff --git a/nsis-mode/outdir b/nsis-mode/outdir
new file mode 100644
index 0000000..234b74d
--- /dev/null
+++ b/nsis-mode/outdir
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: outdir
+# key: $
+# --
+$OUTDIR \ No newline at end of file
diff --git a/nsis-mode/outfile b/nsis-mode/outfile
new file mode 100644
index 0000000..14abffc
--- /dev/null
+++ b/nsis-mode/outfile
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: outfile
+# key: out
+# --
+outFile "${1:setup}.exe" \ No newline at end of file
diff --git a/nsis-mode/section b/nsis-mode/section
new file mode 100644
index 0000000..5f0556e
--- /dev/null
+++ b/nsis-mode/section
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: section
+# key: sec
+# --
+Section "${1:Program}"
+ $0
+SectionEnd \ No newline at end of file
diff --git a/nxml-mode/body b/nxml-mode/body
new file mode 100644
index 0000000..ddcf0cf
--- /dev/null
+++ b/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/nxml-mode/br b/nxml-mode/br
new file mode 100644
index 0000000..ba35773
--- /dev/null
+++ b/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/nxml-mode/doctype b/nxml-mode/doctype
new file mode 100644
index 0000000..3fdcf17
--- /dev/null
+++ b/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/nxml-mode/doctype_xhtml1_strict b/nxml-mode/doctype_xhtml1_strict
new file mode 100644
index 0000000..eca5860
--- /dev/null
+++ b/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/nxml-mode/doctype_xhtml1_transitional b/nxml-mode/doctype_xhtml1_transitional
new file mode 100644
index 0000000..fba232a
--- /dev/null
+++ b/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/nxml-mode/form b/nxml-mode/form
new file mode 100644
index 0000000..252253e
--- /dev/null
+++ b/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/nxml-mode/href b/nxml-mode/href
new file mode 100644
index 0000000..47cb84a
--- /dev/null
+++ b/nxml-mode/href
@@ -0,0 +1,5 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <a href="...">...</a>
+#key: a
+# --
+<a href="$1">$2</a> \ No newline at end of file
diff --git a/nxml-mode/html b/nxml-mode/html
new file mode 100644
index 0000000..85e09f7
--- /dev/null
+++ b/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/nxml-mode/img b/nxml-mode/img
new file mode 100644
index 0000000..1f4382b
--- /dev/null
+++ b/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/nxml-mode/input b/nxml-mode/input
new file mode 100644
index 0000000..80c3503
--- /dev/null
+++ b/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/nxml-mode/link b/nxml-mode/link
new file mode 100644
index 0000000..d93b7a5
--- /dev/null
+++ b/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/nxml-mode/meta b/nxml-mode/meta
new file mode 100644
index 0000000..dfee1f2
--- /dev/null
+++ b/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/nxml-mode/name b/nxml-mode/name
new file mode 100644
index 0000000..592d0da
--- /dev/null
+++ b/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/nxml-mode/quote b/nxml-mode/quote
new file mode 100644
index 0000000..20fed1e
--- /dev/null
+++ b/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/nxml-mode/style b/nxml-mode/style
new file mode 100644
index 0000000..b80be1c
--- /dev/null
+++ b/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/nxml-mode/tag b/nxml-mode/tag
new file mode 100644
index 0000000..7c6a766
--- /dev/null
+++ b/nxml-mode/tag
@@ -0,0 +1,5 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <tag>...</tag>
+#key: t
+# --
+<${1:tag}>$2</$1>$0 \ No newline at end of file
diff --git a/nxml-mode/tag_closing b/nxml-mode/tag_closing
new file mode 100644
index 0000000..dcf5523
--- /dev/null
+++ b/nxml-mode/tag_closing
@@ -0,0 +1,5 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <tag.../>
+#key: t
+# --
+<$1 $2 />$0 \ No newline at end of file
diff --git a/nxml-mode/tag_newline b/nxml-mode/tag_newline
new file mode 100644
index 0000000..a1e1260
--- /dev/null
+++ b/nxml-mode/tag_newline
@@ -0,0 +1,7 @@
+#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <tag> \n...\n</tag>
+#key: tn
+# --
+<${1:tag}>
+ $2
+</$1>$0 \ No newline at end of file
diff --git a/octave-mode/for b/octave-mode/for
new file mode 100644
index 0000000..c8e1dde
--- /dev/null
+++ b/octave-mode/for
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: for
+# key: for
+# --
+for ${1:var} = ${2:expr}
+ $0
+endfor \ No newline at end of file
diff --git a/octave-mode/function b/octave-mode/function
new file mode 100644
index 0000000..ad2fe56
--- /dev/null
+++ b/octave-mode/function
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: function
+# key: fun
+# --
+function ${1:return_val} = ${2:fname}(${3:args})
+ $0
+endfunction \ No newline at end of file
diff --git a/octave-mode/if b/octave-mode/if
new file mode 100644
index 0000000..c785a24
--- /dev/null
+++ b/octave-mode/if
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: if
+# key: if
+# --
+if ${1:cond}
+ $0
+${2:else
+ ${3:other}}
+endif \ No newline at end of file
diff --git a/org-mode/code b/org-mode/code
new file mode 100644
index 0000000..89a94ff
--- /dev/null
+++ b/org-mode/code
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: code
+# key: code_
+# --
+#+begin_${1:lang} ${2:options}
+$0
+#+end_$1 \ No newline at end of file
diff --git a/org-mode/dot b/org-mode/dot
new file mode 100644
index 0000000..e9e76a1
--- /dev/null
+++ b/org-mode/dot
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: dot
+# key: dot_
+# --
+#+begin_src dot :file ${1:file} :cmdline -T${2:pdf} :exports none :results silent
+ $0
+#+end_src
+
+[[file:$1]] \ No newline at end of file
diff --git a/org-mode/elisp b/org-mode/elisp
new file mode 100644
index 0000000..c96251e
--- /dev/null
+++ b/org-mode/elisp
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: elisp
+# key: elisp_
+# --
+#+begin_src emacs-lisp :tangle yes
+$0
+#+end_src \ No newline at end of file
diff --git a/org-mode/embedded b/org-mode/embedded
new file mode 100644
index 0000000..5e74820
--- /dev/null
+++ b/org-mode/embedded
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: embedded
+# key: emb_
+# --
+src_${1:lang}${2:[${3:where}]}{${4:code}} \ No newline at end of file
diff --git a/org-mode/entry b/org-mode/entry
new file mode 100644
index 0000000..51d680a
--- /dev/null
+++ b/org-mode/entry
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# name: entry
+# key: entry_
+# --
+#+begin_html
+---
+layout: ${1:default}
+title: ${2:title}
+---
+#+end_html
+$0 \ No newline at end of file
diff --git a/org-mode/figure b/org-mode/figure
new file mode 100644
index 0000000..6c01df8
--- /dev/null
+++ b/org-mode/figure
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: figure
+# key: fig_
+# --
+#+CAPTION: ${1:caption}
+#+ATTR_LaTeX: ${2:scale=0.75}
+#+LABEL: fig:${3:label}
diff --git a/org-mode/img b/org-mode/img
new file mode 100644
index 0000000..9da54ba
--- /dev/null
+++ b/org-mode/img
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: img
+# key: img_
+# --
+<img src="$1"
+ alt="$2" align="${3:left}"
+ title="${4:image title}"
+ class="img"
+</img>
+$0 \ No newline at end of file
diff --git a/org-mode/latex b/org-mode/latex
new file mode 100644
index 0000000..66541c2
--- /dev/null
+++ b/org-mode/latex
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: latex
+# key: latex_
+# --
+#+BEGIN_LaTeX
+$0
+#+END_LaTeX \ No newline at end of file
diff --git a/org-mode/matrix b/org-mode/matrix
new file mode 100644
index 0000000..01f28c0
--- /dev/null
+++ b/org-mode/matrix
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# name: matrix
+# key: matrix_
+# possible improvement, compute the number of lines from the argument to array
+# --
+\left \(
+\begin{array}{${1:ccc}}
+${2:v1 & v2} \\
+$0
+\end{array}
+\right \) \ No newline at end of file
diff --git a/org-mode/verse b/org-mode/verse
new file mode 100644
index 0000000..02c691e
--- /dev/null
+++ b/org-mode/verse
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: verse
+# key: verse_
+# --
+#+begin_verse
+ $0
+#+end_verse \ No newline at end of file
diff --git a/perl-mode/.yas-parents b/perl-mode/.yas-parents
new file mode 100644
index 0000000..eed5b44
--- /dev/null
+++ b/perl-mode/.yas-parents
@@ -0,0 +1 @@
+text-mode
diff --git a/perl-mode/eval b/perl-mode/eval
new file mode 100644
index 0000000..a484014
--- /dev/null
+++ b/perl-mode/eval
@@ -0,0 +1,9 @@
+# name: eval { ... } if ($@) { ... }
+# key: eval
+# --
+eval {
+ ${1:# do something risky...}
+};
+if (\$@) {
+ ${2:# handle failure...}
+} \ No newline at end of file
diff --git a/perl-mode/for b/perl-mode/for
new file mode 100644
index 0000000..1ba240f
--- /dev/null
+++ b/perl-mode/for
@@ -0,0 +1,6 @@
+# name: for (...) { ... }
+# key: for
+# --
+for (my \$${1:var} = 0; \$$1 < ${2:expression}; \$$1++) {
+ ${3:# body...}
+} \ No newline at end of file
diff --git a/perl-mode/fore b/perl-mode/fore
new file mode 100644
index 0000000..c3b81d5
--- /dev/null
+++ b/perl-mode/fore
@@ -0,0 +1,6 @@
+# name: foreach ... { ... }
+# key: fore
+# --
+foreach my \$${1:x} (@${2:array}) {
+ ${3:# body...}
+} \ No newline at end of file
diff --git a/perl-mode/if b/perl-mode/if
new file mode 100644
index 0000000..567db90
--- /dev/null
+++ b/perl-mode/if
@@ -0,0 +1,6 @@
+# name: if (...) { ... }
+# key: if
+# --
+if ($1) {
+ $0
+} \ No newline at end of file
diff --git a/perl-mode/ife b/perl-mode/ife
new file mode 100644
index 0000000..f278f21
--- /dev/null
+++ b/perl-mode/ife
@@ -0,0 +1,8 @@
+# name: if (...) { ... } else { ... }
+# key: ife
+# --
+if ($1) {
+ $2
+} else {
+ $3
+} \ No newline at end of file
diff --git a/perl-mode/ifee b/perl-mode/ifee
new file mode 100644
index 0000000..d1bf237
--- /dev/null
+++ b/perl-mode/ifee
@@ -0,0 +1,10 @@
+# name: if, elsif, else ...
+# key: ifee
+# --
+if ($1) {
+ ${2:# body...}
+} elsif ($3) {
+ ${4:# elsif...}
+} else {
+ ${5:# else...}
+} \ No newline at end of file
diff --git a/perl-mode/sub b/perl-mode/sub
new file mode 100644
index 0000000..05607d6
--- /dev/null
+++ b/perl-mode/sub
@@ -0,0 +1,6 @@
+# name: sub ... { ... }
+# key: sub
+# --
+sub ${1:function_name} {
+ $0
+} \ No newline at end of file
diff --git a/perl-mode/unless b/perl-mode/unless
new file mode 100644
index 0000000..f91a652
--- /dev/null
+++ b/perl-mode/unless
@@ -0,0 +1,6 @@
+# name: unless (...) { ... }
+# key: unless
+# --
+unless ($1) {
+ $0
+} \ No newline at end of file
diff --git a/perl-mode/while b/perl-mode/while
new file mode 100644
index 0000000..2744530
--- /dev/null
+++ b/perl-mode/while
@@ -0,0 +1,6 @@
+# name: while (...) { ... }
+# key: while
+# --
+while ($1) {
+ $0
+} \ No newline at end of file
diff --git a/perl-mode/xfore b/perl-mode/xfore
new file mode 100644
index 0000000..018e140
--- /dev/null
+++ b/perl-mode/xfore
@@ -0,0 +1,4 @@
+# name: ... foreach ...
+# key: xfore
+# --
+${1:expression} foreach @${2:array}; \ No newline at end of file
diff --git a/perl-mode/xif b/perl-mode/xif
new file mode 100644
index 0000000..ca8b563
--- /dev/null
+++ b/perl-mode/xif
@@ -0,0 +1,4 @@
+# name: ... if ...
+# key: xif
+# --
+${1:expression} if ${2:condition} \ No newline at end of file
diff --git a/perl-mode/xunless b/perl-mode/xunless
new file mode 100644
index 0000000..dbb7d7d
--- /dev/null
+++ b/perl-mode/xunless
@@ -0,0 +1,4 @@
+# name: ... unless ...
+# key: xunless
+# --
+${1:expression} unless ${2:condition} \ No newline at end of file
diff --git a/perl-mode/xwhile b/perl-mode/xwhile
new file mode 100644
index 0000000..14c6308
--- /dev/null
+++ b/perl-mode/xwhile
@@ -0,0 +1,4 @@
+# name: ... while ...
+# key: xwhile
+# --
+${1:expression} while ${2:condition}; \ No newline at end of file
diff --git a/prog-mode/.yas-setup.el b/prog-mode/.yas-setup.el
new file mode 100644
index 0000000..03d07cf
--- /dev/null
+++ b/prog-mode/.yas-setup.el
@@ -0,0 +1,2 @@
+(defun yas-with-comment (str)
+ (format "%s%s%s" comment-start str comment-end))
diff --git a/prog-mode/fixme b/prog-mode/fixme
new file mode 100644
index 0000000..146db8b
--- /dev/null
+++ b/prog-mode/fixme
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: fixme
+# key: fi
+# condition: (not (eq major-mode 'sh-mode))
+# --
+`(yas-with-comment "FIXME: ")` \ No newline at end of file
diff --git a/prog-mode/todo b/prog-mode/todo
new file mode 100644
index 0000000..973151f
--- /dev/null
+++ b/prog-mode/todo
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: todo
+# key: t
+# --
+`(yas-with-comment "TODO: ")` \ No newline at end of file
diff --git a/prog-mode/xxx b/prog-mode/xxx
new file mode 100644
index 0000000..09df18b
--- /dev/null
+++ b/prog-mode/xxx
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: xxx
+# key: x
+# --
+`(yas-with-comment "XXX: ")` \ No newline at end of file
diff --git a/python-mode/.yas-parents b/python-mode/.yas-parents
new file mode 100644
index 0000000..75d003f
--- /dev/null
+++ b/python-mode/.yas-parents
@@ -0,0 +1 @@
+prog-mode
diff --git a/python-mode/.yas-setup.el b/python-mode/.yas-setup.el
new file mode 100644
index 0000000..6635232
--- /dev/null
+++ b/python-mode/.yas-setup.el
@@ -0,0 +1,22 @@
+(defun python-split-args (arg-string)
+ "Split a python argument string into ((name, default)..) tuples"
+ (mapcar (lambda (x)
+ (split-string x "[[:blank:]]*=[[:blank:]]*" t))
+ (split-string arg-string "[[:blank:]]*,[[:blank:]]*" t)))
+
+(defun python-args-to-docstring ()
+ "return docstring format for the python arguments in yas-text"
+ (let* ((indent (concat "\n" (make-string (current-column) 32)))
+ (args (python-split-args yas-text))
+ (max-len (if args (apply 'max (mapcar (lambda (x) (length (nth 0 x))) args)) 0))
+ (formatted-args (mapconcat
+ (lambda (x)
+ (concat (nth 0 x) (make-string (- max-len (length (nth 0 x))) ? ) " -- "
+ (if (nth 1 x) (concat "\(default " (nth 1 x) "\)"))))
+ args
+ indent)))
+ (unless (string= formatted-args "")
+ (mapconcat 'identity (list "Keyword Arguments:" formatted-args) indent))))
+
+(add-hook 'python-mode-hook
+ '(lambda () (set (make-local-variable 'yas-indent-line) 'fixed)))
diff --git a/python-mode/__contains__ b/python-mode/__contains__
new file mode 100644
index 0000000..4d4ad50
--- /dev/null
+++ b/python-mode/__contains__
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: __contains__
+# key: cont
+# group: dunder methods
+# --
+def __contains__(self, el):
+ $0 \ No newline at end of file
diff --git a/python-mode/__enter__ b/python-mode/__enter__
new file mode 100644
index 0000000..3dcc3ba
--- /dev/null
+++ b/python-mode/__enter__
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: __enter__
+# key: ent
+# group: dunder methods
+# --
+def __enter__(self):
+ $0
+
+ return self \ No newline at end of file
diff --git a/python-mode/__exit__ b/python-mode/__exit__
new file mode 100644
index 0000000..cd9de7d
--- /dev/null
+++ b/python-mode/__exit__
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: __exit__
+# key: ex
+# group: dunder methods
+# --
+def __exit__(self, type, value, traceback):
+ $0 \ No newline at end of file
diff --git a/python-mode/__getitem__ b/python-mode/__getitem__
new file mode 100644
index 0000000..939bd1a
--- /dev/null
+++ b/python-mode/__getitem__
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: __getitem__
+# key: getit
+# group: dunder methods
+# --
+def __getitem__(self, ${1:key}):
+ $0 \ No newline at end of file
diff --git a/python-mode/__len__ b/python-mode/__len__
new file mode 100644
index 0000000..9e6c164
--- /dev/null
+++ b/python-mode/__len__
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: __len__
+# key: len
+# group: dunder methods
+# --
+def __len__(self):
+ $0 \ No newline at end of file
diff --git a/python-mode/__new__ b/python-mode/__new__
new file mode 100644
index 0000000..0256580
--- /dev/null
+++ b/python-mode/__new__
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: __new__
+# key: new
+# group: dunder methods
+# --
+def __new__(mcs, name, bases, dict):
+ $0
+ return type.__new__(mcs, name, bases, dict)
diff --git a/python-mode/__setitem__ b/python-mode/__setitem__
new file mode 100644
index 0000000..c7db5b1
--- /dev/null
+++ b/python-mode/__setitem__
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: __setitem__
+# key: setit
+# group: dunder methods
+# --
+def __setitem__(self, ${1:key}, ${2:val}):
+ $0 \ No newline at end of file
diff --git a/python-mode/all b/python-mode/all
new file mode 100644
index 0000000..062e31a
--- /dev/null
+++ b/python-mode/all
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: all
+# key: a
+# --
+__all__ = [
+ $0
+] \ No newline at end of file
diff --git a/python-mode/arg b/python-mode/arg
new file mode 100644
index 0000000..f5145ec
--- /dev/null
+++ b/python-mode/arg
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: arg
+# key: arg
+# group: argparser
+# --
+parser.add_argument('-$1', '--$2',
+ $0)
diff --git a/python-mode/arg_positional b/python-mode/arg_positional
new file mode 100644
index 0000000..b54fc46
--- /dev/null
+++ b/python-mode/arg_positional
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: arg_positional
+# key: arg
+# group: argparser
+# --
+parser.add_argument('${1:varname}', $0) \ No newline at end of file
diff --git a/python-mode/ass b/python-mode/ass
new file mode 100644
index 0000000..ec82efe
--- /dev/null
+++ b/python-mode/ass
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: assert
+# key: ass
+# group: testing
+# --
+assert $0 \ No newline at end of file
diff --git a/python-mode/assertEqual b/python-mode/assertEqual
new file mode 100644
index 0000000..29282b9
--- /dev/null
+++ b/python-mode/assertEqual
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: assertEqual
+# key: ae
+# group: testing
+# --
+self.assertEqual($1, $2) \ No newline at end of file
diff --git a/python-mode/assertFalse b/python-mode/assertFalse
new file mode 100644
index 0000000..41a9dcf
--- /dev/null
+++ b/python-mode/assertFalse
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: assertFalse
+# key: af
+# group: testing
+# --
+self.assertFalse($0) \ No newline at end of file
diff --git a/python-mode/assertIn b/python-mode/assertIn
new file mode 100644
index 0000000..74e1ee7
--- /dev/null
+++ b/python-mode/assertIn
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: assertIn
+# key: ai
+# group: testing
+# --
+self.assertIn(${1:member}, ${2:container}) \ No newline at end of file
diff --git a/python-mode/assertNotEqual b/python-mode/assertNotEqual
new file mode 100644
index 0000000..6837407
--- /dev/null
+++ b/python-mode/assertNotEqual
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: assertNotEqual
+# key: ane
+# group: testing
+# --
+self.assertNotEqual($1, $2) \ No newline at end of file
diff --git a/python-mode/assertNotIn b/python-mode/assertNotIn
new file mode 100644
index 0000000..4780a7e
--- /dev/null
+++ b/python-mode/assertNotIn
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: assetNotIn
+# key: an
+# group: testing
+# --
+self.assertNotIn(${1:member}, ${2:container}) \ No newline at end of file
diff --git a/python-mode/assertRaises b/python-mode/assertRaises
new file mode 100644
index 0000000..db125da
--- /dev/null
+++ b/python-mode/assertRaises
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: assertRaises
+# key: ar
+# group: testing
+# --
+self.assertRaises(${1:Exception}, ${2:fun}) \ No newline at end of file
diff --git a/python-mode/assertRaises.with b/python-mode/assertRaises.with
new file mode 100644
index 0000000..c97807e
--- /dev/null
+++ b/python-mode/assertRaises.with
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: assertRaises
+# key: ar
+# --
+with self.assertRaises(${1:Exception}):
+ $0
diff --git a/python-mode/assertTrue b/python-mode/assertTrue
new file mode 100644
index 0000000..1cc59ac
--- /dev/null
+++ b/python-mode/assertTrue
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: assertTrue
+# key: at
+# group: testing
+# --
+self.assertTrue($0) \ No newline at end of file
diff --git a/python-mode/celery_pdb b/python-mode/celery_pdb
new file mode 100644
index 0000000..6095b2d
--- /dev/null
+++ b/python-mode/celery_pdb
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: celery pdb
+# key: cdb
+# group: debug
+# --
+from celery.contrib import rdb; rdb.set_trace() \ No newline at end of file
diff --git a/python-mode/classmethod b/python-mode/classmethod
new file mode 100644
index 0000000..3bffaac
--- /dev/null
+++ b/python-mode/classmethod
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: classmethod
+# key: cm
+# group: object oriented
+# --
+@classmethod
+def ${1:meth}(cls, $0):
+ \ No newline at end of file
diff --git a/python-mode/cls b/python-mode/cls
new file mode 100644
index 0000000..9f8b27c
--- /dev/null
+++ b/python-mode/cls
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: cls
+# key: cls
+# group: object oriented
+# --
+class ${1:class}:
+ $0
diff --git a/python-mode/dec b/python-mode/dec
new file mode 100644
index 0000000..b22c9e9
--- /dev/null
+++ b/python-mode/dec
@@ -0,0 +1,14 @@
+# -*- mode: snippet -*-
+# name: dec
+# key: dec
+# group : definitions
+# --
+def ${1:decorator}(func):
+ $2
+ def _$1(*args, **kwargs):
+ $3
+ ret = func(*args, **kwargs)
+ $4
+ return ret
+
+ return _$1 \ No newline at end of file
diff --git a/python-mode/deftest b/python-mode/deftest
new file mode 100644
index 0000000..394553a
--- /dev/null
+++ b/python-mode/deftest
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: deftest
+# key: dt
+# group: testing
+# --
+def test_${1:long_name}(self):
+ $0 \ No newline at end of file
diff --git a/python-mode/django_test_class b/python-mode/django_test_class
new file mode 100644
index 0000000..386e305
--- /dev/null
+++ b/python-mode/django_test_class
@@ -0,0 +1,7 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: django_test_class
+# key: tcs
+# group: testing
+# --
+class ${1:Model}Test(TestCase):
+ $0 \ No newline at end of file
diff --git a/python-mode/doc b/python-mode/doc
new file mode 100644
index 0000000..2929e78
--- /dev/null
+++ b/python-mode/doc
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: doc
+# key: d
+# --
+"""$0
+""" \ No newline at end of file
diff --git a/python-mode/doctest b/python-mode/doctest
new file mode 100644
index 0000000..a5e4bb5
--- /dev/null
+++ b/python-mode/doctest
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: doctest
+# key: doc
+# group: testing
+# --
+>>> ${1:function calls}
+${2:desired output}
+$0 \ No newline at end of file
diff --git a/python-mode/eq b/python-mode/eq
new file mode 100644
index 0000000..e19c328
--- /dev/null
+++ b/python-mode/eq
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: __eq__
+# key: eq
+# group: dunder methods
+# --
+def __eq__(self, other):
+ return self.$1 == other.$1 \ No newline at end of file
diff --git a/python-mode/for b/python-mode/for
new file mode 100644
index 0000000..0033c87
--- /dev/null
+++ b/python-mode/for
@@ -0,0 +1,6 @@
+# name: for ... in ... : ...
+# key: for
+# group : control structure
+# --
+for ${var} in ${collection}:
+ $0 \ No newline at end of file
diff --git a/python-mode/from b/python-mode/from
new file mode 100644
index 0000000..3a4acfc
--- /dev/null
+++ b/python-mode/from
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: from
+# key: from
+# group : general
+# --
+from ${1:lib} import ${2:funs} \ No newline at end of file
diff --git a/python-mode/function b/python-mode/function
new file mode 100644
index 0000000..d7e8f12
--- /dev/null
+++ b/python-mode/function
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: function
+# key: f
+# group: definitions
+# --
+def ${1:fun}(${2:args}):
+ $0
diff --git a/python-mode/function_docstring b/python-mode/function_docstring
new file mode 100644
index 0000000..1f7f35b
--- /dev/null
+++ b/python-mode/function_docstring
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: function_docstring
+# key: fd
+# group: definitions
+# --
+def ${1:name}($2):
+ \"\"\"$3
+ ${2:$(python-args-to-docstring)}
+ \"\"\"
+ $0 \ No newline at end of file
diff --git a/python-mode/if b/python-mode/if
new file mode 100644
index 0000000..d1538a9
--- /dev/null
+++ b/python-mode/if
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: if
+# key: if
+# group : control structure
+# --
+if ${1:cond}:
+ $0
diff --git a/python-mode/ife b/python-mode/ife
new file mode 100644
index 0000000..4b8f613
--- /dev/null
+++ b/python-mode/ife
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: ife
+# key: ife
+# group : control structure
+# --
+if $1:
+ $2
+else:
+ $0
diff --git a/python-mode/ifmain b/python-mode/ifmain
new file mode 100644
index 0000000..9575798
--- /dev/null
+++ b/python-mode/ifmain
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: ifmain
+# key: ifm
+# --
+if __name__ == '__main__':
+ ${1:main()} \ No newline at end of file
diff --git a/python-mode/import b/python-mode/import
new file mode 100644
index 0000000..f34bc39
--- /dev/null
+++ b/python-mode/import
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: import
+# key: imp
+# group : general
+# --
+import ${1:lib}${2: as ${3:alias}}
+$0 \ No newline at end of file
diff --git a/python-mode/init b/python-mode/init
new file mode 100644
index 0000000..aece55c
--- /dev/null
+++ b/python-mode/init
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: init
+# key: init
+# group : definitions
+# --
+def __init__(self${1:, args}):
+ ${2:"${3:docstring}"
+ }$0 \ No newline at end of file
diff --git a/python-mode/init_docstring b/python-mode/init_docstring
new file mode 100644
index 0000000..51af8db
--- /dev/null
+++ b/python-mode/init_docstring
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: init_docstring
+# key: id
+# group : definitions
+# --
+def __init__(self$1):
+ \"\"\"$2
+ ${1:$(python-args-to-docstring)}
+ \"\"\"
+ $0 \ No newline at end of file
diff --git a/python-mode/interact b/python-mode/interact
new file mode 100644
index 0000000..4b412c8
--- /dev/null
+++ b/python-mode/interact
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: interact
+# key: int
+# --
+import code; code.interact(local=locals()) \ No newline at end of file
diff --git a/python-mode/ipdbdebug b/python-mode/ipdbdebug
new file mode 100644
index 0000000..f45ad75
--- /dev/null
+++ b/python-mode/ipdbdebug
@@ -0,0 +1,6 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: ipdb trace
+# key: itr
+# group: debug
+# --
+import ipdb; ipdb.set_trace() \ No newline at end of file
diff --git a/python-mode/iter b/python-mode/iter
new file mode 100644
index 0000000..a4fed13
--- /dev/null
+++ b/python-mode/iter
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: __iter__
+# key: iter
+# group: dunder methods
+# --
+def __iter__(self):
+ return ${1:iter($2)} \ No newline at end of file
diff --git a/python-mode/lambda b/python-mode/lambda
new file mode 100644
index 0000000..08b268b
--- /dev/null
+++ b/python-mode/lambda
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: lambda
+# key: lam
+# --
+lambda ${1:x}: $0 \ No newline at end of file
diff --git a/python-mode/list b/python-mode/list
new file mode 100644
index 0000000..63cef24
--- /dev/null
+++ b/python-mode/list
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: list
+# key: li
+# group : definitions
+# --
+[${1:el} for $1 in ${2:list}]
+$0 \ No newline at end of file
diff --git a/python-mode/logger_name b/python-mode/logger_name
new file mode 100644
index 0000000..9759dd9
--- /dev/null
+++ b/python-mode/logger_name
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: logger_name
+# key: ln
+# --
+logger = logging.getLogger(${1:__name__}) \ No newline at end of file
diff --git a/python-mode/logging b/python-mode/logging
new file mode 100644
index 0000000..568eeea
--- /dev/null
+++ b/python-mode/logging
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: logging
+# key: log
+# --
+logger = logging.getLogger("${1:name}")
+logger.setLevel(logging.${2:level})
diff --git a/python-mode/main b/python-mode/main
new file mode 100644
index 0000000..9f3c721
--- /dev/null
+++ b/python-mode/main
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: main
+# key: main
+# --
+def main():
+ $0 \ No newline at end of file
diff --git a/python-mode/metaclass b/python-mode/metaclass
new file mode 100644
index 0000000..1e688e4
--- /dev/null
+++ b/python-mode/metaclass
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: metaclass
+# key: mt
+# group: object oriented
+# --
+__metaclass__ = type \ No newline at end of file
diff --git a/python-mode/method b/python-mode/method
new file mode 100644
index 0000000..985ef0c
--- /dev/null
+++ b/python-mode/method
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: method
+# key: m
+# group: object oriented
+# --
+def ${1:method}(self${2:, $3}):
+ $0 \ No newline at end of file
diff --git a/python-mode/method_docstring b/python-mode/method_docstring
new file mode 100644
index 0000000..8f5e78d
--- /dev/null
+++ b/python-mode/method_docstring
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: method_docstring
+# key: md
+# group: object oriented
+# --
+def ${1:name}(self$2):
+ \"\"\"$3
+ ${2:$(python-args-to-docstring)}
+ \"\"\"
+ $0 \ No newline at end of file
diff --git a/python-mode/not_impl b/python-mode/not_impl
new file mode 100644
index 0000000..515e353
--- /dev/null
+++ b/python-mode/not_impl
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: not_impl
+# key: not_impl
+# --
+raise NotImplementedError \ No newline at end of file
diff --git a/python-mode/np b/python-mode/np
new file mode 100644
index 0000000..9f6327c
--- /dev/null
+++ b/python-mode/np
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: np
+# key: np
+# group : general
+# --
+import numpy as np
+$0 \ No newline at end of file
diff --git a/python-mode/parse_args b/python-mode/parse_args
new file mode 100644
index 0000000..aa61070
--- /dev/null
+++ b/python-mode/parse_args
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: parse_args
+# key: pargs
+# group: argparser
+# --
+def parse_arguments():
+ parser = argparse.ArgumentParser(description='$1')
+ $0
+ return parser.parse_args() \ No newline at end of file
diff --git a/python-mode/parser b/python-mode/parser
new file mode 100644
index 0000000..29a04ea
--- /dev/null
+++ b/python-mode/parser
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: parser
+# key: pars
+# group: argparser
+# --
+parser = argparse.ArgumentParser(description='$1')
+$0 \ No newline at end of file
diff --git a/python-mode/pass b/python-mode/pass
new file mode 100644
index 0000000..4734f7f
--- /dev/null
+++ b/python-mode/pass
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: pass
+# key: ps
+# --
+pass \ No newline at end of file
diff --git a/python-mode/print b/python-mode/print
new file mode 100644
index 0000000..cc1c797
--- /dev/null
+++ b/python-mode/print
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: print
+# key: p
+# --
+print($0) \ No newline at end of file
diff --git a/python-mode/prop b/python-mode/prop
new file mode 100644
index 0000000..34e4fa1
--- /dev/null
+++ b/python-mode/prop
@@ -0,0 +1,17 @@
+# 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/python-mode/reg b/python-mode/reg
new file mode 100644
index 0000000..c4ebeac
--- /dev/null
+++ b/python-mode/reg
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: reg
+# key: reg
+# group : general
+# --
+${1:regexp} = re.compile(r"${2:expr}")
+$0 \ No newline at end of file
diff --git a/python-mode/repr b/python-mode/repr
new file mode 100644
index 0000000..a1f6783
--- /dev/null
+++ b/python-mode/repr
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: __repr__
+# key: repr
+# group: dunder methods
+# --
+def __repr__(self):
+ $0 \ No newline at end of file
diff --git a/python-mode/return b/python-mode/return
new file mode 100644
index 0000000..641a308
--- /dev/null
+++ b/python-mode/return
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: return
+# key: r
+# --
+return $0 \ No newline at end of file
diff --git a/python-mode/script b/python-mode/script
new file mode 100644
index 0000000..55e42e9
--- /dev/null
+++ b/python-mode/script
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# name: script
+# key: script
+# --
+#!/usr/bin/env python
+
+def main():
+ pass
+
+if __name__ == '__main__':
+ main()
diff --git a/python-mode/self b/python-mode/self
new file mode 100644
index 0000000..4461022
--- /dev/null
+++ b/python-mode/self
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: self
+# key: .
+# group: object oriented
+# --
+self.$0 \ No newline at end of file
diff --git a/python-mode/self_without_dot b/python-mode/self_without_dot
new file mode 100644
index 0000000..a1a0526
--- /dev/null
+++ b/python-mode/self_without_dot
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: self_without_dot
+# key: s
+# group: object oriented
+# --
+self \ No newline at end of file
diff --git a/python-mode/selfassign b/python-mode/selfassign
new file mode 100644
index 0000000..95d7b2b
--- /dev/null
+++ b/python-mode/selfassign
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: selfassign
+# key: sn
+# group: object oriented
+# --
+self.$1 = $1 \ No newline at end of file
diff --git a/python-mode/setdef b/python-mode/setdef
new file mode 100644
index 0000000..2398eb1
--- /dev/null
+++ b/python-mode/setdef
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: setdef
+# key: setdef
+# --
+${1:var}.setdefault(${2:key}, []).append(${3:value}) \ No newline at end of file
diff --git a/python-mode/setup b/python-mode/setup
new file mode 100644
index 0000000..107abc1
--- /dev/null
+++ b/python-mode/setup
@@ -0,0 +1,14 @@
+# -*- mode: snippet -*-
+# name: setup
+# key: setup
+# group: distribute
+# --
+from setuptools import setup
+
+package = '${1:name}'
+version = '${2:0.1}'
+
+setup(name=package,
+ version=version,
+ description="${3:description}",
+ url='${4:url}'$0)
diff --git a/python-mode/size b/python-mode/size
new file mode 100644
index 0000000..47a0f38
--- /dev/null
+++ b/python-mode/size
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: size
+# key: size
+# --
+sys.getsizeof($0) \ No newline at end of file
diff --git a/python-mode/static b/python-mode/static
new file mode 100644
index 0000000..19c3df9
--- /dev/null
+++ b/python-mode/static
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: static
+# key: sm
+# --
+@staticmethod
+def ${1:func}($0):
diff --git a/python-mode/str b/python-mode/str
new file mode 100644
index 0000000..b0572e3
--- /dev/null
+++ b/python-mode/str
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: __str__
+# key: str
+# group: dunder methods
+# --
+def __str__(self):
+ $0 \ No newline at end of file
diff --git a/python-mode/super b/python-mode/super
new file mode 100644
index 0000000..23fba5d
--- /dev/null
+++ b/python-mode/super
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: super
+# key: super
+# group: object oriented
+# --
+super(`(replace-regexp-in-string "\\([.]\\)[^.]+$" ", self)." (python-info-current-defun) nil nil 1)`($1)
+$0 \ No newline at end of file
diff --git a/python-mode/test_class b/python-mode/test_class
new file mode 100644
index 0000000..7342c5f
--- /dev/null
+++ b/python-mode/test_class
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: test_class
+# key: tcs
+# group : testing
+# --
+class Test${1:toTest}(${2:unittest.TestCase}):
+ $0
diff --git a/python-mode/test_file b/python-mode/test_file
new file mode 100644
index 0000000..e4b5315
--- /dev/null
+++ b/python-mode/test_file
@@ -0,0 +1,12 @@
+# -*- mode: snippet -*-
+# name: test_file
+# key: tf
+# group : testing
+# --
+import unittest
+${1:from ${2:test_file} import *}
+
+$0
+
+if __name__ == '__main__':
+ unittest.main() \ No newline at end of file
diff --git a/python-mode/trace b/python-mode/trace
new file mode 100644
index 0000000..e475d62
--- /dev/null
+++ b/python-mode/trace
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: trace
+# key: tr
+# group: debug
+# --
+import pdb; pdb.set_trace() \ No newline at end of file
diff --git a/python-mode/try b/python-mode/try
new file mode 100644
index 0000000..8836de6
--- /dev/null
+++ b/python-mode/try
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: try
+# key: try
+# --
+try:
+ $1
+except ${2:Exception}:
+ $0 \ No newline at end of file
diff --git a/python-mode/tryelse b/python-mode/tryelse
new file mode 100644
index 0000000..f2e44e4
--- /dev/null
+++ b/python-mode/tryelse
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: tryelse
+# key: try
+# --
+try:
+ $1
+except $2:
+ $3
+else:
+ $0 \ No newline at end of file
diff --git a/python-mode/unicode b/python-mode/unicode
new file mode 100644
index 0000000..52d6b8d
--- /dev/null
+++ b/python-mode/unicode
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: __unicode__
+# key: un
+# group: dunder methods
+# --
+def __unicode__(self):
+ $0 \ No newline at end of file
diff --git a/python-mode/utf8 b/python-mode/utf8
new file mode 100644
index 0000000..2ebd82e
--- /dev/null
+++ b/python-mode/utf8
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: utf-8 encoding
+# key: utf8
+# --
+# -*- coding: utf-8 -*-
diff --git a/python-mode/while b/python-mode/while
new file mode 100644
index 0000000..7b3539c
--- /dev/null
+++ b/python-mode/while
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: while
+# key: wh
+# group: control structure
+# --
+while ${1:True}:
+ $0 \ No newline at end of file
diff --git a/python-mode/with b/python-mode/with
new file mode 100644
index 0000000..7fcbd38
--- /dev/null
+++ b/python-mode/with
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: with
+# key: with
+# group : control structure
+# --
+with ${1:expr}${2: as ${3:alias}}:
+ $0 \ No newline at end of file
diff --git a/python-mode/with_statement b/python-mode/with_statement
new file mode 100644
index 0000000..1be3692
--- /dev/null
+++ b/python-mode/with_statement
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: with_statement
+# key: fw
+# group: future
+# --
+from __future__ import with_statement \ No newline at end of file
diff --git a/rename_add_contr.py b/rename_add_contr.py
new file mode 100755
index 0000000..3ed7847
--- /dev/null
+++ b/rename_add_contr.py
@@ -0,0 +1,36 @@
+#!/usr/bin/env python
+import os
+import re
+from os.path import join
+from shutil import move
+
+
+def rename(root, f):
+ if f.endswith('.yasnippet'):
+ base, _ = f.split('.')
+ print("move %s to %s" % (join(root, f), join(root, base)))
+ move(join(root, f), join(root, base))
+
+
+CONT = "# contributor: Andrea crotti\n# --"
+END = "# --\n\n"
+
+orig = "# --\n\n"
+to = "# --\n"
+
+def insert(root, f, orig, to):
+ fname = join(root, f)
+ text = open(fname).read()
+ nex_text = re.sub(orig, to, text)
+ open(fname, 'w').write(nex_text)
+
+if __name__ == '__main__':
+ for root, dirs, files in os.walk('.'):
+ if "mode" in root:
+ # os.popen("git add *yasnippet")
+ for f in files:
+ rename(root, f)
+ # insert(root, f, orig, to)
+
+
+
diff --git a/rst-mode/autoclass b/rst-mode/autoclass
new file mode 100644
index 0000000..b207dd3
--- /dev/null
+++ b/rst-mode/autoclass
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: autoclass
+# key: auto
+# --
+.. autoclass:: $0
+ ${1::members: ${2:members}} \ No newline at end of file
diff --git a/rst-mode/autofunction b/rst-mode/autofunction
new file mode 100644
index 0000000..7ed5c5e
--- /dev/null
+++ b/rst-mode/autofunction
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: autofunction
+# key: auto
+# --
+.. autofunction:: $0 \ No newline at end of file
diff --git a/rst-mode/automodule b/rst-mode/automodule
new file mode 100644
index 0000000..2929f77
--- /dev/null
+++ b/rst-mode/automodule
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: automodule
+# key: auto
+# --
+.. automodule:: ${1:module_name} \ No newline at end of file
diff --git a/rst-mode/class b/rst-mode/class
new file mode 100644
index 0000000..66ad562
--- /dev/null
+++ b/rst-mode/class
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: class
+# key: cls
+# --
+:class:\`$0\` \ No newline at end of file
diff --git a/rst-mode/code b/rst-mode/code
new file mode 100644
index 0000000..49ff111
--- /dev/null
+++ b/rst-mode/code
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: code
+# key: code
+# --
+.. code:: ${1:python} \ No newline at end of file
diff --git a/rst-mode/digraph b/rst-mode/digraph
new file mode 100644
index 0000000..448de13
--- /dev/null
+++ b/rst-mode/digraph
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: digraph
+# key: graph
+# --
+.. digraph:: $1
+
+ $0 \ No newline at end of file
diff --git a/rst-mode/function b/rst-mode/function
new file mode 100644
index 0000000..8677632
--- /dev/null
+++ b/rst-mode/function
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: function
+# key: fun
+# --
+:function:\`$0\` \ No newline at end of file
diff --git a/rst-mode/graph b/rst-mode/graph
new file mode 100644
index 0000000..f7d7b69
--- /dev/null
+++ b/rst-mode/graph
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: graph
+# key: graph
+# --
+.. graph:: $1
+
+ $0 \ No newline at end of file
diff --git a/rst-mode/graphviz b/rst-mode/graphviz
new file mode 100644
index 0000000..53ca449
--- /dev/null
+++ b/rst-mode/graphviz
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: graphviz
+# key: graph
+# --
+.. graphviz::
+
+ $0 \ No newline at end of file
diff --git a/rst-mode/image b/rst-mode/image
new file mode 100644
index 0000000..402c9a5
--- /dev/null
+++ b/rst-mode/image
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: image
+# key: img
+# --
+.. image:: ${1:path}
+ :height: ${2:100}
+ :width: ${3:200}
+ :alt: ${4:description}
+
+$0 \ No newline at end of file
diff --git a/rst-mode/inheritance b/rst-mode/inheritance
new file mode 100644
index 0000000..e646c9a
--- /dev/null
+++ b/rst-mode/inheritance
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: inheritance
+# key: inh
+# --
+.. inheritance-diagram:: $0 \ No newline at end of file
diff --git a/rst-mode/literal_include b/rst-mode/literal_include
new file mode 100644
index 0000000..9e2a7de
--- /dev/null
+++ b/rst-mode/literal_include
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: literatal include
+# key: inc
+# --
+.. literalinclude:: ${1:path} \ No newline at end of file
diff --git a/rst-mode/meta b/rst-mode/meta
new file mode 100644
index 0000000..6aaae41
--- /dev/null
+++ b/rst-mode/meta
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: meta
+# key: :
+# --
+:${1:var}: $0 \ No newline at end of file
diff --git a/rst-mode/module b/rst-mode/module
new file mode 100644
index 0000000..e60e18e
--- /dev/null
+++ b/rst-mode/module
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: module
+# key: mod
+# --
+:mod: \`$0\` \ No newline at end of file
diff --git a/rst-mode/parsed_literal b/rst-mode/parsed_literal
new file mode 100644
index 0000000..ee8c07c
--- /dev/null
+++ b/rst-mode/parsed_literal
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: parsed_literal
+# key: src
+# --
+.. parsed-literal::
+ $0 \ No newline at end of file
diff --git a/rst-mode/pause b/rst-mode/pause
new file mode 100644
index 0000000..0833e87
--- /dev/null
+++ b/rst-mode/pause
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: pause
+# key: pause
+# group: hieroglyph
+# --
+.. rst-class:: build \ No newline at end of file
diff --git a/rst-mode/term b/rst-mode/term
new file mode 100644
index 0000000..86624e2
--- /dev/null
+++ b/rst-mode/term
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: term
+# key: term
+# --
+:term:\`$0\` \ No newline at end of file
diff --git a/rst-mode/url b/rst-mode/url
new file mode 100644
index 0000000..ead9d35
--- /dev/null
+++ b/rst-mode/url
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: url
+# key: url
+# --
+.. _${1:description}: $0 \ No newline at end of file
diff --git a/rst-mode/verbatim b/rst-mode/verbatim
new file mode 100644
index 0000000..1d0362c
--- /dev/null
+++ b/rst-mode/verbatim
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: verbatim
+# key: |
+# --
+| $0
+| \ No newline at end of file
diff --git a/rst-mode/warning b/rst-mode/warning
new file mode 100644
index 0000000..8f74b36
--- /dev/null
+++ b/rst-mode/warning
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: warning
+# key: warn
+# --
+.. warning:
+ $0 \ No newline at end of file
diff --git a/ruby-mode/# b/ruby-mode/#
new file mode 100644
index 0000000..33581c8
--- /dev/null
+++ b/ruby-mode/#
@@ -0,0 +1,4 @@
+#name : # =>
+#group : general
+# --
+# => \ No newline at end of file
diff --git a/ruby-mode/=b b/ruby-mode/=b
new file mode 100644
index 0000000..22a013f
--- /dev/null
+++ b/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/ruby-mode/Comp b/ruby-mode/Comp
new file mode 100644
index 0000000..03f2b35
--- /dev/null
+++ b/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/ruby-mode/GLOB b/ruby-mode/GLOB
new file mode 100644
index 0000000..6667254
--- /dev/null
+++ b/ruby-mode/GLOB
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: GLOB
+# key: $
+# --
+$${1:GLOBAL} = $0 \ No newline at end of file
diff --git a/ruby-mode/all b/ruby-mode/all
new file mode 100644
index 0000000..a98a9f4
--- /dev/null
+++ b/ruby-mode/all
@@ -0,0 +1,4 @@
+#name : all? { |...| ... }
+#group : collections
+# --
+all? { |${e}| $0 } \ No newline at end of file
diff --git a/ruby-mode/am b/ruby-mode/am
new file mode 100644
index 0000000..7675a97
--- /dev/null
+++ b/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/ruby-mode/any b/ruby-mode/any
new file mode 100644
index 0000000..d0b6dd2
--- /dev/null
+++ b/ruby-mode/any
@@ -0,0 +1,4 @@
+#name : any? { |...| ... }
+#group : collections
+# --
+any? { |${e}| $0 } \ No newline at end of file
diff --git a/ruby-mode/app b/ruby-mode/app
new file mode 100644
index 0000000..19bf60a
--- /dev/null
+++ b/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/ruby-mode/attribute b/ruby-mode/attribute
new file mode 100644
index 0000000..4e8e37a
--- /dev/null
+++ b/ruby-mode/attribute
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: attribute
+# key: @
+# --
+@${1:attr} = $0 \ No newline at end of file
diff --git a/ruby-mode/bench b/ruby-mode/bench
new file mode 100644
index 0000000..e440919
--- /dev/null
+++ b/ruby-mode/bench
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: bench
+# key: bench
+# --
+require "benchmark"
+
+TESTS = ${1:1_000}
+Benchmark.bmbm do |x|
+ x.report("${2:var}") {}
+end
diff --git a/ruby-mode/bm b/ruby-mode/bm
new file mode 100644
index 0000000..4789f64
--- /dev/null
+++ b/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/ruby-mode/case b/ruby-mode/case
new file mode 100644
index 0000000..40c3529
--- /dev/null
+++ b/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/ruby-mode/cla b/ruby-mode/cla
new file mode 100644
index 0000000..81ccf45
--- /dev/null
+++ b/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/ruby-mode/cls b/ruby-mode/cls
new file mode 100644
index 0000000..ab81ca8
--- /dev/null
+++ b/ruby-mode/cls
@@ -0,0 +1,11 @@
+#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))))))))
+ (replace-regexp-in-string "_" "" fn t t))`}
+ $0
+end
diff --git a/ruby-mode/collect b/ruby-mode/collect
new file mode 100644
index 0000000..934014a
--- /dev/null
+++ b/ruby-mode/collect
@@ -0,0 +1,4 @@
+#name : collect { |...| ... }
+#group : collections
+# --
+collect { |${e}| $0 } \ No newline at end of file
diff --git a/ruby-mode/dee b/ruby-mode/dee
new file mode 100644
index 0000000..56d0a18
--- /dev/null
+++ b/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/ruby-mode/def b/ruby-mode/def
new file mode 100644
index 0000000..875f0ff
--- /dev/null
+++ b/ruby-mode/def
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: def ... end
+# key: def
+# --
+def ${1:method}${2:(${3:args})}
+ $0
+end \ No newline at end of file
diff --git a/ruby-mode/deli b/ruby-mode/deli
new file mode 100644
index 0000000..8476ef9
--- /dev/null
+++ b/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/ruby-mode/det b/ruby-mode/det
new file mode 100644
index 0000000..6a17da9
--- /dev/null
+++ b/ruby-mode/det
@@ -0,0 +1,4 @@
+#name : detect { |...| ... }
+#group : collections
+# --
+detect { |${e}| $0 } \ No newline at end of file
diff --git a/ruby-mode/dow b/ruby-mode/dow
new file mode 100644
index 0000000..3b65271
--- /dev/null
+++ b/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/ruby-mode/ea b/ruby-mode/ea
new file mode 100644
index 0000000..9cdf8dc
--- /dev/null
+++ b/ruby-mode/ea
@@ -0,0 +1,4 @@
+#name : each { |...| ... }
+#group : collections
+# --
+each { |${e}| $0 } \ No newline at end of file
diff --git a/ruby-mode/eac b/ruby-mode/eac
new file mode 100644
index 0000000..f0d9cb1
--- /dev/null
+++ b/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/ruby-mode/eai b/ruby-mode/eai
new file mode 100644
index 0000000..5b0ed67
--- /dev/null
+++ b/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/ruby-mode/eav b/ruby-mode/eav
new file mode 100644
index 0000000..558e5b4
--- /dev/null
+++ b/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/ruby-mode/eawi b/ruby-mode/eawi
new file mode 100644
index 0000000..edf8418
--- /dev/null
+++ b/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/ruby-mode/for b/ruby-mode/for
new file mode 100644
index 0000000..03dd82c
--- /dev/null
+++ b/ruby-mode/for
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: for
+# key: for
+# --
+for ${1:el} in ${2:collection}
+ $0
+end \ No newline at end of file
diff --git a/ruby-mode/forin b/ruby-mode/forin
new file mode 100644
index 0000000..36b4387
--- /dev/null
+++ b/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/ruby-mode/formula b/ruby-mode/formula
new file mode 100644
index 0000000..735b0d1
--- /dev/null
+++ b/ruby-mode/formula
@@ -0,0 +1,16 @@
+# -*- mode: snippet -*-
+# name: formula
+# key: form
+# --
+require 'formula'
+
+class ${1:Name} <Formula
+ url '${2:url}'
+ homepage '${3:home}'
+ md5 '${4:md5}'
+
+ def install
+ ${5:system "./configure"}
+ $0
+ end
+end
diff --git a/ruby-mode/if b/ruby-mode/if
new file mode 100644
index 0000000..077b097
--- /dev/null
+++ b/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/ruby-mode/ife b/ruby-mode/ife
new file mode 100644
index 0000000..e57d395
--- /dev/null
+++ b/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/ruby-mode/init b/ruby-mode/init
new file mode 100644
index 0000000..264f341
--- /dev/null
+++ b/ruby-mode/init
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: init
+# key: init
+# --
+def initialize(${1:args})
+ $0
+end \ No newline at end of file
diff --git a/ruby-mode/inject b/ruby-mode/inject
new file mode 100644
index 0000000..37932e5
--- /dev/null
+++ b/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/ruby-mode/mm b/ruby-mode/mm
new file mode 100644
index 0000000..3f62b10
--- /dev/null
+++ b/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/ruby-mode/r b/ruby-mode/r
new file mode 100644
index 0000000..2e7b797
--- /dev/null
+++ b/ruby-mode/r
@@ -0,0 +1,4 @@
+#name : attr_reader ...
+#group : definitions
+# --
+attr_reader : \ No newline at end of file
diff --git a/ruby-mode/rb b/ruby-mode/rb
new file mode 100644
index 0000000..94b75c0
--- /dev/null
+++ b/ruby-mode/rb
@@ -0,0 +1,4 @@
+#name : /usr/bin/ruby -wU
+#group : general
+# --
+#!/usr/bin/ruby -wU
diff --git a/ruby-mode/reject b/ruby-mode/reject
new file mode 100644
index 0000000..c2501bc
--- /dev/null
+++ b/ruby-mode/reject
@@ -0,0 +1,4 @@
+#name : reject { |...| ... }
+#group : collections
+# --
+reject { |${1:element}| $0 } \ No newline at end of file
diff --git a/ruby-mode/rel b/ruby-mode/rel
new file mode 100644
index 0000000..4063a60
--- /dev/null
+++ b/ruby-mode/rel
@@ -0,0 +1,4 @@
+#name : require_relative
+#group : general
+# --
+require_relative '$0' \ No newline at end of file
diff --git a/ruby-mode/req b/ruby-mode/req
new file mode 100644
index 0000000..a1440cb
--- /dev/null
+++ b/ruby-mode/req
@@ -0,0 +1,4 @@
+#name : require "..."
+#group : general
+# --
+require '$0' \ No newline at end of file
diff --git a/ruby-mode/rw b/ruby-mode/rw
new file mode 100644
index 0000000..a364675
--- /dev/null
+++ b/ruby-mode/rw
@@ -0,0 +1,4 @@
+#name : attr_accessor ...
+#group : definitions
+# --
+attr_accessor : \ No newline at end of file
diff --git a/ruby-mode/select b/ruby-mode/select
new file mode 100644
index 0000000..78bca8f
--- /dev/null
+++ b/ruby-mode/select
@@ -0,0 +1,4 @@
+#name : select { |...| ... }
+#group : collections
+# --
+select { |${1:element}| $0 } \ No newline at end of file
diff --git a/ruby-mode/str b/ruby-mode/str
new file mode 100644
index 0000000..733cef5
--- /dev/null
+++ b/ruby-mode/str
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: str
+# key: s
+# --
+#{$0} \ No newline at end of file
diff --git a/ruby-mode/test class b/ruby-mode/test class
new file mode 100644
index 0000000..1f7fb91
--- /dev/null
+++ b/ruby-mode/test class
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: test class
+# key: tc
+# --
+class TC_${1:Class} < Test::Unit::TestCase
+ $0
+end \ No newline at end of file
diff --git a/ruby-mode/tim b/ruby-mode/tim
new file mode 100644
index 0000000..0da115f
--- /dev/null
+++ b/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/ruby-mode/to_ b/ruby-mode/to_
new file mode 100644
index 0000000..a2f9cde
--- /dev/null
+++ b/ruby-mode/to_
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: to_
+# key: to_
+# --
+def to_s
+ "${1:string}"
+end
+$0 \ No newline at end of file
diff --git a/ruby-mode/tu b/ruby-mode/tu
new file mode 100644
index 0000000..b9244b6
--- /dev/null
+++ b/ruby-mode/tu
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: tu
+# key: tu
+# --
+require 'test/unit' \ No newline at end of file
diff --git a/ruby-mode/until b/ruby-mode/until
new file mode 100644
index 0000000..476966a
--- /dev/null
+++ b/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/ruby-mode/upt b/ruby-mode/upt
new file mode 100644
index 0000000..6fc6810
--- /dev/null
+++ b/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/ruby-mode/w b/ruby-mode/w
new file mode 100644
index 0000000..9edbfcb
--- /dev/null
+++ b/ruby-mode/w
@@ -0,0 +1,4 @@
+#name : attr_writer ...
+#group : definitions
+# --
+attr_writer : \ No newline at end of file
diff --git a/ruby-mode/when b/ruby-mode/when
new file mode 100644
index 0000000..9b06f21
--- /dev/null
+++ b/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/ruby-mode/while b/ruby-mode/while
new file mode 100644
index 0000000..4c9ad35
--- /dev/null
+++ b/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/ruby-mode/y b/ruby-mode/y
new file mode 100644
index 0000000..0ddf0f9
--- /dev/null
+++ b/ruby-mode/y
@@ -0,0 +1,4 @@
+#name : :yields: arguments (rdoc)
+#group : general
+# --
+:yields: $0 \ No newline at end of file
diff --git a/ruby-mode/zip b/ruby-mode/zip
new file mode 100644
index 0000000..56f4266
--- /dev/null
+++ b/ruby-mode/zip
@@ -0,0 +1,4 @@
+#name : zip(...) { |...| ... }
+#group : collections
+# --
+zip(${enums}) { |${row}| $0 } \ No newline at end of file
diff --git a/scala-mode/act b/scala-mode/act
new file mode 100644
index 0000000..931387c
--- /dev/null
+++ b/scala-mode/act
@@ -0,0 +1,12 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : def act = { ..}
+# key: act
+# --
+def act = {
+ loop {
+ react {
+ $0
+ }
+ }
+}
diff --git a/scala-mode/act.arg b/scala-mode/act.arg
new file mode 100644
index 0000000..5a382db
--- /dev/null
+++ b/scala-mode/act.arg
@@ -0,0 +1,12 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : def act(arg: T) = { ..}
+# key: act
+# --
+def act(${1:arg}: ${2:type}) = {
+ loop {
+ react {
+ $0
+ }
+ }
+} \ No newline at end of file
diff --git a/scala-mode/actor b/scala-mode/actor
new file mode 100644
index 0000000..6dd647c
--- /dev/null
+++ b/scala-mode/actor
@@ -0,0 +1,12 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : val a = actor { ..}
+# key: actor
+# --
+val a = actor {
+ loop {
+ react {
+ $0
+ }
+ }
+} \ No newline at end of file
diff --git a/scala-mode/ano b/scala-mode/ano
new file mode 100644
index 0000000..977cb35
--- /dev/null
+++ b/scala-mode/ano
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : (args) => ...
+# key: =>
+# --
+($1) => ${2:body} $0 \ No newline at end of file
diff --git a/scala-mode/app b/scala-mode/app
new file mode 100644
index 0000000..f02b309
--- /dev/null
+++ b/scala-mode/app
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : object name extends App
+# key: app
+# --
+object ${1:name} extends App {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/arr.new b/scala-mode/arr.new
new file mode 100644
index 0000000..20a3f07
--- /dev/null
+++ b/scala-mode/arr.new
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : Array[T](..)
+# key: arr.new
+# --
+Array[${1:value}](${2:args}) $0 \ No newline at end of file
diff --git a/scala-mode/arr.val-new b/scala-mode/arr.val-new
new file mode 100644
index 0000000..73bc1be
--- /dev/null
+++ b/scala-mode/arr.val-new
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : val a = Array[T](..)
+# key: arr.new
+# --
+val ${1:arr} = Array[${2:value}](${3:args}) $0 \ No newline at end of file
diff --git a/scala-mode/asof b/scala-mode/asof
new file mode 100644
index 0000000..c63d143
--- /dev/null
+++ b/scala-mode/asof
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : asInstanceOf[T]
+# key: asof
+# --
+asInstanceOf[${1:type}] $0 \ No newline at end of file
diff --git a/scala-mode/ass b/scala-mode/ass
new file mode 100644
index 0000000..8c6a011
--- /dev/null
+++ b/scala-mode/ass
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : assert(x === y)
+# key: ass
+# --
+assert(${1:x} === ${2:y}) $0 \ No newline at end of file
diff --git a/scala-mode/ass.true b/scala-mode/ass.true
new file mode 100644
index 0000000..b2af602
--- /dev/null
+++ b/scala-mode/ass.true
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : assert(true)
+# key: ass
+# --
+assert(true) $0 \ No newline at end of file
diff --git a/scala-mode/at.author b/scala-mode/at.author
new file mode 100644
index 0000000..476bd80
--- /dev/null
+++ b/scala-mode/at.author
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : @author name
+# key: at.author
+# --
+@author ${1:name} $0 \ No newline at end of file
diff --git a/scala-mode/at.param b/scala-mode/at.param
new file mode 100644
index 0000000..38a22b6
--- /dev/null
+++ b/scala-mode/at.param
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : @param name description
+# key: at
+# --
+@param ${1:name} ${2:description} $0 \ No newline at end of file
diff --git a/scala-mode/at.return b/scala-mode/at.return
new file mode 100644
index 0000000..f8113b8
--- /dev/null
+++ b/scala-mode/at.return
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : @return description
+# key: at
+# --
+@return ${1:description} $0 \ No newline at end of file
diff --git a/scala-mode/at.version b/scala-mode/at.version
new file mode 100644
index 0000000..4bfe358
--- /dev/null
+++ b/scala-mode/at.version
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : @version number
+# key: at
+# --
+@version ${1:0.1} $0 \ No newline at end of file
diff --git a/scala-mode/bang b/scala-mode/bang
new file mode 100644
index 0000000..403f92e
--- /dev/null
+++ b/scala-mode/bang
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : actor ! message
+# key: !
+# --
+${1:actor} ! ${2:message} $0 \ No newline at end of file
diff --git a/scala-mode/case b/scala-mode/case
new file mode 100644
index 0000000..07bb83d
--- /dev/null
+++ b/scala-mode/case
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : case pattern =>
+# key: case
+# --
+case ${1:pattern} => $0 \ No newline at end of file
diff --git a/scala-mode/case.match-all b/scala-mode/case.match-all
new file mode 100644
index 0000000..b3f61a8
--- /dev/null
+++ b/scala-mode/case.match-all
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : case _ =>
+# key: case
+# --
+case _ => $0 \ No newline at end of file
diff --git a/scala-mode/cast b/scala-mode/cast
new file mode 100644
index 0000000..0d9f957
--- /dev/null
+++ b/scala-mode/cast
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : asInstanceOf[T]
+# key: cast
+# --
+asInstanceOf[${1:type}] $0 \ No newline at end of file
diff --git a/scala-mode/cc b/scala-mode/cc
new file mode 100644
index 0000000..b7e0457
--- /dev/null
+++ b/scala-mode/cc
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : case class T(arg: A)
+# key: cc
+# --
+case class ${1:name}(${2:arg}: ${3:type}) $0 \ No newline at end of file
diff --git a/scala-mode/cl b/scala-mode/cl
new file mode 100644
index 0000000..6ef5f41
--- /dev/null
+++ b/scala-mode/cl
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : class T { .. }
+# key: cl
+# --
+class ${1:name} {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/cl.abs b/scala-mode/cl.abs
new file mode 100644
index 0000000..6865f31
--- /dev/null
+++ b/scala-mode/cl.abs
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : abstract class T { .. }
+# key: cl
+# --
+abstract class ${1:name} {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/cl.abs-arg b/scala-mode/cl.abs-arg
new file mode 100644
index 0000000..3c71147
--- /dev/null
+++ b/scala-mode/cl.abs-arg
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : abstract class T(args) { .. }
+# key: cl
+# --
+abstract class ${1:name}(${2:args}) {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/cl.arg b/scala-mode/cl.arg
new file mode 100644
index 0000000..e5432c7
--- /dev/null
+++ b/scala-mode/cl.arg
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : class T(args) { .. }
+# key: cl
+# --
+class ${1:name}(${2:args}) {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/clof b/scala-mode/clof
new file mode 100644
index 0000000..4335b0f
--- /dev/null
+++ b/scala-mode/clof
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : classOf[T]
+# key: clof
+# --
+classOf[${1:type}] $0 \ No newline at end of file
diff --git a/scala-mode/co b/scala-mode/co
new file mode 100644
index 0000000..7c3d371
--- /dev/null
+++ b/scala-mode/co
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : case object T
+# key: co
+# --
+case object ${1:name} $0 \ No newline at end of file
diff --git a/scala-mode/cons b/scala-mode/cons
new file mode 100644
index 0000000..bb2b26c
--- /dev/null
+++ b/scala-mode/cons
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : element1 :: element2
+# key: cons
+# --
+${1:element1} :: ${2:element2} $0 \ No newline at end of file
diff --git a/scala-mode/cons.nil b/scala-mode/cons.nil
new file mode 100644
index 0000000..719b4c9
--- /dev/null
+++ b/scala-mode/cons.nil
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : element1 :: Nil
+# key: cons
+# --
+${1:element1} :: Nil $0
diff --git a/scala-mode/def.arg b/scala-mode/def.arg
new file mode 100644
index 0000000..9db761a
--- /dev/null
+++ b/scala-mode/def.arg
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : def f(arg: T) = ...
+# key: def
+# --
+def ${1:name}(${2:args}) = $0 \ No newline at end of file
diff --git a/scala-mode/def.arg-body b/scala-mode/def.arg-body
new file mode 100644
index 0000000..189a05e
--- /dev/null
+++ b/scala-mode/def.arg-body
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : def f(arg: T) = {...}
+# key: def
+# --
+def ${1:name}(${2:args}) = {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/def.arg-ret b/scala-mode/def.arg-ret
new file mode 100644
index 0000000..8f26674
--- /dev/null
+++ b/scala-mode/def.arg-ret
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : def f(arg: T): R = ...
+# key: def
+# --
+def ${1:name}(${2:args}): ${3:Unit} = $0 \ No newline at end of file
diff --git a/scala-mode/def.arg-ret-body b/scala-mode/def.arg-ret-body
new file mode 100644
index 0000000..22a8ee9
--- /dev/null
+++ b/scala-mode/def.arg-ret-body
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : def f(arg: T): R = {...}
+# key: def
+# --
+def ${1:name}(${2:args}): ${3:Unit} = {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/def.body b/scala-mode/def.body
new file mode 100644
index 0000000..1ee0c83
--- /dev/null
+++ b/scala-mode/def.body
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : def f = {...}
+# key: def
+# --
+def ${1:name} = {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/def.ret b/scala-mode/def.ret
new file mode 100644
index 0000000..8e261bf
--- /dev/null
+++ b/scala-mode/def.ret
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : def f: R = ...
+# key: def
+# --
+def ${1:name}: ${2:Unit} = $0 \ No newline at end of file
diff --git a/scala-mode/def.ret-body b/scala-mode/def.ret-body
new file mode 100644
index 0000000..de45cc4
--- /dev/null
+++ b/scala-mode/def.ret-body
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : def f: R = {...}
+# key: def
+# --
+def ${1:name}: ${3:Unit} = {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/def.simple b/scala-mode/def.simple
new file mode 100644
index 0000000..db37cea
--- /dev/null
+++ b/scala-mode/def.simple
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : def f = ...
+# key: def
+# --
+def ${1:name} = $0 \ No newline at end of file
diff --git a/scala-mode/doc.class b/scala-mode/doc.class
new file mode 100644
index 0000000..3c3a26e
--- /dev/null
+++ b/scala-mode/doc.class
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : /** cls/trt/obj name */
+# key: doc
+# --
+/**
+ * `(scala-mode-find-clstrtobj-name-doc)`
+ * ${1:description}
+ * $0
+ */ \ No newline at end of file
diff --git a/scala-mode/doc.def b/scala-mode/doc.def
new file mode 100644
index 0000000..072cf5e
--- /dev/null
+++ b/scala-mode/doc.def
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : /** method name */
+# key: doc
+# --
+/**
+ * `(scala-mode-def-and-args-doc)`
+ */ \ No newline at end of file
diff --git a/scala-mode/doc.file b/scala-mode/doc.file
new file mode 100644
index 0000000..5d3f101
--- /dev/null
+++ b/scala-mode/doc.file
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : /** file name */
+# key: doc.file
+# --
+/**
+ * `(scala-mode-file-doc)`
+ * $0
+ * @author ${1:name}
+ * @version ${2:0.1}
+ */ \ No newline at end of file
diff --git a/scala-mode/doc.file-scala b/scala-mode/doc.file-scala
new file mode 100644
index 0000000..7814b26
--- /dev/null
+++ b/scala-mode/doc.file-scala
@@ -0,0 +1,18 @@
+# -*- mode: snippet -*-
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : /** scala file */
+# key: doc.file-scala
+# --
+/* __ *\
+** ________ ___ / / ___ 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/scala-mode/doc.file-scala-api b/scala-mode/doc.file-scala-api
new file mode 100644
index 0000000..67bf231
--- /dev/null
+++ b/scala-mode/doc.file-scala-api
@@ -0,0 +1,18 @@
+# -*- mode: snippet -*-
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : /** scala api file */
+# key: doc.file-scala-api
+# --
+/* __ *\
+** ________ ___ / / ___ 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/scala-mode/doc.scaladoc b/scala-mode/doc.scaladoc
new file mode 100644
index 0000000..2cd2903
--- /dev/null
+++ b/scala-mode/doc.scaladoc
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : /** ... */
+# key: doc.scaladoc
+# --
+/**
+ * ${1:description}
+ * $0
+ */ \ No newline at end of file
diff --git a/scala-mode/expect b/scala-mode/expect
new file mode 100644
index 0000000..3240a47
--- /dev/null
+++ b/scala-mode/expect
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : expect(value) { ..}
+# key: expect
+# --
+expect(${1:reply}) {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/ext b/scala-mode/ext
new file mode 100644
index 0000000..1887169
--- /dev/null
+++ b/scala-mode/ext
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : extends T
+# key: ext
+# --
+extends $0 \ No newline at end of file
diff --git a/scala-mode/for.extract b/scala-mode/for.extract
new file mode 100644
index 0000000..fac0447
--- /dev/null
+++ b/scala-mode/for.extract
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : x <- xs
+# key: for.extract
+# --
+${1:x} <- ${2:xs} \ No newline at end of file
diff --git a/scala-mode/for.if b/scala-mode/for.if
new file mode 100644
index 0000000..15e4b7a
--- /dev/null
+++ b/scala-mode/for.if
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : for (x <- xs if guard) { ... }
+# key: for
+# --
+for (${1:x} <- ${2:xs} if ${3:guard}) {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/for.loop b/scala-mode/for.loop
new file mode 100644
index 0000000..8dff38f
--- /dev/null
+++ b/scala-mode/for.loop
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : for (x <- xs) { ... }
+# key: for
+# --
+for (${1:x} <- ${2:xs}) {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/for.multi b/scala-mode/for.multi
new file mode 100644
index 0000000..26cac86
--- /dev/null
+++ b/scala-mode/for.multi
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : for {x <- xs \ y <- ys} { yield }
+# key: for
+# --
+for {
+ ${1:x} <- ${2:xs}
+ ${3:x} <- ${4:xs}
+} {
+ yield $0
+} \ No newline at end of file
diff --git a/scala-mode/foreach b/scala-mode/foreach
new file mode 100644
index 0000000..0b7946f
--- /dev/null
+++ b/scala-mode/foreach
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : foreach(x => ..)
+# key: foreach
+# --
+foreach(${1:x} => ${2:body}) $0 \ No newline at end of file
diff --git a/scala-mode/hmap.new b/scala-mode/hmap.new
new file mode 100644
index 0000000..3311255
--- /dev/null
+++ b/scala-mode/hmap.new
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : new HashMap[K, V]
+# key: hmap.new
+# --
+new HashMap[${1:key}, ${2:value}] $0 \ No newline at end of file
diff --git a/scala-mode/hmap.val-new b/scala-mode/hmap.val-new
new file mode 100644
index 0000000..35544c6
--- /dev/null
+++ b/scala-mode/hmap.val-new
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : val m = new HashMap[K, V]
+# key: hmap.val-new
+# --
+val ${1:m} = new HashMap[${2:key}, ${3:value}] $0 \ No newline at end of file
diff --git a/scala-mode/hset.new b/scala-mode/hset.new
new file mode 100644
index 0000000..249742f
--- /dev/null
+++ b/scala-mode/hset.new
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : new HashSet[K]
+# key: hset.new
+# --
+new HashSet[${1:key}] $0
diff --git a/scala-mode/hset.val-new b/scala-mode/hset.val-new
new file mode 100644
index 0000000..98ae6e3
--- /dev/null
+++ b/scala-mode/hset.val-new
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : val m = new HashSet[K]
+# key: hset.val-new
+# --
+val ${1:m} = new HashSet[${2:key}] $0 \ No newline at end of file
diff --git a/scala-mode/if b/scala-mode/if
new file mode 100644
index 0000000..28ff792
--- /dev/null
+++ b/scala-mode/if
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : if (cond) { .. }
+# key: if
+# --
+if (${1:condition}) {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/if.else b/scala-mode/if.else
new file mode 100644
index 0000000..e3c0bb3
--- /dev/null
+++ b/scala-mode/if.else
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : if (cond) { .. } else { .. }
+# key: if
+# --
+if (${1:condition}) {
+ $2
+} else {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/imp b/scala-mode/imp
new file mode 100644
index 0000000..ff679b8
--- /dev/null
+++ b/scala-mode/imp
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : import ..
+# key: imp
+# --
+import $0 \ No newline at end of file
diff --git a/scala-mode/intercept b/scala-mode/intercept
new file mode 100644
index 0000000..1ac150e
--- /dev/null
+++ b/scala-mode/intercept
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : intercept(classOf[T]) { ..}
+# key: intercept
+# --
+intercept(classOf[${1:Exception]}) {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/isof b/scala-mode/isof
new file mode 100644
index 0000000..43aef58
--- /dev/null
+++ b/scala-mode/isof
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : isInstanceOf[T]
+# key: isof
+# --
+isInstanceOf[${1:type}] $0 \ No newline at end of file
diff --git a/scala-mode/ls.new b/scala-mode/ls.new
new file mode 100644
index 0000000..3e1fb51
--- /dev/null
+++ b/scala-mode/ls.new
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : List(..)
+# key: ls
+# --
+List(${1:args}, ${2:args}) $0 \ No newline at end of file
diff --git a/scala-mode/ls.val-new b/scala-mode/ls.val-new
new file mode 100644
index 0000000..d24109f
--- /dev/null
+++ b/scala-mode/ls.val-new
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : val l = List(..)
+# key: ls
+# --
+val ${1:l} = List(${2:args}, ${3:args}) $0 \ No newline at end of file
diff --git a/scala-mode/main b/scala-mode/main
new file mode 100644
index 0000000..4befc32
--- /dev/null
+++ b/scala-mode/main
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name: def main(args: Array[String]) = { ... }
+# key: main
+# --
+def main(args: Array[String]) = {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/map b/scala-mode/map
new file mode 100644
index 0000000..546f162
--- /dev/null
+++ b/scala-mode/map
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : map(x => ..)
+# key: map
+# --
+map(${1:x} => ${2:body}) $0 \ No newline at end of file
diff --git a/scala-mode/map.new b/scala-mode/map.new
new file mode 100644
index 0000000..cc3d43f
--- /dev/null
+++ b/scala-mode/map.new
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : Map(key -> value)
+# key: map
+# --
+Map(${1:key} -> ${2:value}) $0 \ No newline at end of file
diff --git a/scala-mode/match b/scala-mode/match
new file mode 100644
index 0000000..8aadeea
--- /dev/null
+++ b/scala-mode/match
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : cc match { .. }
+# key: match
+# --
+${1:cc} match {
+ case ${2:pattern} => $0
+} \ No newline at end of file
diff --git a/scala-mode/match.can b/scala-mode/match.can
new file mode 100644
index 0000000..aa4f9f5
--- /dev/null
+++ b/scala-mode/match.can
@@ -0,0 +1,13 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : can match { case Full(res) => .. }
+# key: match
+# --
+${1:option} match {
+ case Full(res) => $0
+
+ case Empty =>
+
+ case Failure(msg, _, _) =>
+
+} \ No newline at end of file
diff --git a/scala-mode/match.option b/scala-mode/match.option
new file mode 100644
index 0000000..134bc53
--- /dev/null
+++ b/scala-mode/match.option
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : option match { case None => .. }
+# key: match
+# --
+${1:option} match {
+ case None => $0
+ case Some(res) =>
+
+} \ No newline at end of file
diff --git a/scala-mode/mix b/scala-mode/mix
new file mode 100644
index 0000000..d61eb51
--- /dev/null
+++ b/scala-mode/mix
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : trait T { .. }
+# key: mix
+# --
+trait ${1:name} {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/ob b/scala-mode/ob
new file mode 100644
index 0000000..1890550
--- /dev/null
+++ b/scala-mode/ob
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : object name extends T
+# key: ob
+# --
+object ${1:name} extends ${2:type} $0 \ No newline at end of file
diff --git a/scala-mode/pac b/scala-mode/pac
new file mode 100644
index 0000000..b36509c
--- /dev/null
+++ b/scala-mode/pac
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : package ..
+# key: pac
+# --
+package $0 \ No newline at end of file
diff --git a/scala-mode/pr.newline b/scala-mode/pr.newline
new file mode 100644
index 0000000..5f805fc
--- /dev/null
+++ b/scala-mode/pr.newline
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : println(..)
+# key: pr.newline
+# --
+println(${1:obj}) $0 \ No newline at end of file
diff --git a/scala-mode/pr.simple b/scala-mode/pr.simple
new file mode 100644
index 0000000..c676790
--- /dev/null
+++ b/scala-mode/pr.simple
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : print(..)
+# key: pr
+# --
+print(${1:obj}) $0 \ No newline at end of file
diff --git a/scala-mode/pr.string b/scala-mode/pr.string
new file mode 100644
index 0000000..ded8178
--- /dev/null
+++ b/scala-mode/pr.string
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : println("..")
+# key: pr
+# --
+println("${1:msg}") $0 \ No newline at end of file
diff --git a/scala-mode/pr.trace b/scala-mode/pr.trace
new file mode 100644
index 0000000..9ec9e79
--- /dev/null
+++ b/scala-mode/pr.trace
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : println("obj: " + obj)
+# key: pr
+# --
+println("${1:obj}: " + ${1:obj}) $0 \ No newline at end of file
diff --git a/scala-mode/pri b/scala-mode/pri
new file mode 100644
index 0000000..42a2561
--- /dev/null
+++ b/scala-mode/pri
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : private
+# key: pri
+# --
+private $0 \ No newline at end of file
diff --git a/scala-mode/pri.param b/scala-mode/pri.param
new file mode 100644
index 0000000..b887cad
--- /dev/null
+++ b/scala-mode/pri.param
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : private[this]
+# key: pri.param
+# --
+private[${1:this}] $0 \ No newline at end of file
diff --git a/scala-mode/pro b/scala-mode/pro
new file mode 100644
index 0000000..ca7009c
--- /dev/null
+++ b/scala-mode/pro
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : protected
+# key: pro
+# --
+protected $0 \ No newline at end of file
diff --git a/scala-mode/pro.param b/scala-mode/pro.param
new file mode 100644
index 0000000..c399064
--- /dev/null
+++ b/scala-mode/pro.param
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : protected[this]
+# key: prno
+# --
+protected[${1:this}] $0 \ No newline at end of file
diff --git a/scala-mode/suite b/scala-mode/suite
new file mode 100644
index 0000000..8cad2c4
--- /dev/null
+++ b/scala-mode/suite
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : class T extends Suite { .. }
+# key: suite
+# --
+import org.scalatest._
+
+class ${1:name} extends Suite {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/test b/scala-mode/test
new file mode 100644
index 0000000..a8a3f00
--- /dev/null
+++ b/scala-mode/test
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : @Test def testX = ...
+# key: test
+# --
+//@Test
+def test${1:name} = {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/throw b/scala-mode/throw
new file mode 100644
index 0000000..02ad549
--- /dev/null
+++ b/scala-mode/throw
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : throw new Exception
+# key: throw
+# --
+throw new ${1:Exception}(${2:msg}) $0 \ No newline at end of file
diff --git a/scala-mode/tr b/scala-mode/tr
new file mode 100644
index 0000000..10c5cf3
--- /dev/null
+++ b/scala-mode/tr
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : trait T { .. }
+# key: tr
+# --
+trait ${1:name} {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/tr.ext b/scala-mode/tr.ext
new file mode 100644
index 0000000..684af94
--- /dev/null
+++ b/scala-mode/tr.ext
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : trait T extends C { .. }
+# key: tr
+# --
+trait ${1:name} extends ${2:class} {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/tr.ext-with b/scala-mode/tr.ext-with
new file mode 100644
index 0000000..99b75ee
--- /dev/null
+++ b/scala-mode/tr.ext-with
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : trait T1 extends C with T2 { .. }
+# key: tr
+# --
+trait ${1:name} extends ${2:class} with ${3:trait} {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/tr.with b/scala-mode/tr.with
new file mode 100644
index 0000000..c513c6d
--- /dev/null
+++ b/scala-mode/tr.with
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
+#name : trait T1 with T2 { .. }
+# key: tr.with
+# --
+trait ${1:name} with ${2:trait} {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/try b/scala-mode/try
new file mode 100644
index 0000000..b218af1
--- /dev/null
+++ b/scala-mode/try
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : try { .. } catch { case e => ..}
+# key: try
+# --
+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/scala-mode/try.catch-finally b/scala-mode/try.catch-finally
new file mode 100644
index 0000000..dc23e69
--- /dev/null
+++ b/scala-mode/try.catch-finally
@@ -0,0 +1,13 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : try { .. } catch { case e => ..} finally { ..}
+# key: try
+# --
+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/scala-mode/try.finally b/scala-mode/try.finally
new file mode 100644
index 0000000..f61f37b
--- /dev/null
+++ b/scala-mode/try.finally
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : try { .. } finally { .. }
+# key: try
+# --
+try {
+
+} finally {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/tup.arrow b/scala-mode/tup.arrow
new file mode 100644
index 0000000..8eded66
--- /dev/null
+++ b/scala-mode/tup.arrow
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : element1 -> element2
+# key: tup.arrow
+# --
+${1:element1} -> ${2:element2} $0 \ No newline at end of file
diff --git a/scala-mode/tup.paren b/scala-mode/tup.paren
new file mode 100644
index 0000000..f56801d
--- /dev/null
+++ b/scala-mode/tup.paren
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : (element1, element2)
+# key: tup.paren
+# --
+(${1:element1}, ${2:element2}) $0 \ No newline at end of file
diff --git a/scala-mode/val b/scala-mode/val
new file mode 100644
index 0000000..e8e43f8
--- /dev/null
+++ b/scala-mode/val
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : val name = ..
+# key: val
+# --
+val ${1:name} = ${2:obj} $0 \ No newline at end of file
diff --git a/scala-mode/val.new b/scala-mode/val.new
new file mode 100644
index 0000000..e419690
--- /dev/null
+++ b/scala-mode/val.new
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : val name = new ..
+# key: val
+# --
+val ${1:name} = new ${2:obj} $0 \ No newline at end of file
diff --git a/scala-mode/val.ret b/scala-mode/val.ret
new file mode 100644
index 0000000..f8d8788
--- /dev/null
+++ b/scala-mode/val.ret
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : val name: T = ..
+# key: val
+# --
+val ${1:name}: ${2:T} = ${3:obj} $0
diff --git a/scala-mode/var b/scala-mode/var
new file mode 100644
index 0000000..5d78444
--- /dev/null
+++ b/scala-mode/var
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : var name = ..
+# key: var
+# --
+var ${1:name} = ${2:obj} $0
diff --git a/scala-mode/var.new b/scala-mode/var.new
new file mode 100644
index 0000000..c22a15c
--- /dev/null
+++ b/scala-mode/var.new
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : var name = new ..
+# key: var.new
+# --
+var ${1:name} = new ${2:obj} $0
diff --git a/scala-mode/var.ret b/scala-mode/var.ret
new file mode 100644
index 0000000..af5f860
--- /dev/null
+++ b/scala-mode/var.ret
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : var name: T = ..
+# key: var.ret
+# --
+var ${1:name}: ${2:T} = ${3:obj} $0
diff --git a/scala-mode/whi b/scala-mode/whi
new file mode 100644
index 0000000..141efa1
--- /dev/null
+++ b/scala-mode/whi
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : while(cond) { .. }
+# key: whi
+# --
+while (${1:condition}) {
+ $0
+} \ No newline at end of file
diff --git a/scala-mode/with b/scala-mode/with
new file mode 100644
index 0000000..19f5dea
--- /dev/null
+++ b/scala-mode/with
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : with T
+# key: with
+# --
+with $0 \ No newline at end of file
diff --git a/sh-mode/args b/sh-mode/args
new file mode 100644
index 0000000..09fe3a0
--- /dev/null
+++ b/sh-mode/args
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name:args
+# key: args
+# --
+if [ $# -lt ${1:2} ]
+ then $0
+fi \ No newline at end of file
diff --git a/sh-mode/bang b/sh-mode/bang
new file mode 100644
index 0000000..5e11f0e
--- /dev/null
+++ b/sh-mode/bang
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: bang
+# key: !
+# --
+#!/usr/bin/env bash
+$0 \ No newline at end of file
diff --git a/sh-mode/for loop b/sh-mode/for loop
new file mode 100644
index 0000000..438706b
--- /dev/null
+++ b/sh-mode/for loop
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: for loop
+# key: for
+# --
+for ${1:var} in ${2:stuff}; do
+ $0
+done \ No newline at end of file
diff --git a/sh-mode/function b/sh-mode/function
new file mode 100644
index 0000000..c0f670a
--- /dev/null
+++ b/sh-mode/function
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: function
+# key: f
+# --
+function ${1:name} {
+ $0
+} \ No newline at end of file
diff --git a/sh-mode/if b/sh-mode/if
new file mode 100644
index 0000000..2dc537d
--- /dev/null
+++ b/sh-mode/if
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: if
+# key: if
+# --
+if ${1:[ -f file]}
+ then ${2:do}
+fi
+$0 \ No newline at end of file
diff --git a/sh-mode/ife b/sh-mode/ife
new file mode 100644
index 0000000..f046a3e
--- /dev/null
+++ b/sh-mode/ife
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: ife
+# key: ife
+# --
+if ${1:cond}
+then ${2:stuff}
+else ${3:other}
+fi
+$0 \ No newline at end of file
diff --git a/snippet-mode/cont b/snippet-mode/cont
new file mode 100644
index 0000000..3783d54
--- /dev/null
+++ b/snippet-mode/cont
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: cont
+# key: cont
+# --
+# contributor: `user-full-name` \ No newline at end of file
diff --git a/snippet-mode/elisp b/snippet-mode/elisp
new file mode 100644
index 0000000..768e94d
--- /dev/null
+++ b/snippet-mode/elisp
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: elisp
+# key: `
+# --
+\`$0\` \ No newline at end of file
diff --git a/snippet-mode/field b/snippet-mode/field
new file mode 100644
index 0000000..12ff0e0
--- /dev/null
+++ b/snippet-mode/field
@@ -0,0 +1,6 @@
+# name : ${ ... } field
+# contributor : joaotavora
+# key : $f
+# key: field
+# --
+\${${1:${2:n}:}$3${4:\$(${5:lisp-fn})}\}$0 \ No newline at end of file
diff --git a/snippet-mode/group b/snippet-mode/group
new file mode 100644
index 0000000..3ae8fd2
--- /dev/null
+++ b/snippet-mode/group
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: group
+# key: group
+# --
+# group : ${1:group} \ No newline at end of file
diff --git a/snippet-mode/mirror b/snippet-mode/mirror
new file mode 100644
index 0000000..2a45042
--- /dev/null
+++ b/snippet-mode/mirror
@@ -0,0 +1,6 @@
+# name : ${n:$(...)} mirror
+# key : $m
+# contributor : joaotavora
+# key: mirror
+# --
+\${${2:n}:${4:\$(${5:reflection-fn})}\}$0 \ No newline at end of file
diff --git a/snippet-mode/vars b/snippet-mode/vars
new file mode 100644
index 0000000..ec4e4b6
--- /dev/null
+++ b/snippet-mode/vars
@@ -0,0 +1,13 @@
+# -*- mode: snippet -*-
+# name : Snippet header
+# contributor : joaotavora
+# key: vars
+# --
+# name : $1${2:
+# key : ${3:trigger-key}}${4:
+# keybinding : ${5:keybinding}}${6:
+# expand-env : (${7:})}
+# contributor : $6
+# key: vars
+# --
+$0 \ No newline at end of file
diff --git a/sql-mode/column b/sql-mode/column
new file mode 100644
index 0000000..90e4963
--- /dev/null
+++ b/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/sql-mode/constraint b/sql-mode/constraint
new file mode 100644
index 0000000..989e508
--- /dev/null
+++ b/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/sql-mode/constraint.1 b/sql-mode/constraint.1
new file mode 100644
index 0000000..98d89f0
--- /dev/null
+++ b/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/sql-mode/create b/sql-mode/create
new file mode 100644
index 0000000..a34624d
--- /dev/null
+++ b/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/sql-mode/create.1 b/sql-mode/create.1
new file mode 100644
index 0000000..1323daf
--- /dev/null
+++ b/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/sql-mode/references b/sql-mode/references
new file mode 100644
index 0000000..f2e4eab
--- /dev/null
+++ b/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/text-mode/.yas-parents b/text-mode/.yas-parents
new file mode 100644
index 0000000..c3ca481
--- /dev/null
+++ b/text-mode/.yas-parents
@@ -0,0 +1 @@
+fundamental-mode
diff --git a/tuareg-mode/assert b/tuareg-mode/assert
new file mode 100644
index 0000000..574f865
--- /dev/null
+++ b/tuareg-mode/assert
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: assert
+# key: as
+# --
+assert $0;; \ No newline at end of file
diff --git a/tuareg-mode/docstring b/tuareg-mode/docstring
new file mode 100644
index 0000000..6738353
--- /dev/null
+++ b/tuareg-mode/docstring
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: docstring
+# key: d
+# --
+(* $0 *) \ No newline at end of file
diff --git a/tuareg-mode/for b/tuareg-mode/for
new file mode 100644
index 0000000..f21b345
--- /dev/null
+++ b/tuareg-mode/for
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: for
+# key: for
+# --
+for ${1:cond} do
+ $0
+done \ No newline at end of file
diff --git a/tuareg-mode/fun b/tuareg-mode/fun
new file mode 100644
index 0000000..7579a3c
--- /dev/null
+++ b/tuareg-mode/fun
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: fun
+# key: fun
+# --
+fun ${1:args} -> $0 \ No newline at end of file
diff --git a/tuareg-mode/guard b/tuareg-mode/guard
new file mode 100644
index 0000000..13d43fc
--- /dev/null
+++ b/tuareg-mode/guard
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: guard
+# key: |
+# --
+| ${1:match} -> $0 \ No newline at end of file
diff --git a/tuareg-mode/ifthen b/tuareg-mode/ifthen
new file mode 100644
index 0000000..dfb1907
--- /dev/null
+++ b/tuareg-mode/ifthen
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: ifthen
+# key: if
+# --
+if ${1:cond} then
+ $0
diff --git a/tuareg-mode/ifthenelse b/tuareg-mode/ifthenelse
new file mode 100644
index 0000000..86d409f
--- /dev/null
+++ b/tuareg-mode/ifthenelse
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: ifthenelse
+# key: if
+# --
+if ${1:cond} then
+ $2
+else
+ $0 \ No newline at end of file
diff --git a/tuareg-mode/let b/tuareg-mode/let
new file mode 100644
index 0000000..1a0162e
--- /dev/null
+++ b/tuareg-mode/let
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: let
+# key: let
+# --
+let ${1:var} $0 \ No newline at end of file
diff --git a/tuareg-mode/list_comprehension b/tuareg-mode/list_comprehension
new file mode 100644
index 0000000..86d4a53
--- /dev/null
+++ b/tuareg-mode/list_comprehension
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: list_comprehension
+# key: l
+# --
+[? $1 | $0 ?] \ No newline at end of file
diff --git a/tuareg-mode/main b/tuareg-mode/main
new file mode 100644
index 0000000..3351548
--- /dev/null
+++ b/tuareg-mode/main
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: main
+# key: m
+# --
+let main =
+ $0 \ No newline at end of file
diff --git a/tuareg-mode/match b/tuareg-mode/match
new file mode 100644
index 0000000..18d4caa
--- /dev/null
+++ b/tuareg-mode/match
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: match
+# key: match
+# --
+match ${1:to_match} with
+ | ${2:matching} -> $0 \ No newline at end of file
diff --git a/tuareg-mode/module b/tuareg-mode/module
new file mode 100644
index 0000000..7e14d14
--- /dev/null
+++ b/tuareg-mode/module
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: module
+# key: mod
+# --
+module ${1:A} =
+ struct
+ ${2:type t = { name : string; phone : string }}
+ $0
+end;;
diff --git a/tuareg-mode/open b/tuareg-mode/open
new file mode 100644
index 0000000..cfc71f4
--- /dev/null
+++ b/tuareg-mode/open
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: open
+# key: op
+# --
+open ${1:Module} \ No newline at end of file
diff --git a/tuareg-mode/printf b/tuareg-mode/printf
new file mode 100644
index 0000000..71a9a59
--- /dev/null
+++ b/tuareg-mode/printf
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: printf
+# key: pr
+# --
+Printf.printf "${1:string}" ${2:vals};; \ No newline at end of file
diff --git a/tuareg-mode/rec b/tuareg-mode/rec
new file mode 100644
index 0000000..e901eb4
--- /dev/null
+++ b/tuareg-mode/rec
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: rec
+# key: rec
+# --
+let rec ${1:fun} ${2:args} =
+ $0 \ No newline at end of file
diff --git a/tuareg-mode/try b/tuareg-mode/try
new file mode 100644
index 0000000..9c7faed
--- /dev/null
+++ b/tuareg-mode/try
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: try
+# key: try
+# --
+try
+ $0
+with
+ $1 \ No newline at end of file
diff --git a/tuareg-mode/type b/tuareg-mode/type
new file mode 100644
index 0000000..a81b0e1
--- /dev/null
+++ b/tuareg-mode/type
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: type_record
+# key: type
+# --
+type ${1:name} = {${2:var}: ${3:int}$0} \ No newline at end of file
diff --git a/tuareg-mode/type_type b/tuareg-mode/type_type
new file mode 100644
index 0000000..c5b4ac9
--- /dev/null
+++ b/tuareg-mode/type_type
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: type_type
+# key: type
+# --
+type ${1:expr} =
+ | $0 \ No newline at end of file
diff --git a/tuareg-mode/val b/tuareg-mode/val
new file mode 100644
index 0000000..6a565ac
--- /dev/null
+++ b/tuareg-mode/val
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: val
+# key: val
+# --
+val ${1:fun} : $0 \ No newline at end of file
diff --git a/tuareg-mode/while b/tuareg-mode/while
new file mode 100644
index 0000000..e4b1f07
--- /dev/null
+++ b/tuareg-mode/while
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: while
+# key: wh
+# --
+while ${1:cond} do
+ $0
+done \ No newline at end of file
diff --git a/typerex-mode b/typerex-mode
new file mode 120000
index 0000000..e5de65a
--- /dev/null
+++ b/typerex-mode
@@ -0,0 +1 @@
+tuareg-mode \ No newline at end of file
diff --git a/udev-mode/ENV b/udev-mode/ENV
new file mode 100644
index 0000000..e25b271
--- /dev/null
+++ b/udev-mode/ENV
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: ENV
+# key: env
+# --
+ENV{$1}$0 \ No newline at end of file
diff --git a/udev-mode/GOTO b/udev-mode/GOTO
new file mode 100644
index 0000000..2200b5d
--- /dev/null
+++ b/udev-mode/GOTO
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: GOTO
+# key: goto
+# --
+GOTO="$1"
+$0
+
+LABEL="$1" \ No newline at end of file
diff --git a/udev-mode/KERNEL b/udev-mode/KERNEL
new file mode 100644
index 0000000..c27d937
--- /dev/null
+++ b/udev-mode/KERNEL
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: KERNEL
+# key: ker
+# --
+KERNEL!="$0" \ No newline at end of file
diff --git a/udev-mode/add b/udev-mode/add
new file mode 100644
index 0000000..8cbd63b
--- /dev/null
+++ b/udev-mode/add
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: add
+# key: add
+# --
+ACTION=="add", $0 \ No newline at end of file
diff --git a/udev-mode/env$ b/udev-mode/env$
new file mode 100644
index 0000000..7c743b1
--- /dev/null
+++ b/udev-mode/env$
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: env$
+# key: $
+# --
+$env{$1} $0 \ No newline at end of file
diff --git a/udev-mode/run b/udev-mode/run
new file mode 100644
index 0000000..cc0bb7b
--- /dev/null
+++ b/udev-mode/run
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: run
+# key: run
+# --
+RUN+="$0" \ No newline at end of file
diff --git a/yaml-mode/entry b/yaml-mode/entry
new file mode 100644
index 0000000..f9cfbe7
--- /dev/null
+++ b/yaml-mode/entry
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: entry
+# key: entry
+# --
+${1:entry}: ${2:value}
+$0 \ No newline at end of file
diff --git a/yaml-mode/list b/yaml-mode/list
new file mode 100644
index 0000000..89d97eb
--- /dev/null
+++ b/yaml-mode/list
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: list
+# key: list
+# --
+[$1]
+$0 \ No newline at end of file
diff --git a/yaml-mode/section b/yaml-mode/section
new file mode 100644
index 0000000..5e8782d
--- /dev/null
+++ b/yaml-mode/section
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: section
+# key: --
+# --
+--- # ${1:section}
+$0 \ No newline at end of file