diff options
Diffstat (limited to '')
489 files changed, 2486 insertions, 0 deletions
diff --git a/emacs.d/lisp/yasnippet/snippets/c++-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/c++-mode/.yas-parents new file mode 100644 index 0000000..ce9828b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/c++-mode/.yas-parents @@ -0,0 +1 @@ +cc-mode diff --git a/emacs.d/lisp/yasnippet/snippets/c++-mode/beginend b/emacs.d/lisp/yasnippet/snippets/c++-mode/beginend new file mode 100644 index 0000000..68303e2 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/c++-mode/beginend @@ -0,0 +1,3 @@ +#name : v.begin(), v.end() +# -- +${1:v}.begin(), $1.end
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/c++-mode/class b/emacs.d/lisp/yasnippet/snippets/c++-mode/class new file mode 100644 index 0000000..820fc6c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/c++-mode/class @@ -0,0 +1,8 @@ +#name : class ... { ... } +# -- +class ${1:Name} +{ +public: + ${1:$(yas/substr text "[^: ]*")}($2); + virtual ~${1:$(yas/substr text "[^: ]*")}(); +};
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/c++-mode/ns b/emacs.d/lisp/yasnippet/snippets/c++-mode/ns new file mode 100644 index 0000000..0c2513f --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/c++-mode/ns @@ -0,0 +1,3 @@ +#name : namespace ... +# -- +namespace
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/c++-mode/template b/emacs.d/lisp/yasnippet/snippets/c++-mode/template new file mode 100644 index 0000000..7e50616 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/c++-mode/template @@ -0,0 +1,3 @@ +#name : template <typename ...> +# -- +template <typename ${T}>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/c++-mode/using b/emacs.d/lisp/yasnippet/snippets/c++-mode/using new file mode 100644 index 0000000..13d0f5d --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/c++-mode/using @@ -0,0 +1,4 @@ +#name : using namespace ... +# -- +using namespace ${std}; +$0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/c-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/c-mode/.yas-parents new file mode 100644 index 0000000..ce9828b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/c-mode/.yas-parents @@ -0,0 +1 @@ +cc-mode diff --git a/emacs.d/lisp/yasnippet/snippets/c-mode/fopen b/emacs.d/lisp/yasnippet/snippets/c-mode/fopen new file mode 100644 index 0000000..044c743 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/c-mode/fopen @@ -0,0 +1,3 @@ +#name : FILE *fp = fopen(..., ...); +# -- +FILE *${fp} = fopen(${"file"}, "${r}"); diff --git a/emacs.d/lisp/yasnippet/snippets/c-mode/printf b/emacs.d/lisp/yasnippet/snippets/c-mode/printf new file mode 100644 index 0000000..055461d --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/c-mode/printf @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name : printf +# contributor : joaotavora +# -- +printf ("${1:%s}\\n"${1:$(if (string-match "%" text) "," "\);") +}$2${1:$(if (string-match "%" text) "\);" "")}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/cc-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/cc-mode/.yas-parents new file mode 100644 index 0000000..eed5b44 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/cc-mode/.yas-parents @@ -0,0 +1 @@ +text-mode diff --git a/emacs.d/lisp/yasnippet/snippets/cc-mode/do b/emacs.d/lisp/yasnippet/snippets/cc-mode/do new file mode 100644 index 0000000..5f7a313 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/cc-mode/do @@ -0,0 +1,6 @@ +#name : do { ... } while (...) +# -- +do +{ + $0 +} while (${1:condition});
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/cc-mode/for b/emacs.d/lisp/yasnippet/snippets/cc-mode/for new file mode 100644 index 0000000..c4cade6 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/cc-mode/for @@ -0,0 +1,6 @@ +#name : for (...; ...; ...) { ... } +# -- +for (${1:int i = 0}; ${2:i < N}; ${3:++i}) +{ + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/cc-mode/if b/emacs.d/lisp/yasnippet/snippets/cc-mode/if new file mode 100644 index 0000000..c3fe10d --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/cc-mode/if @@ -0,0 +1,6 @@ +#name : if (...) { ... } +# -- +if (${1:condition}) +{ + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/cc-mode/inc b/emacs.d/lisp/yasnippet/snippets/cc-mode/inc new file mode 100644 index 0000000..ae33328 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/cc-mode/inc @@ -0,0 +1,3 @@ +#name : #include "..." +# -- +#include "$1" diff --git a/emacs.d/lisp/yasnippet/snippets/cc-mode/inc.1 b/emacs.d/lisp/yasnippet/snippets/cc-mode/inc.1 new file mode 100644 index 0000000..66326cd --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/cc-mode/inc.1 @@ -0,0 +1,3 @@ +#name : #include <...> +# -- +#include <$1> diff --git a/emacs.d/lisp/yasnippet/snippets/cc-mode/main b/emacs.d/lisp/yasnippet/snippets/cc-mode/main new file mode 100644 index 0000000..9249049 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/cc-mode/main @@ -0,0 +1,7 @@ +#name: int main(argc, argv) { ... } +# -- +int main(int argc, char *argv[]) +{ + $0 + return 0; +} diff --git a/emacs.d/lisp/yasnippet/snippets/cc-mode/once b/emacs.d/lisp/yasnippet/snippets/cc-mode/once new file mode 100644 index 0000000..1b63c39 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/cc-mode/once @@ -0,0 +1,8 @@ +#name : #ifndef XXX; #define XXX; #endif +# -- +#ifndef ${1:_`(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))`_H_} +#define $1 + +$0 + +#endif /* $1 */
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/cc-mode/struct b/emacs.d/lisp/yasnippet/snippets/cc-mode/struct new file mode 100644 index 0000000..f50dabf --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/cc-mode/struct @@ -0,0 +1,6 @@ +#name : struct ... { ... } +# -- +struct ${1:name} +{ + $0 +};
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/cperl-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/cperl-mode/.yas-parents new file mode 100644 index 0000000..bfa2993 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/cperl-mode/.yas-parents @@ -0,0 +1 @@ +perl-mode diff --git a/emacs.d/lisp/yasnippet/snippets/csharp-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/csharp-mode/.yas-parents new file mode 100644 index 0000000..ce9828b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/csharp-mode/.yas-parents @@ -0,0 +1 @@ +cc-mode diff --git a/emacs.d/lisp/yasnippet/snippets/csharp-mode/attrib b/emacs.d/lisp/yasnippet/snippets/csharp-mode/attrib new file mode 100644 index 0000000..9e14e22 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/csharp-mode/attrib @@ -0,0 +1,7 @@ +#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +#name : private attribute ....; +# -- +/// <summary> +/// $3 +/// </summary> +private $1 $2; diff --git a/emacs.d/lisp/yasnippet/snippets/csharp-mode/attrib.1 b/emacs.d/lisp/yasnippet/snippets/csharp-mode/attrib.1 new file mode 100644 index 0000000..099cc7b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/csharp-mode/attrib.1 @@ -0,0 +1,21 @@ +#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +#name : private attribute ....; public property ... ... { ... } +# -- +/// <summary> +/// $3 +/// </summary> +private $1 $2; + +/// <summary> +/// $4 +/// </summary> +/// <value>$5</value> +public $1 $2 +{ + get { + return this.$2; + } + set { + this.$2 = value; + } +} diff --git a/emacs.d/lisp/yasnippet/snippets/csharp-mode/attrib.2 b/emacs.d/lisp/yasnippet/snippets/csharp-mode/attrib.2 new file mode 100644 index 0000000..566eacf --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/csharp-mode/attrib.2 @@ -0,0 +1,21 @@ +#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +#name : private _attribute ....; public Property ... ... { ... } +# -- +/// <summary> +/// $3 +/// </summary> +private $1 ${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")}; + +/// <summary> +/// ${3:Description} +/// </summary> +/// <value><c>$1</c></value> +public ${1:Type} ${2:Name} +{ + get { + return this.${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")}; + } + set { + this.${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")} = value; + } +} diff --git a/emacs.d/lisp/yasnippet/snippets/csharp-mode/class b/emacs.d/lisp/yasnippet/snippets/csharp-mode/class new file mode 100644 index 0000000..1cce2e8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/csharp-mode/class @@ -0,0 +1,21 @@ +#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +#name : class ... { ... } +# -- +${5:public} class ${1:Name} +{ + #region Ctor & Destructor + /// <summary> + /// ${3:Standard Constructor} + /// </summary> + public $1($2) + { + } + + /// <summary> + /// ${4:Default Destructor} + /// </summary> + public ~$1() + { + } + #endregion +} diff --git a/emacs.d/lisp/yasnippet/snippets/csharp-mode/comment b/emacs.d/lisp/yasnippet/snippets/csharp-mode/comment new file mode 100644 index 0000000..3bd20d3 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/csharp-mode/comment @@ -0,0 +1,6 @@ +#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +#name : /// <summary> ... </summary> +# -- +/// <summary> +/// $1 +/// </summary> diff --git a/emacs.d/lisp/yasnippet/snippets/csharp-mode/comment.1 b/emacs.d/lisp/yasnippet/snippets/csharp-mode/comment.1 new file mode 100644 index 0000000..3c14ad9 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/csharp-mode/comment.1 @@ -0,0 +1,4 @@ +#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +#name : /// <param name="..."> ... </param> +# -- +/// <param name="$1">$2</param> diff --git a/emacs.d/lisp/yasnippet/snippets/csharp-mode/comment.2 b/emacs.d/lisp/yasnippet/snippets/csharp-mode/comment.2 new file mode 100644 index 0000000..63a6a20 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/csharp-mode/comment.2 @@ -0,0 +1,4 @@ +#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +#name : /// <param name="..."> ... </param> +# -- +/// <returns>$1</returns> diff --git a/emacs.d/lisp/yasnippet/snippets/csharp-mode/comment.3 b/emacs.d/lisp/yasnippet/snippets/csharp-mode/comment.3 new file mode 100644 index 0000000..394c323 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/csharp-mode/comment.3 @@ -0,0 +1,4 @@ +#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +#name : /// <exception cref="..."> ... </exception> +# -- +/// <exception cref="$1">$2</exception> diff --git a/emacs.d/lisp/yasnippet/snippets/csharp-mode/method b/emacs.d/lisp/yasnippet/snippets/csharp-mode/method new file mode 100644 index 0000000..e9a5906 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/csharp-mode/method @@ -0,0 +1,10 @@ +#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +#name : public void Method { ... } +# -- +/// <summary> +/// ${5:Description} +/// </summary>${2:$(if (string= (upcase text) "VOID") "" (format "%s%s%s" "\n/// <returns><c>" text "</c></returns>"))} +${1:public} ${2:void} ${3:MethodName}($4) +{ +$0 +} diff --git a/emacs.d/lisp/yasnippet/snippets/csharp-mode/namespace b/emacs.d/lisp/yasnippet/snippets/csharp-mode/namespace new file mode 100644 index 0000000..af7c928 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/csharp-mode/namespace @@ -0,0 +1,7 @@ +#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +#name : namespace .. { ... } +# -- +namespace $1 +{ +$0 +} diff --git a/emacs.d/lisp/yasnippet/snippets/csharp-mode/prop b/emacs.d/lisp/yasnippet/snippets/csharp-mode/prop new file mode 100644 index 0000000..df9df91 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/csharp-mode/prop @@ -0,0 +1,16 @@ +#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +#name : property ... ... { ... } +# -- +/// <summary> +/// $5 +/// </summary> +/// <value>$6</value> +$1 $2 $3 +{ + get { + return this.$4; + } + set { + this.$4 = value; + } +} diff --git a/emacs.d/lisp/yasnippet/snippets/csharp-mode/region b/emacs.d/lisp/yasnippet/snippets/csharp-mode/region new file mode 100644 index 0000000..83f9a24 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/csharp-mode/region @@ -0,0 +1,6 @@ +#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +#name : #region ... #endregion +# -- +#region $1 +$0 +#endregion diff --git a/emacs.d/lisp/yasnippet/snippets/csharp-mode/using b/emacs.d/lisp/yasnippet/snippets/csharp-mode/using new file mode 100644 index 0000000..704637e --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/csharp-mode/using @@ -0,0 +1,4 @@ +#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +#name : using ...; +# -- +using $1; diff --git a/emacs.d/lisp/yasnippet/snippets/csharp-mode/using.1 b/emacs.d/lisp/yasnippet/snippets/csharp-mode/using.1 new file mode 100644 index 0000000..e9f0bb0 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/csharp-mode/using.1 @@ -0,0 +1,4 @@ +#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +#name : using System; +# -- +using System; diff --git a/emacs.d/lisp/yasnippet/snippets/csharp-mode/using.2 b/emacs.d/lisp/yasnippet/snippets/csharp-mode/using.2 new file mode 100644 index 0000000..0a3c07d --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/csharp-mode/using.2 @@ -0,0 +1,4 @@ +#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +#name : using System....; +# -- +using System.$1; diff --git a/emacs.d/lisp/yasnippet/snippets/css-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/css-mode/.yas-parents new file mode 100644 index 0000000..eed5b44 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/css-mode/.yas-parents @@ -0,0 +1 @@ +text-mode diff --git a/emacs.d/lisp/yasnippet/snippets/css-mode/bg b/emacs.d/lisp/yasnippet/snippets/css-mode/bg new file mode 100644 index 0000000..d731807 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/css-mode/bg @@ -0,0 +1,3 @@ +#name : background-color: ... +# -- +background-color: #${1:DDD};
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/css-mode/bg.1 b/emacs.d/lisp/yasnippet/snippets/css-mode/bg.1 new file mode 100644 index 0000000..d31f540 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/css-mode/bg.1 @@ -0,0 +1,3 @@ +#name : background-image: ... +# -- +background-image: url($1);
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/css-mode/bor b/emacs.d/lisp/yasnippet/snippets/css-mode/bor new file mode 100644 index 0000000..eb3a2b4 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/css-mode/bor @@ -0,0 +1,3 @@ +#name : border size style color +# -- +border: ${1:1px} ${2:solid} #${3:999};
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/css-mode/cl b/emacs.d/lisp/yasnippet/snippets/css-mode/cl new file mode 100644 index 0000000..4fc7a8d --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/css-mode/cl @@ -0,0 +1,4 @@ +#contributor : rejeep <johan.rejeep@gmail.com> +#name : clear: ... +# -- +clear: $1; diff --git a/emacs.d/lisp/yasnippet/snippets/css-mode/disp.block b/emacs.d/lisp/yasnippet/snippets/css-mode/disp.block new file mode 100644 index 0000000..f74ea3c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/css-mode/disp.block @@ -0,0 +1,4 @@ +#contributor : rejeep <johan.rejeep@gmail.com> +#name : display: block +# -- +display: block; diff --git a/emacs.d/lisp/yasnippet/snippets/css-mode/disp.inline b/emacs.d/lisp/yasnippet/snippets/css-mode/disp.inline new file mode 100644 index 0000000..30275a8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/css-mode/disp.inline @@ -0,0 +1,4 @@ +#contributor : rejeep <johan.rejeep@gmail.com> +#name : display: inline +# -- +display: inline; diff --git a/emacs.d/lisp/yasnippet/snippets/css-mode/disp.none b/emacs.d/lisp/yasnippet/snippets/css-mode/disp.none new file mode 100644 index 0000000..80632a5 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/css-mode/disp.none @@ -0,0 +1,4 @@ +#contributor : rejeep <johan.rejeep@gmail.com> +#name : display: none +# -- +display: none; diff --git a/emacs.d/lisp/yasnippet/snippets/css-mode/ff b/emacs.d/lisp/yasnippet/snippets/css-mode/ff new file mode 100644 index 0000000..a7352cf --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/css-mode/ff @@ -0,0 +1,4 @@ +#contributor : rejeep <johan.rejeep@gmail.com> +#name : font-family: ... +# -- +font-family: $1; diff --git a/emacs.d/lisp/yasnippet/snippets/css-mode/fs b/emacs.d/lisp/yasnippet/snippets/css-mode/fs new file mode 100644 index 0000000..c28cdbb --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/css-mode/fs @@ -0,0 +1,4 @@ +#contributor : rejeep <johan.rejeep@gmail.com> +#name : font-size: ... +# -- +font-size: ${12px}; diff --git a/emacs.d/lisp/yasnippet/snippets/css-mode/mar.bottom b/emacs.d/lisp/yasnippet/snippets/css-mode/mar.bottom new file mode 100644 index 0000000..9672f60 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/css-mode/mar.bottom @@ -0,0 +1,4 @@ +#contributor : rejeep <johan.rejeep@gmail.com> +#name : margin-bottom: ... +# -- +margin-bottom: $1; diff --git a/emacs.d/lisp/yasnippet/snippets/css-mode/mar.left b/emacs.d/lisp/yasnippet/snippets/css-mode/mar.left new file mode 100644 index 0000000..414353e --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/css-mode/mar.left @@ -0,0 +1,4 @@ +#contributor : rejeep <johan.rejeep@gmail.com> +#name : margin-left: ... +# -- +margin-left: $1; diff --git a/emacs.d/lisp/yasnippet/snippets/css-mode/mar.mar b/emacs.d/lisp/yasnippet/snippets/css-mode/mar.mar new file mode 100644 index 0000000..13354db --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/css-mode/mar.mar @@ -0,0 +1,4 @@ +#contributor : rejeep <johan.rejeep@gmail.com> +#name : margin: ... +# -- +margin: $1; diff --git a/emacs.d/lisp/yasnippet/snippets/css-mode/mar.margin b/emacs.d/lisp/yasnippet/snippets/css-mode/mar.margin new file mode 100644 index 0000000..97de70c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/css-mode/mar.margin @@ -0,0 +1,4 @@ +#contributor : rejeep <johan.rejeep@gmail.com> +#name : margin top right bottom left +# -- +margin: ${top} ${right} ${bottom} ${left}; diff --git a/emacs.d/lisp/yasnippet/snippets/css-mode/mar.right b/emacs.d/lisp/yasnippet/snippets/css-mode/mar.right new file mode 100644 index 0000000..47a4973 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/css-mode/mar.right @@ -0,0 +1,4 @@ +#contributor : rejeep <johan.rejeep@gmail.com> +#name : margin-right: ... +# -- +margin-right: $1; diff --git a/emacs.d/lisp/yasnippet/snippets/css-mode/mar.top b/emacs.d/lisp/yasnippet/snippets/css-mode/mar.top new file mode 100644 index 0000000..c805754 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/css-mode/mar.top @@ -0,0 +1,4 @@ +#contributor : rejeep <johan.rejeep@gmail.com> +#name : margin-top: ... +# -- +margin-top: $1; diff --git a/emacs.d/lisp/yasnippet/snippets/css-mode/pad.bottom b/emacs.d/lisp/yasnippet/snippets/css-mode/pad.bottom new file mode 100644 index 0000000..3b9495e --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/css-mode/pad.bottom @@ -0,0 +1,4 @@ +#contributor : rejeep <johan.rejeep@gmail.com> +#name : padding-bottom: ... +# -- +padding-bottom: $1; diff --git a/emacs.d/lisp/yasnippet/snippets/css-mode/pad.left b/emacs.d/lisp/yasnippet/snippets/css-mode/pad.left new file mode 100644 index 0000000..ecae515 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/css-mode/pad.left @@ -0,0 +1,4 @@ +#contributor : rejeep <johan.rejeep@gmail.com> +#name : padding-left: ... +# -- +padding-left: $1; diff --git a/emacs.d/lisp/yasnippet/snippets/css-mode/pad.pad b/emacs.d/lisp/yasnippet/snippets/css-mode/pad.pad new file mode 100644 index 0000000..ee3a682 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/css-mode/pad.pad @@ -0,0 +1,4 @@ +#contributor : rejeep <johan.rejeep@gmail.com> +#name : padding: ... +# -- +padding: $1; diff --git a/emacs.d/lisp/yasnippet/snippets/css-mode/pad.padding b/emacs.d/lisp/yasnippet/snippets/css-mode/pad.padding new file mode 100644 index 0000000..c1009d3 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/css-mode/pad.padding @@ -0,0 +1,4 @@ +#contributor : rejeep <johan.rejeep@gmail.com> +#name : padding: top right bottom left +# -- +padding: ${top} ${right} ${bottom} ${left}; diff --git a/emacs.d/lisp/yasnippet/snippets/css-mode/pad.right b/emacs.d/lisp/yasnippet/snippets/css-mode/pad.right new file mode 100644 index 0000000..98a9e12 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/css-mode/pad.right @@ -0,0 +1,4 @@ +#contributor : rejeep <johan.rejeep@gmail.com> +#name : padding-right: ... +# -- +padding-right: $1; diff --git a/emacs.d/lisp/yasnippet/snippets/css-mode/pad.top b/emacs.d/lisp/yasnippet/snippets/css-mode/pad.top new file mode 100644 index 0000000..34987f6 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/css-mode/pad.top @@ -0,0 +1,4 @@ +#contributor : rejeep <johan.rejeep@gmail.com> +#name : padding-top: ... +# -- +padding-top: $1; diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/.yas-parents new file mode 100644 index 0000000..eed5b44 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/.yas-parents @@ -0,0 +1 @@ +text-mode diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/add-hook.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/add-hook.yasnippet new file mode 100755 index 0000000..b280727 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/add-hook.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: add-hook +# -- +(add-hook HOOK$0 FUNCTION)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/append.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/append.yasnippet new file mode 100755 index 0000000..cf314b5 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/append.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: append +# -- +(append $0 )
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/apply.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/apply.yasnippet new file mode 100755 index 0000000..9f23657 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/apply.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: apply +# -- +(apply $0 )
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/aref.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/aref.yasnippet new file mode 100755 index 0000000..582f212 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/aref.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: aref +# -- +(aref ARRAY$0 INDEX)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/assq.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/assq.yasnippet new file mode 100755 index 0000000..5418a5e --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/assq.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: assq +# -- +(assq KEY$0 LIST)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/autoload.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/autoload.yasnippet new file mode 100755 index 0000000..8713592 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/autoload.yasnippet @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: autoload +# -- +(autoload 'FUNCNAME$0 "FILENAME" &optional "DOCSTRING" INTERACTIVE TYPE) + diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/buffer-file-name.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/buffer-file-name.yasnippet new file mode 100755 index 0000000..663482f --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/buffer-file-name.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: buffer-file-name +# -- +(buffer-file-name)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/buffer-substring.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/buffer-substring.yasnippet new file mode 100755 index 0000000..3217ab1 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/buffer-substring.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: buffer-substring +# -- +(buffer-substring START$0 END) diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/cdr.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/cdr.yasnippet new file mode 100755 index 0000000..6733410 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/cdr.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: cdr +# -- +(cdr $0)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/cond.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/cond.yasnippet new file mode 100755 index 0000000..36340f1 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/cond.yasnippet @@ -0,0 +1,7 @@ +#contributor: Xah Lee (XahLee.org) +#name: cond +# -- +(cond +(CONDITION$0 BODY) +(CONDITION BODY) +)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/consp.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/consp.yasnippet new file mode 100755 index 0000000..00f2d84 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/consp.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: consp +# -- +(consp $0 )
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/current-buffer.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/current-buffer.yasnippet new file mode 100755 index 0000000..66d5a9d --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/current-buffer.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: current-buffer +# -- +(current-buffer)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/custom-autoload.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/custom-autoload.yasnippet new file mode 100755 index 0000000..9a71d25 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/custom-autoload.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: custom-autoload +# -- +(custom-autoload$0 SYMBOL LOAD &optional NOSET)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/defalias.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/defalias.yasnippet new file mode 100755 index 0000000..e47da33 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/defalias.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: defalias +# -- +(defalias 'SYMBOL$0 'DEFINITION &optional DOCSTRING)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/define-key.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/define-key.yasnippet new file mode 100755 index 0000000..035efe6 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/define-key.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: define-key +# -- +(define-key KEYMAPNAME$0 (kbd "M-b") 'FUNCNAME)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/defsubst.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/defsubst.yasnippet new file mode 100755 index 0000000..7529bf1 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/defsubst.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: defsubst +# -- +(defsubst $0 )
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/defvar.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/defvar.yasnippet new file mode 100755 index 0000000..cc623d8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/defvar.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: defvar +# -- +(defvar SYMBOL &optional INITVALUE "DOCSTRING")
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/delete-region.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/delete-region.yasnippet new file mode 100755 index 0000000..d61001a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/delete-region.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: delete-region +# -- +(delete-region $0 )
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/equal.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/equal.yasnippet new file mode 100755 index 0000000..c85cea7 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/equal.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: equal +# -- +(equal $0)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/error.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/error.yasnippet new file mode 100755 index 0000000..95914b7 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/error.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: error +# -- +(error "$0" &optional ARGS)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/expand-file-name.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/expand-file-name.yasnippet new file mode 100755 index 0000000..8f5dad3 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/expand-file-name.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: expand-file-name +# -- +(expand-file-name $0 )
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/file-name-nondirectory.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/file-name-nondirectory.yasnippet new file mode 100755 index 0000000..d4a77e6 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/file-name-nondirectory.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: file-name-nondirectory +# -- +(file-name-nondirectory $0 )
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/find-file.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/find-file.yasnippet new file mode 100755 index 0000000..70cb87b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/find-file.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: find-file +# -- +(find-file $0 )
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/format.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/format.yasnippet new file mode 100755 index 0000000..c83d5b7 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/format.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: format +# -- +(format$0 &optional OBJECTS) diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/funcall.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/funcall.yasnippet new file mode 100755 index 0000000..5d2a307 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/funcall.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: funcall +# -- +(funcall $0)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/function.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/function.yasnippet new file mode 100755 index 0000000..2b39cc5 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/function.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: function +# -- +(function $0 )
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/get.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/get.yasnippet new file mode 100755 index 0000000..fe55b2e --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/get.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: get +# -- +(get SYMBOL$0 PROPNAME)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/goto-char.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/goto-char.yasnippet new file mode 100755 index 0000000..4cbddd4 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/goto-char.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: goto-char +# -- +(goto-char $0)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/if.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/if.yasnippet new file mode 100755 index 0000000..c21133c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/if.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: if +# -- +(if $0)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/interactive.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/interactive.yasnippet new file mode 100755 index 0000000..ad88e40 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/interactive.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: interactive +# -- +(interactive)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/let.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/let.yasnippet new file mode 100755 index 0000000..5d1a40e --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/let.yasnippet @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: let +# -- +(let ($1 ) + $0 +)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/line-beginning-position.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/line-beginning-position.yasnippet new file mode 100755 index 0000000..ff465a3 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/line-beginning-position.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: line-beginning-position +# -- +(line-beginning-position)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/line-end-position.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/line-end-position.yasnippet new file mode 100755 index 0000000..c40c0e6 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/line-end-position.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: line-end-position +# -- +(line-end-position)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/list.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/list.yasnippet new file mode 100755 index 0000000..4ec1c63 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/list.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: list +# -- +(list $0)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/looking-at.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/looking-at.yasnippet new file mode 100755 index 0000000..6bc322c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/looking-at.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: looking-at +# -- +(looking-at $0)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/match-beginning.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/match-beginning.yasnippet new file mode 100755 index 0000000..146d188 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/match-beginning.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: match-beginning +# -- +(match-beginning N$0)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/match-end.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/match-end.yasnippet new file mode 100755 index 0000000..8841909 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/match-end.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: match-end +# -- +(match-end N$0)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/message.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/message.yasnippet new file mode 100755 index 0000000..f7a88de --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/message.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: message +# -- +(message "FORMATSTRING$0" &optional ARGS)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/nth.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/nth.yasnippet new file mode 100755 index 0000000..eb9057f --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/nth.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: nth +# -- +(nth N$0 LIST)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/point-max.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/point-max.yasnippet new file mode 100755 index 0000000..ef9fa26 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/point-max.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: point-max +# -- +(point-max)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/point-min.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/point-min.yasnippet new file mode 100755 index 0000000..9789afc --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/point-min.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: point-min +# -- +(point-min)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/point.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/point.yasnippet new file mode 100755 index 0000000..ef0f7aa --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/point.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: point +# -- +(point)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/princ.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/princ.yasnippet new file mode 100755 index 0000000..2397e31 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/princ.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: princ +# -- +(princ $0)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/print.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/print.yasnippet new file mode 100755 index 0000000..9d7ce8c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/print.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: print +# -- +(print $0)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/push.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/push.yasnippet new file mode 100755 index 0000000..a348f39 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/push.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: push +# -- +(push $0 )
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/put.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/put.yasnippet new file mode 100755 index 0000000..c5b953e --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/put.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: put +# -- +(put $0 PROPNAME VALUE)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/re-search-backward.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/re-search-backward.yasnippet Binary files differnew file mode 100755 index 0000000..a1d6703 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/re-search-backward.yasnippet diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/re-search-forward.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/re-search-forward.yasnippet new file mode 100755 index 0000000..2516b41 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/re-search-forward.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: re-search-forward +# -- +(re-search-forward REGEXP$0 &optional BOUND NOERROR COUNT)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/region-end.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/region-end.yasnippet new file mode 100755 index 0000000..e3e61c0 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/region-end.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: region-end +# -- +(region-end)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/repeat.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/repeat.yasnippet new file mode 100755 index 0000000..f056ca5 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/repeat.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: repeat +# -- +(repeat $0 )
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/replace-regexp-in-string.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/replace-regexp-in-string.yasnippet new file mode 100755 index 0000000..e663569 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/replace-regexp-in-string.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: replace-regexp-in-string +# -- +(replace-regexp-in-string REGEXP$0 REP STRING &optional FIXEDCASE LITERAL SUBEXP START) diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/replace-regexp.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/replace-regexp.yasnippet new file mode 100755 index 0000000..fb738c9 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/replace-regexp.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: replace-regexp +# -- +(replace-regexp REGEXP$0 TO-STRING &optional DELIMITED START END)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/require.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/require.yasnippet new file mode 100755 index 0000000..cab6fc4 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/require.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: require +# -- +(require $0 )
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/save-excursion.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/save-excursion.yasnippet new file mode 100755 index 0000000..14e4748 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/save-excursion.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: save-excursion +# -- +(save-excursion $0)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/search-backward.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/search-backward.yasnippet new file mode 100755 index 0000000..fad1189 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/search-backward.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: search-backward +# -- +(search-backward "$0" &optional BOUND NOERROR COUNT)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/search-forward.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/search-forward.yasnippet new file mode 100755 index 0000000..7d033c7 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/search-forward.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: search-forward +# -- +(search-forward "$0" &optional BOUND NOERROR COUNT)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/set.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/set.yasnippet new file mode 100755 index 0000000..414e6d4 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/set.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: set +# -- +(set $0 )
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/setq.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/setq.yasnippet new file mode 100755 index 0000000..f161d8a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/setq.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: setq +# -- +(setq $0 )
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/skip-chars-backward.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/skip-chars-backward.yasnippet new file mode 100755 index 0000000..a706485 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/skip-chars-backward.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: skip-chars-backward +# -- +(skip-chars-backward "$0" &optional LIM)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/string-match.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/string-match.yasnippet new file mode 100755 index 0000000..0bfdcd6 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/string-match.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: string-match +# -- +(string-match "REGEXP$0" "STRING" &optional START)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/string=.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/string=.yasnippet new file mode 100755 index 0000000..7143bf9 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/string=.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: string= +# -- +(string= $0 )
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/stringp.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/stringp.yasnippet new file mode 100755 index 0000000..7e9b6ed --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/stringp.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: stringp +# -- +(stringp $0)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/substring.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/substring.yasnippet new file mode 100755 index 0000000..51746fa --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/substring.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: substring +# -- +(substring STRING$0 FROM &optional TO) diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/unless.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/unless.yasnippet new file mode 100755 index 0000000..5a71370 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/unless.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: unless +# -- +(unless $0)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/while.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/while.yasnippet new file mode 100755 index 0000000..4ed5f79 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/while.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: while +# -- +(while $0)
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/widget-get.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/widget-get.yasnippet new file mode 100755 index 0000000..2dbaafb --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/widget-get.yasnippet @@ -0,0 +1,4 @@ +#contributor: Xah Lee (XahLee.org) +#name: widget-get +# -- +(widget-get $0 )
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/x-file.process.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/x-file.process.yasnippet new file mode 100755 index 0000000..7e09cb8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/x-file.process.yasnippet @@ -0,0 +1,17 @@ +#contributor: Xah Lee (XahLee.org) +#name: a function that process a 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"))) diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/x-file.read-lines.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/x-file.read-lines.yasnippet new file mode 100755 index 0000000..015c0f2 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/x-file.read-lines.yasnippet @@ -0,0 +1,17 @@ +#contributor: Xah Lee (XahLee.org) +#name: read lines of a 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.d/lisp/yasnippet/snippets/emacs-lisp-mode/x-word-or-region.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/x-word-or-region.yasnippet new file mode 100755 index 0000000..0f3d1b8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/x-word-or-region.yasnippet @@ -0,0 +1,27 @@ +#contributor: Xah Lee (XahLee.org) +#name: Command that works on region or word +# -- +;; example of a command that works on current word or text selection +(defun down-case-word-or-region () + "Lower case the current word or text selection." +(interactive) +(let (pos1 pos2 meat) + (if (and transient-mark-mode mark-active) + (setq pos1 (region-beginning) + pos2 (region-end)) + (setq pos1 (car (bounds-of-thing-at-point 'symbol)) + pos2 (cdr (bounds-of-thing-at-point 'symbol)))) + + ; now, pos1 and pos2 are the starting and ending positions + ; of the current word, or current text selection if exists + + ;; put your code here. + $0 + ;; Some example of things you might want to do + (downcase-region pos1 pos2) ; example of a func that takes region as args + (setq meat (buffer-substring-no-properties pos1 pos2)) ; grab the text. + (delete-region pos1 pos2) ; get rid of it + (insert "newText") ; insert your new text + + ) +) diff --git a/emacs.d/lisp/yasnippet/snippets/erlang-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/erlang-mode/.yas-parents new file mode 100644 index 0000000..eed5b44 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/erlang-mode/.yas-parents @@ -0,0 +1 @@ +text-mode diff --git a/emacs.d/lisp/yasnippet/snippets/erlang-mode/after b/emacs.d/lisp/yasnippet/snippets/erlang-mode/after new file mode 100644 index 0000000..264e201 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/erlang-mode/after @@ -0,0 +1,4 @@ +#name : after ... -> +# -- +after + $1 -> $0 diff --git a/emacs.d/lisp/yasnippet/snippets/erlang-mode/begin b/emacs.d/lisp/yasnippet/snippets/erlang-mode/begin new file mode 100644 index 0000000..7b48494 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/erlang-mode/begin @@ -0,0 +1,5 @@ +#name : begin ... end +# -- +begin + $0 +end diff --git a/emacs.d/lisp/yasnippet/snippets/erlang-mode/beh b/emacs.d/lisp/yasnippet/snippets/erlang-mode/beh new file mode 100644 index 0000000..4975b26 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/erlang-mode/beh @@ -0,0 +1,4 @@ +#name : -behaviour(...). +# -- +-behaviour(${1:gen_server}). +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/erlang-mode/case b/emacs.d/lisp/yasnippet/snippets/erlang-mode/case new file mode 100644 index 0000000..5bed114 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/erlang-mode/case @@ -0,0 +1,5 @@ +#name : case ... of ... end +# -- +case $1 of + $0 +end diff --git a/emacs.d/lisp/yasnippet/snippets/erlang-mode/compile b/emacs.d/lisp/yasnippet/snippets/erlang-mode/compile new file mode 100644 index 0000000..ae3a4d8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/erlang-mode/compile @@ -0,0 +1,4 @@ +#name : -compile(...). +# -- +-compile([${1:export_all}]). +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/erlang-mode/def b/emacs.d/lisp/yasnippet/snippets/erlang-mode/def new file mode 100644 index 0000000..6fb92f1 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/erlang-mode/def @@ -0,0 +1,4 @@ +#name : -define(...,...). +# -- +-define($1,$2). +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/erlang-mode/exp b/emacs.d/lisp/yasnippet/snippets/erlang-mode/exp new file mode 100644 index 0000000..67f56da --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/erlang-mode/exp @@ -0,0 +1,5 @@ +#name : -export([]). +#contributor : hitesh <hitesh.jasani@gmail.com> +# -- +-export([${1:start/0}]). +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/erlang-mode/fun b/emacs.d/lisp/yasnippet/snippets/erlang-mode/fun new file mode 100644 index 0000000..77f8293 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/erlang-mode/fun @@ -0,0 +1,3 @@ +#name : fun (...) -> ... end +# -- +fun ($1) -> $0 end diff --git a/emacs.d/lisp/yasnippet/snippets/erlang-mode/if b/emacs.d/lisp/yasnippet/snippets/erlang-mode/if new file mode 100644 index 0000000..45674c4 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/erlang-mode/if @@ -0,0 +1,6 @@ +#name : if ... -> ... ; true -> ... end +# -- +if + $1 -> $2; + true -> $0 +end diff --git a/emacs.d/lisp/yasnippet/snippets/erlang-mode/ifdef b/emacs.d/lisp/yasnippet/snippets/erlang-mode/ifdef new file mode 100644 index 0000000..ea89ecf --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/erlang-mode/ifdef @@ -0,0 +1,5 @@ +#name : -ifdef(...). ... -endif. +# -- +-ifdef($1). +$0 +-endif. diff --git a/emacs.d/lisp/yasnippet/snippets/erlang-mode/ifndef b/emacs.d/lisp/yasnippet/snippets/erlang-mode/ifndef new file mode 100644 index 0000000..dcd67a7 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/erlang-mode/ifndef @@ -0,0 +1,5 @@ +#name : -ifndef(...). ... -endif. +# -- +-ifndef($1). +$0 +-endif. diff --git a/emacs.d/lisp/yasnippet/snippets/erlang-mode/imp b/emacs.d/lisp/yasnippet/snippets/erlang-mode/imp new file mode 100644 index 0000000..c035ddd --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/erlang-mode/imp @@ -0,0 +1,5 @@ +#name : -import([]). +#contributor : hitesh <hitesh.jasani@gmail.com> +# -- +-import(${1:lists}, [${2:map/2, sum/1}]). +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/erlang-mode/inc b/emacs.d/lisp/yasnippet/snippets/erlang-mode/inc new file mode 100644 index 0000000..f7b2161 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/erlang-mode/inc @@ -0,0 +1,4 @@ +#name : -include("..."). +# -- +-include("$1"). +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/erlang-mode/inc.lib b/emacs.d/lisp/yasnippet/snippets/erlang-mode/inc.lib new file mode 100644 index 0000000..09a6723 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/erlang-mode/inc.lib @@ -0,0 +1,4 @@ +#name : -include_lib("..."). +# -- +-include_lib("$1"). +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/erlang-mode/loop b/emacs.d/lisp/yasnippet/snippets/erlang-mode/loop new file mode 100644 index 0000000..0205802 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/erlang-mode/loop @@ -0,0 +1,8 @@ +#name : loop(...) -> receive _ -> loop(...) end. +# -- +${1:loop}($2) -> + receive + ${3:_} -> + $1($2) + end. +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/erlang-mode/mod b/emacs.d/lisp/yasnippet/snippets/erlang-mode/mod new file mode 100644 index 0000000..7275d39 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/erlang-mode/mod @@ -0,0 +1,6 @@ +#name : -module(). +#contributor : hitesh <hitesh.jasani@gmail.com> +# -- +-module(${1:`(file-name-nondirectory + (file-name-sans-extension (or (buffer-file-name) (buffer-name))))`}). +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/erlang-mode/rcv b/emacs.d/lisp/yasnippet/snippets/erlang-mode/rcv new file mode 100644 index 0000000..804fb3f --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/erlang-mode/rcv @@ -0,0 +1,5 @@ +#name : receive ... -> ... end +# -- +receive + $1 -> $0 +end diff --git a/emacs.d/lisp/yasnippet/snippets/erlang-mode/rcv.after b/emacs.d/lisp/yasnippet/snippets/erlang-mode/rcv.after new file mode 100644 index 0000000..51046df --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/erlang-mode/rcv.after @@ -0,0 +1,6 @@ +#name : receive after ... -> ... end +# -- +receive +after + $1 -> $0 +end diff --git a/emacs.d/lisp/yasnippet/snippets/erlang-mode/rec b/emacs.d/lisp/yasnippet/snippets/erlang-mode/rec new file mode 100644 index 0000000..0d67834 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/erlang-mode/rec @@ -0,0 +1,4 @@ +#name : -record(...,{...}). +# -- +-record($1,{$2}). +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/erlang-mode/try b/emacs.d/lisp/yasnippet/snippets/erlang-mode/try new file mode 100644 index 0000000..fa5c9c2 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/erlang-mode/try @@ -0,0 +1,7 @@ +#name : try ... of ... catch after end +# -- +try $1 of + $0 +catch +after +end diff --git a/emacs.d/lisp/yasnippet/snippets/erlang-mode/undef b/emacs.d/lisp/yasnippet/snippets/erlang-mode/undef new file mode 100644 index 0000000..7ab5dd4 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/erlang-mode/undef @@ -0,0 +1,4 @@ +#name : -undef(...). +# -- +-undef($1). +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/f90-mode/.yas-parents new file mode 100644 index 0000000..eed5b44 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/.yas-parents @@ -0,0 +1 @@ +text-mode diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/au b/emacs.d/lisp/yasnippet/snippets/f90-mode/au new file mode 100644 index 0000000..1f0af73 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/au @@ -0,0 +1,4 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : automatic +# -- +automatic $0 diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/bd b/emacs.d/lisp/yasnippet/snippets/f90-mode/bd new file mode 100644 index 0000000..8840102 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/bd @@ -0,0 +1,4 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : block data +# -- +block data $0 diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/c b/emacs.d/lisp/yasnippet/snippets/f90-mode/c new file mode 100644 index 0000000..c7182e4 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/c @@ -0,0 +1,4 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : continue +# -- +continue $0 diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/ch b/emacs.d/lisp/yasnippet/snippets/f90-mode/ch new file mode 100644 index 0000000..7e6b4cb --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/ch @@ -0,0 +1,4 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : character +# -- +character $0 diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/cx b/emacs.d/lisp/yasnippet/snippets/f90-mode/cx new file mode 100644 index 0000000..8feb41e --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/cx @@ -0,0 +1,4 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : complex +# -- +complex $0 diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/dc b/emacs.d/lisp/yasnippet/snippets/f90-mode/dc new file mode 100644 index 0000000..1992b1b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/dc @@ -0,0 +1,4 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : double complex +# -- +double complex $0 diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/do b/emacs.d/lisp/yasnippet/snippets/f90-mode/do new file mode 100644 index 0000000..2c117fd --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/do @@ -0,0 +1,6 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : do while (...) end do +# -- +do while (${1:condition}) + $0 +end do diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/dp b/emacs.d/lisp/yasnippet/snippets/f90-mode/dp new file mode 100644 index 0000000..ad014b7 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/dp @@ -0,0 +1,4 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : double precision +# -- +double precision $0 diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/eq b/emacs.d/lisp/yasnippet/snippets/f90-mode/eq new file mode 100644 index 0000000..0c6d09f --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/eq @@ -0,0 +1,4 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : equivalence +# -- +equivalence $0 diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/ib b/emacs.d/lisp/yasnippet/snippets/f90-mode/ib new file mode 100644 index 0000000..9275a12 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/ib @@ -0,0 +1,4 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : implicit byte +# -- +implicit byte $0 diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/ic b/emacs.d/lisp/yasnippet/snippets/f90-mode/ic new file mode 100644 index 0000000..79842ea --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/ic @@ -0,0 +1,4 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : implicit complex +# -- +implicit complex $0 diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/ich b/emacs.d/lisp/yasnippet/snippets/f90-mode/ich new file mode 100644 index 0000000..53c7f81 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/ich @@ -0,0 +1,4 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : implicit character +# -- +implicit character $0 diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/if b/emacs.d/lisp/yasnippet/snippets/f90-mode/if new file mode 100644 index 0000000..b4fb526 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/if @@ -0,0 +1,6 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : if then end if +# -- +if ( ${1:condition} ) then + $0 +end if diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/ii b/emacs.d/lisp/yasnippet/snippets/f90-mode/ii new file mode 100644 index 0000000..4b1fee5 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/ii @@ -0,0 +1,4 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : implicit integer +# -- +implicit integer $0 diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/il b/emacs.d/lisp/yasnippet/snippets/f90-mode/il new file mode 100644 index 0000000..8658af5 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/il @@ -0,0 +1,4 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : implicit logical +# -- +implicit logical $0 diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/in b/emacs.d/lisp/yasnippet/snippets/f90-mode/in new file mode 100644 index 0000000..0c1d5e1 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/in @@ -0,0 +1,4 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : implicit none +# -- +implicit none diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/inc b/emacs.d/lisp/yasnippet/snippets/f90-mode/inc new file mode 100644 index 0000000..dd649c4 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/inc @@ -0,0 +1,4 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : include +# -- +include $0 diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/intr b/emacs.d/lisp/yasnippet/snippets/f90-mode/intr new file mode 100644 index 0000000..147fffd --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/intr @@ -0,0 +1,4 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : intrinsic +# -- +intrinsic $0 diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/ir b/emacs.d/lisp/yasnippet/snippets/f90-mode/ir new file mode 100644 index 0000000..fb37082 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/ir @@ -0,0 +1,4 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : implicit real +# -- +implicit real $0 diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/l b/emacs.d/lisp/yasnippet/snippets/f90-mode/l new file mode 100644 index 0000000..8605d69 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/l @@ -0,0 +1,4 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : logical +# -- +logical $0 diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/pa b/emacs.d/lisp/yasnippet/snippets/f90-mode/pa new file mode 100644 index 0000000..1b1b503 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/pa @@ -0,0 +1,4 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : parameter +# -- +parameter $0 diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/pr b/emacs.d/lisp/yasnippet/snippets/f90-mode/pr new file mode 100644 index 0000000..e0f8baa --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/pr @@ -0,0 +1,6 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : program ... end program ... +# -- +program ${1:name} + $0 +end program ${1:name} diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/re b/emacs.d/lisp/yasnippet/snippets/f90-mode/re new file mode 100644 index 0000000..08c7ba0 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/re @@ -0,0 +1,4 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : read (*,*) +# -- +read (${1:*},${2:*}) $0 diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/st b/emacs.d/lisp/yasnippet/snippets/f90-mode/st new file mode 100644 index 0000000..23ae7d0 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/st @@ -0,0 +1,4 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : structure +# -- +structure $0 diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/su b/emacs.d/lisp/yasnippet/snippets/f90-mode/su new file mode 100644 index 0000000..d3857b8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/su @@ -0,0 +1,4 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : subroutine +# -- +subroutine $0 diff --git a/emacs.d/lisp/yasnippet/snippets/f90-mode/wr b/emacs.d/lisp/yasnippet/snippets/f90-mode/wr new file mode 100644 index 0000000..1ac3eb9 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/f90-mode/wr @@ -0,0 +1,4 @@ +#contributor: Li Zhu <http://www.zhuli.name> +#name : write (*,*) +# -- +write (${1:*},${2:*}) $0 diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/.yas-make-groups b/emacs.d/lisp/yasnippet/snippets/html-mode/.yas-make-groups new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/.yas-make-groups diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/html-mode/.yas-parents new file mode 100644 index 0000000..eed5b44 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/.yas-parents @@ -0,0 +1 @@ +text-mode diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/b.yasnippet b/emacs.d/lisp/yasnippet/snippets/html-mode/b.yasnippet new file mode 100755 index 0000000..818fbfa --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/b.yasnippet @@ -0,0 +1,4 @@ +#contributor : Xah Lee xahlee.org
+#name : <b>...</b>
+# --
+<b>$0</b>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/body b/emacs.d/lisp/yasnippet/snippets/html-mode/body new file mode 100644 index 0000000..3655775 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/body @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <body>...</body> +# -- +<body$1> + $0 +</body>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/br b/emacs.d/lisp/yasnippet/snippets/html-mode/br new file mode 100644 index 0000000..07c2d4a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/br @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <br /> +# -- +<br />
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/code b/emacs.d/lisp/yasnippet/snippets/html-mode/code new file mode 100644 index 0000000..a5ad908 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/code @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <code>...</code> +# -- +<code> + $0 +</code>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/code.class b/emacs.d/lisp/yasnippet/snippets/html-mode/code.class new file mode 100644 index 0000000..b910eb7 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/code.class @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <code class="...">...</code> +# -- +<code class="$1"> + $0 +</code>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/div b/emacs.d/lisp/yasnippet/snippets/html-mode/div new file mode 100644 index 0000000..1c9c0c8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/div @@ -0,0 +1,3 @@ +#name : <div...>...</div> +# -- +<div${1: id="${2:some_id}"}${3: class="${4:some_class}"}>$0</div>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/div.class b/emacs.d/lisp/yasnippet/snippets/html-mode/div.class new file mode 100644 index 0000000..11c12d6 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/div.class @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <div class="...">...</div> +# -- +<div class="$1"> + $0 +</div>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/div.id b/emacs.d/lisp/yasnippet/snippets/html-mode/div.id new file mode 100644 index 0000000..cec25fb --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/div.id @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <div id="...">...</div> +# -- +<div id="$1"> + $0 +</div>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/div.id-class b/emacs.d/lisp/yasnippet/snippets/html-mode/div.id-class new file mode 100644 index 0000000..d5b1402 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/div.id-class @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <div id="..." class="...">...</div> +# -- +<div id="$1" class="$2"> + $0 +</div>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/dov b/emacs.d/lisp/yasnippet/snippets/html-mode/dov new file mode 100644 index 0000000..e8341ea --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/dov @@ -0,0 +1,11 @@ +#name : <dov...>...</dov> +# -- +a mirror up here $3 + + +<dov ${1:id="${2:some_id and here comes another nested field: ${3:nested_shit}}"}> + $0 +</dov> +<dov $1> + actually some other shit and $3 +</dov> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/form b/emacs.d/lisp/yasnippet/snippets/html-mode/form new file mode 100644 index 0000000..043a59a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/form @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name :<form method="..." id="..." action="..."></form> +# -- +<form method="$1" id="$2" action="$3"> + $0 +</form>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/head b/emacs.d/lisp/yasnippet/snippets/html-mode/head new file mode 100644 index 0000000..37ef1ad --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/head @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <head>...</head> +# -- +<head> + $0 +</head>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/header/h1 b/emacs.d/lisp/yasnippet/snippets/html-mode/header/h1 new file mode 100644 index 0000000..df95d5b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/header/h1 @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <h1>...</h1>
+# --
+<h1>$1</h1> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/header/h2 b/emacs.d/lisp/yasnippet/snippets/html-mode/header/h2 new file mode 100644 index 0000000..6d6a101 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/header/h2 @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <h2>...</h2>
+# --
+<h2>$1</h2> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/header/h3 b/emacs.d/lisp/yasnippet/snippets/html-mode/header/h3 new file mode 100644 index 0000000..6638192 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/header/h3 @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <h3>...</h3>
+# --
+<h3>$1</h3> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/header/h4 b/emacs.d/lisp/yasnippet/snippets/html-mode/header/h4 new file mode 100644 index 0000000..8fe570f --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/header/h4 @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <h4>...</h4>
+# --
+<h4>$1</h4> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/header/h5 b/emacs.d/lisp/yasnippet/snippets/html-mode/header/h5 new file mode 100644 index 0000000..283229e --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/header/h5 @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <h5>...</h5>
+# --
+<h5>$1</h5> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/header/h6 b/emacs.d/lisp/yasnippet/snippets/html-mode/header/h6 new file mode 100644 index 0000000..31dcbc6 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/header/h6 @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <h6>...</h6>
+# --
+<h6>$1</h6> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/hr b/emacs.d/lisp/yasnippet/snippets/html-mode/hr new file mode 100644 index 0000000..20e38b5 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/hr @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <hr /> +# -- +<hr /> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/href b/emacs.d/lisp/yasnippet/snippets/html-mode/href new file mode 100644 index 0000000..0425e6c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/href @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <a href="...">...</a> +# -- +<a href="$1">$2</a>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/html b/emacs.d/lisp/yasnippet/snippets/html-mode/html new file mode 100644 index 0000000..93a0ad7 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/html @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <html>...</html> +# -- +<html> + $0 +</html> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/html.xmlns b/emacs.d/lisp/yasnippet/snippets/html-mode/html.xmlns new file mode 100644 index 0000000..fd6adc8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/html.xmlns @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <html xmlns="...">...</html> +# -- +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="${1:en}" lang="${2:en}"> + $0 +</html> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/i.yasnippet b/emacs.d/lisp/yasnippet/snippets/html-mode/i.yasnippet new file mode 100755 index 0000000..46cfde9 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/i.yasnippet @@ -0,0 +1,4 @@ +#contributor : Xah Lee xahlee.org
+#name : <i>...</i>
+# --
+<i>$0</i>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/img b/emacs.d/lisp/yasnippet/snippets/html-mode/img new file mode 100644 index 0000000..674b1dc --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/img @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <img src="..." class="..." alt="..." /> +# -- +<img src="$1" class="$2" alt="$3" />
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/input b/emacs.d/lisp/yasnippet/snippets/html-mode/input new file mode 100644 index 0000000..1ad74f8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/input @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <input ... /> +# -- +<input type="$1" name="$2" value="$3" />
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/link.stylesheet b/emacs.d/lisp/yasnippet/snippets/html-mode/link.stylesheet new file mode 100644 index 0000000..0953396 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/link.stylesheet @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <link stylesheet="..." /> +# -- +<link rel="${1:stylesheet}" href="${2:url}" type="${3:text/css}" media="${4:screen}" />
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/link.stylesheet-ie b/emacs.d/lisp/yasnippet/snippets/html-mode/link.stylesheet-ie new file mode 100644 index 0000000..9cf9fec --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/link.stylesheet-ie @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <!--[if IE]><link stylesheet="..." /><![endif]--> +# -- +<!--[if IE]> +<link rel="${1:stylesheet}" href="${2:url}" type="${3:text/css}" media="${4:screen}" /> +<![endif]-->
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/list/dd b/emacs.d/lisp/yasnippet/snippets/html-mode/list/dd new file mode 100644 index 0000000..e447d4a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/list/dd @@ -0,0 +1,4 @@ +#contributor : Rodrigo Setti <rodrigosetti@gmail.com> +#name : <dd> ... </dd> +# -- +<dd>$1</dd> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/list/dl b/emacs.d/lisp/yasnippet/snippets/html-mode/list/dl new file mode 100644 index 0000000..a75c875 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/list/dl @@ -0,0 +1,6 @@ +#contributor : Rodrigo Setti <rodrigosetti@gmail.com> +#name : <dl> ... </dl> +# -- +<dl> + $0 +</dl> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/list/dl.id b/emacs.d/lisp/yasnippet/snippets/html-mode/list/dl.id new file mode 100644 index 0000000..28a6d37 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/list/dl.id @@ -0,0 +1,6 @@ +#contributor : Rodrigo Setti <rodrigosetti@gmail.com> +#name : <dl> ... </dl> +# -- +<dl id="$1"> + $0 +</dl> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/list/dt b/emacs.d/lisp/yasnippet/snippets/html-mode/list/dt new file mode 100644 index 0000000..024cce4 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/list/dt @@ -0,0 +1,4 @@ +#contributor : Rodrigo Setti <rodrigosetti@gmail.com> +#name : <dt> ... </dt> +# -- +<dt>$1</dt> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/list/li b/emacs.d/lisp/yasnippet/snippets/html-mode/list/li new file mode 100644 index 0000000..e9ad26e --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/list/li @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <li>...</li>
+# --
+<li>$1</li> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/list/li.class b/emacs.d/lisp/yasnippet/snippets/html-mode/list/li.class new file mode 100644 index 0000000..313f512 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/list/li.class @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <li class="...">...</li> +# -- +<li class="$1">$2</li> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/list/ol b/emacs.d/lisp/yasnippet/snippets/html-mode/list/ol new file mode 100644 index 0000000..b8f20af --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/list/ol @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <ol>...</ol>
+# --
+<ol>
+ $0
+</ol> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/list/ol.class b/emacs.d/lisp/yasnippet/snippets/html-mode/list/ol.class new file mode 100644 index 0000000..fc24485 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/list/ol.class @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <ol class="...">...</ol> +# -- +<ol class="$1"> + $0 +</ol> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/list/ol.id b/emacs.d/lisp/yasnippet/snippets/html-mode/list/ol.id new file mode 100644 index 0000000..1be3e7f --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/list/ol.id @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <ol id="...">...</ol>
+# --
+<ol id="$1">
+ $0
+</ol> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/list/ul b/emacs.d/lisp/yasnippet/snippets/html-mode/list/ul new file mode 100644 index 0000000..1b77287 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/list/ul @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <ul>...</ul>
+# --
+<ul>
+ $0
+</ul> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/list/ul.class b/emacs.d/lisp/yasnippet/snippets/html-mode/list/ul.class new file mode 100644 index 0000000..bc27649 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/list/ul.class @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <ul class="...">...</ul> +# -- +<ul class="$1"> + $0 +</ul> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/list/ul.id b/emacs.d/lisp/yasnippet/snippets/html-mode/list/ul.id new file mode 100644 index 0000000..9eba0cc --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/list/ul.id @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <ul id="...">...</ul>
+# --
+<ul id="$1">
+ $0
+</ul> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/mailto b/emacs.d/lisp/yasnippet/snippets/html-mode/mailto new file mode 100644 index 0000000..b134f2c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/mailto @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <a href="mailto:...@...">...</a> +# -- +<a href="mailto:$1@$2">$0</a>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/meta/doctype b/emacs.d/lisp/yasnippet/snippets/html-mode/meta/doctype new file mode 100644 index 0000000..91e1109 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/meta/doctype @@ -0,0 +1,3 @@ +#name : Doctype HTML 4.01 Strict +# -- +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/meta/doctype.xhml1 b/emacs.d/lisp/yasnippet/snippets/html-mode/meta/doctype.xhml1 new file mode 100644 index 0000000..63781f8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/meta/doctype.xhml1 @@ -0,0 +1,3 @@ +#name : DocType XHTML 1.0 frameset +# -- +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/meta/doctype.xhtml1_1 b/emacs.d/lisp/yasnippet/snippets/html-mode/meta/doctype.xhtml1_1 new file mode 100644 index 0000000..deaca2f --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/meta/doctype.xhtml1_1 @@ -0,0 +1,3 @@ +#name : DocType XHTML 1.1 +# -- +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/meta/doctype.xhtml1_strict b/emacs.d/lisp/yasnippet/snippets/html-mode/meta/doctype.xhtml1_strict new file mode 100644 index 0000000..1db1c92 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/meta/doctype.xhtml1_strict @@ -0,0 +1,3 @@ +#name : DocType XHTML 1.0 Strict +# -- +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/meta/doctype.xhtml1_transitional b/emacs.d/lisp/yasnippet/snippets/html-mode/meta/doctype.xhtml1_transitional new file mode 100644 index 0000000..e138ac4 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/meta/doctype.xhtml1_transitional @@ -0,0 +1,3 @@ +#name : DocType XHTML 1.0 Transitional +# -- +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/meta/meta b/emacs.d/lisp/yasnippet/snippets/html-mode/meta/meta new file mode 100644 index 0000000..cc52d48 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/meta/meta @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <meta name="..." content="..." />
+# --
+<meta name="${1:generator}" content="${2:content}" /> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/meta/meta.http-equiv b/emacs.d/lisp/yasnippet/snippets/html-mode/meta/meta.http-equiv new file mode 100644 index 0000000..c8cd77a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/meta/meta.http-equiv @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <meta http-equiv="..." content="..." />
+# --
+<meta http-equiv="${1:Content-Type}" content="${2:text/html; charset=UTF-8}" /> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/p b/emacs.d/lisp/yasnippet/snippets/html-mode/p new file mode 100644 index 0000000..579cc76 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/p @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <p>...</p> +# -- +<p>$1</p>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/pre b/emacs.d/lisp/yasnippet/snippets/html-mode/pre new file mode 100644 index 0000000..58e77cf --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/pre @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <pre>...</pre> +# -- +<pre> + $0 +</pre>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/q.yasnippet b/emacs.d/lisp/yasnippet/snippets/html-mode/q.yasnippet new file mode 100755 index 0000000..42e09bd --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/q.yasnippet @@ -0,0 +1,6 @@ +#contributor : Xah Lee xahlee.org +#name : <blockquote>...</blockquote> +# -- +<blockquote> +$0 +</blockquote> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/quote b/emacs.d/lisp/yasnippet/snippets/html-mode/quote new file mode 100644 index 0000000..694185b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/quote @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <blockquote>...</blockquote> +# -- +<blockquote> + $1 +</blockquote>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/script.javascript b/emacs.d/lisp/yasnippet/snippets/html-mode/script.javascript new file mode 100644 index 0000000..807f0ea --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/script.javascript @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name :<script type="text/javascript">...</script> +# -- +<script type="text/javascript"> + $0 +</script>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/script.javascript-src b/emacs.d/lisp/yasnippet/snippets/html-mode/script.javascript-src new file mode 100644 index 0000000..3e3cc3d --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/script.javascript-src @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name :<script type="text/javascript" src="..."></script> +# -- +<script type="text/javascript" src="$1"></script>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/span b/emacs.d/lisp/yasnippet/snippets/html-mode/span new file mode 100644 index 0000000..3dfdf2f --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/span @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <span>...</span> +# -- +<span>$1</span>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/span.class b/emacs.d/lisp/yasnippet/snippets/html-mode/span.class new file mode 100644 index 0000000..2d5ee55 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/span.class @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <span class="...">...</span> +# -- +<span class="$1">$2</span>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/span.id b/emacs.d/lisp/yasnippet/snippets/html-mode/span.id new file mode 100644 index 0000000..dbce842 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/span.id @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <span id="...">...</span> +# -- +<span id="$1">$2</span>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/style b/emacs.d/lisp/yasnippet/snippets/html-mode/style new file mode 100644 index 0000000..83285a2 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/style @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <style type="text/css" media="...">...</style> +# -- +<style type="text/css" media="${1:screen}"> + $0 +</style>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/table/table b/emacs.d/lisp/yasnippet/snippets/html-mode/table/table new file mode 100644 index 0000000..ec972aa --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/table/table @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <table ...>...</table>
+# --
+<table width="$1" cellspacing="$2" cellpadding="$3" border="$4">
+ $0
+</table> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/table/td b/emacs.d/lisp/yasnippet/snippets/html-mode/table/td new file mode 100644 index 0000000..87c18e3 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/table/td @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <td>...</td>
+# --
+<td$1>$2</td> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/table/th b/emacs.d/lisp/yasnippet/snippets/html-mode/table/th new file mode 100644 index 0000000..bce440b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/table/th @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <th>...</th>
+# --
+<th$1>$2</th> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/table/tr b/emacs.d/lisp/yasnippet/snippets/html-mode/table/tr new file mode 100644 index 0000000..e920c4f --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/table/tr @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com>
+#name : <tr>...</tr>
+# --
+<tr>
+ $0
+</tr> diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/textarea b/emacs.d/lisp/yasnippet/snippets/html-mode/textarea new file mode 100644 index 0000000..9553d7a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/textarea @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <textarea ...></textarea> +# -- +<textarea name="$1" id="$2" rows="$3" cols="$4" tabindex="$5"></textarea>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/html-mode/title b/emacs.d/lisp/yasnippet/snippets/html-mode/title new file mode 100644 index 0000000..01e368b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/html-mode/title @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu <frozenthrone88@gmail.com> +#name : <title>...</title> +# -- +<title>$1</title>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/latex-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/latex-mode/.yas-parents new file mode 100644 index 0000000..eed5b44 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/latex-mode/.yas-parents @@ -0,0 +1 @@ +text-mode diff --git a/emacs.d/lisp/yasnippet/snippets/latex-mode/begin b/emacs.d/lisp/yasnippet/snippets/latex-mode/begin new file mode 100644 index 0000000..dc42d2f --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/latex-mode/begin @@ -0,0 +1,7 @@ +#contributor : Rodrigo Setti <rodrigosetti@gmail.com> +#name : \begin{environment} ... \end{environment} +# -- + +\begin{${1:environment}} +$0 +\end{$1} diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/+ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/+ new file mode 100644 index 0000000..0407169 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/+ @@ -0,0 +1,5 @@ +#name : Unordered List +#contributor: Peng Deng <dengpeng@gmail.com> +# -- ++ ${1:Text} ++$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/- b/emacs.d/lisp/yasnippet/snippets/markdown-mode/- new file mode 100644 index 0000000..9d5c51d --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/- @@ -0,0 +1,5 @@ +#name : Unordered List +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +- ${1:Text} +-$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/markdown-mode/.yas-parents new file mode 100644 index 0000000..eed5b44 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/.yas-parents @@ -0,0 +1 @@ +text-mode diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/_ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/_ new file mode 100644 index 0000000..50ab476 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/_ @@ -0,0 +1,4 @@ +#name : Emphasis +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +_${1:Text}_ $0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/__ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/__ new file mode 100644 index 0000000..b6304f3 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/__ @@ -0,0 +1,4 @@ +#name : Strong +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +**${1:Text}** $0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/` b/emacs.d/lisp/yasnippet/snippets/markdown-mode/` new file mode 100644 index 0000000..ae58211 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/` @@ -0,0 +1,4 @@ +#name : Inline Code +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +\`${1:Code}\` $0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/h1.1 b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h1.1 new file mode 100644 index 0000000..8bb7ea2 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h1.1 @@ -0,0 +1,6 @@ +#name : Header 1 (#) +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +# ${1:Header 1} # + +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/h1.2 b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h1.2 new file mode 100644 index 0000000..d2e7b5b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h1.2 @@ -0,0 +1,7 @@ +#name : Header 1 (=) +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +${1:Header 1} +${1:$(make-string (string-width text) ?\=)} + +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/h2.1 b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h2.1 new file mode 100644 index 0000000..bfee3fc --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h2.1 @@ -0,0 +1,6 @@ +#name : Header 2 (##) +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +## ${1:Header 1} ## + +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/h2.2 b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h2.2 new file mode 100644 index 0000000..af06045 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h2.2 @@ -0,0 +1,7 @@ +#name : Header 2 (-) +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +${1:Header 2} +${1:$(make-string (string-width text) ?\-)} + +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/h3 b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h3 new file mode 100644 index 0000000..44a6104 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h3 @@ -0,0 +1,6 @@ +#name : Header 3 +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +### ${1:Header 3} ### + +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/h4 b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h4 new file mode 100644 index 0000000..315140a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h4 @@ -0,0 +1,6 @@ +#name : Header 4 +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +#### ${1:Header 4} #### + +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/h5 b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h5 new file mode 100644 index 0000000..f50a785 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h5 @@ -0,0 +1,6 @@ +#name : Header 5 +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +##### ${1:Header 5} ##### + +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/h6 b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h6 new file mode 100644 index 0000000..1cdfebb --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/h6 @@ -0,0 +1,6 @@ +#name : Header 6 +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +###### ${1:Header 6} ###### + +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/hr.1 b/emacs.d/lisp/yasnippet/snippets/markdown-mode/hr.1 new file mode 100644 index 0000000..5fbe4f4 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/hr.1 @@ -0,0 +1,7 @@ +#name : Horizontal Rule (-) +#contributor: Peng Deng <dengpeng@gmail.com> +# -- + +---------- + +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/hr.2 b/emacs.d/lisp/yasnippet/snippets/markdown-mode/hr.2 new file mode 100644 index 0000000..2d4de22 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/hr.2 @@ -0,0 +1,7 @@ +#name : Horizontal Rule (*) +#contributor: Peng Deng <dengpeng@gmail.com> +# -- + +******* + +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/img b/emacs.d/lisp/yasnippet/snippets/markdown-mode/img new file mode 100644 index 0000000..69ee77d --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/img @@ -0,0 +1,4 @@ +#name : Image +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +![${1:Alt Text}](${2:URL} $3) $0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/link b/emacs.d/lisp/yasnippet/snippets/markdown-mode/link new file mode 100644 index 0000000..dd7f99b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/link @@ -0,0 +1,4 @@ +#name : Link +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +[${1:Link Text}](${2:URL} $3) $0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/ol b/emacs.d/lisp/yasnippet/snippets/markdown-mode/ol new file mode 100644 index 0000000..e715669 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/ol @@ -0,0 +1,5 @@ +#name : Ordered List +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +${1:1}. ${2:Text} +${1:$(number-to-string (1+ (string-to-number text)))}. $0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/rimg b/emacs.d/lisp/yasnippet/snippets/markdown-mode/rimg new file mode 100644 index 0000000..caafb60 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/rimg @@ -0,0 +1,4 @@ +#name : Referenced Image +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +![${1:Alt Text}][$2] $0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/rlb b/emacs.d/lisp/yasnippet/snippets/markdown-mode/rlb new file mode 100644 index 0000000..681d9f0 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/rlb @@ -0,0 +1,5 @@ +#name : Reference Label +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +[${1:Reference}]: ${2:URL} $3 +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/markdown-mode/rlink b/emacs.d/lisp/yasnippet/snippets/markdown-mode/rlink new file mode 100644 index 0000000..e35a0c0 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/markdown-mode/rlink @@ -0,0 +1,4 @@ +#name : Reference Link +#contributor: Peng Deng <dengpeng@gmail.com> +# -- +[${1:Link Text}][$2] $0 diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/.yas-make-groups b/emacs.d/lisp/yasnippet/snippets/nxml-mode/.yas-make-groups new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/.yas-make-groups diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/nxml-mode/.yas-parents new file mode 100644 index 0000000..eed5b44 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/.yas-parents @@ -0,0 +1 @@ +text-mode diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/body b/emacs.d/lisp/yasnippet/snippets/nxml-mode/body new file mode 100644 index 0000000..9a9addc --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/body @@ -0,0 +1,6 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <body>...</body> +# -- +<body$1> + $0 +</body>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/br b/emacs.d/lisp/yasnippet/snippets/nxml-mode/br new file mode 100644 index 0000000..3e235ed --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/br @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <br /> +# -- +<br />
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/code b/emacs.d/lisp/yasnippet/snippets/nxml-mode/code new file mode 100644 index 0000000..15da807 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/code @@ -0,0 +1,6 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <code>...</code> +# -- +<code> + $0 +</code>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/div b/emacs.d/lisp/yasnippet/snippets/nxml-mode/div new file mode 100644 index 0000000..90fbc2e --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/div @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <div...>...</div> +# -- +<div$1>$0</div>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/form b/emacs.d/lisp/yasnippet/snippets/nxml-mode/form new file mode 100644 index 0000000..a83c4f9 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/form @@ -0,0 +1,6 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name :<form method="..." action="..."></form> +# -- +<form method="$1" action="$2"> + $0 +</form>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/head b/emacs.d/lisp/yasnippet/snippets/nxml-mode/head new file mode 100644 index 0000000..2a4865b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/head @@ -0,0 +1,6 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <head>...</head> +# -- +<head> + $0 +</head>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/header/h1 b/emacs.d/lisp/yasnippet/snippets/nxml-mode/header/h1 new file mode 100644 index 0000000..80e52e0 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/header/h1 @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <h1>...</h1>
+# --
+<h1>$1</h1> diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/header/h2 b/emacs.d/lisp/yasnippet/snippets/nxml-mode/header/h2 new file mode 100644 index 0000000..fcad88d --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/header/h2 @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <h2>...</h2>
+# --
+<h2>$1</h2> diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/header/h3 b/emacs.d/lisp/yasnippet/snippets/nxml-mode/header/h3 new file mode 100644 index 0000000..bce6a94 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/header/h3 @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <h3>...</h3>
+# --
+<h3>$1</h3> diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/header/h4 b/emacs.d/lisp/yasnippet/snippets/nxml-mode/header/h4 new file mode 100644 index 0000000..5214e24 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/header/h4 @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <h4>...</h4>
+# --
+<h4>$1</h4> diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/header/h5 b/emacs.d/lisp/yasnippet/snippets/nxml-mode/header/h5 new file mode 100644 index 0000000..74cb078 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/header/h5 @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <h5>...</h5>
+# --
+<h5>$1</h5> diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/header/h6 b/emacs.d/lisp/yasnippet/snippets/nxml-mode/header/h6 new file mode 100644 index 0000000..2803907 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/header/h6 @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net>
+#name : <h6>...</h6>
+# --
+<h6>$1</h6> diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/hr b/emacs.d/lisp/yasnippet/snippets/nxml-mode/hr new file mode 100644 index 0000000..85d4acb --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/hr @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <hr /> +# -- +<hr /> diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/href b/emacs.d/lisp/yasnippet/snippets/nxml-mode/href new file mode 100644 index 0000000..3da0ece --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/href @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <a href="...">...</a> +# -- +<a href="$1">$2</a>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/html b/emacs.d/lisp/yasnippet/snippets/nxml-mode/html new file mode 100644 index 0000000..fdcb784 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/html @@ -0,0 +1,6 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <html xmlns="...">...</html> +# -- +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="${1:en}" lang="${2:en}"> + $0 +</html> diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/img b/emacs.d/lisp/yasnippet/snippets/nxml-mode/img new file mode 100644 index 0000000..442d679 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/img @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <img src="..." alt="..." /> +# -- +<img src="$1" alt="$2" />
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/input b/emacs.d/lisp/yasnippet/snippets/nxml-mode/input new file mode 100644 index 0000000..56cfc09 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/input @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <input ... /> +# -- +<input type="$1" name="$2" value="$3" />
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/li b/emacs.d/lisp/yasnippet/snippets/nxml-mode/li new file mode 100644 index 0000000..0c4c9e4 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/li @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <li>...</li> +# -- +<li>$1</li>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/link b/emacs.d/lisp/yasnippet/snippets/nxml-mode/link new file mode 100644 index 0000000..d16475a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/link @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <link stylesheet="..." /> +# -- +<link rel="${1:stylesheet}" href="${2:url}" type="${3:text/css}" media="${4:screen}" />
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/meta/doctype b/emacs.d/lisp/yasnippet/snippets/nxml-mode/meta/doctype new file mode 100644 index 0000000..af8fb49 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/meta/doctype @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : DocType XHTML 1.1 +# -- +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/meta/doctype.xhtml1_strict b/emacs.d/lisp/yasnippet/snippets/nxml-mode/meta/doctype.xhtml1_strict new file mode 100644 index 0000000..bb0b7de --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/meta/doctype.xhtml1_strict @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : DocType XHTML 1.0 Strict +# -- +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/meta/doctype.xhtml1_transitional b/emacs.d/lisp/yasnippet/snippets/nxml-mode/meta/doctype.xhtml1_transitional new file mode 100644 index 0000000..c8c50d3 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/meta/doctype.xhtml1_transitional @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : DocType XHTML 1.0 Transitional +# -- +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/meta/meta b/emacs.d/lisp/yasnippet/snippets/nxml-mode/meta/meta new file mode 100644 index 0000000..a8d0e2f --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/meta/meta @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <meta name="..." content="..." /> +# -- +<meta name="${1:generator}" content="${2:content}" /> diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/name b/emacs.d/lisp/yasnippet/snippets/nxml-mode/name new file mode 100644 index 0000000..a7683d5 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/name @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <a name="..."></a> +# -- +<a name="$1"></a>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/ol b/emacs.d/lisp/yasnippet/snippets/nxml-mode/ol new file mode 100644 index 0000000..d7993be --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/ol @@ -0,0 +1,6 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <ol>...</ol> +# -- +<ol> + $0 +</ol>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/p b/emacs.d/lisp/yasnippet/snippets/nxml-mode/p new file mode 100644 index 0000000..c79b367 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/p @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <p>...</p> +# -- +<p>$1</p>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/pre b/emacs.d/lisp/yasnippet/snippets/nxml-mode/pre new file mode 100644 index 0000000..b92cabb --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/pre @@ -0,0 +1,6 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <pre>...</pre> +# -- +<pre> + $0 +</pre>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/quote b/emacs.d/lisp/yasnippet/snippets/nxml-mode/quote new file mode 100644 index 0000000..5e17c98 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/quote @@ -0,0 +1,6 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <blockquote>...</blockquote> +# -- +<blockquote> + $1 +</blockquote>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/span b/emacs.d/lisp/yasnippet/snippets/nxml-mode/span new file mode 100644 index 0000000..69d5332 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/span @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <span>...</span> +# -- +<span>$1</span>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/style b/emacs.d/lisp/yasnippet/snippets/nxml-mode/style new file mode 100644 index 0000000..1f462cd --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/style @@ -0,0 +1,6 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <style type="text/css" media="...">...</style> +# -- +<style type="text/css" media="${1:screen}"> + $0 +</style>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/table b/emacs.d/lisp/yasnippet/snippets/nxml-mode/table new file mode 100644 index 0000000..3d28497 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/table @@ -0,0 +1,6 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <table>...</table> +# -- +<table> + $0 +</table>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/tag.1l b/emacs.d/lisp/yasnippet/snippets/nxml-mode/tag.1l new file mode 100644 index 0000000..8988635 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/tag.1l @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <tag>...</tag> +# -- +<${1:tag}>$2</$1>$0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/tag.2l b/emacs.d/lisp/yasnippet/snippets/nxml-mode/tag.2l new file mode 100644 index 0000000..08b4a26 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/tag.2l @@ -0,0 +1,6 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <tag> \n...\n</tag> +# -- +<${1:tag}> + $2 +</$1>$0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/td b/emacs.d/lisp/yasnippet/snippets/nxml-mode/td new file mode 100644 index 0000000..4543d5c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/td @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <td>...</td> +# -- +<td$1>$2</td>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/th b/emacs.d/lisp/yasnippet/snippets/nxml-mode/th new file mode 100644 index 0000000..4b679ef --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/th @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <th>...</th> +# -- +<th$1>$2</th>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/title b/emacs.d/lisp/yasnippet/snippets/nxml-mode/title new file mode 100644 index 0000000..581d8bb --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/title @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <title>...</title> +# -- +<title>$1</title>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/tr b/emacs.d/lisp/yasnippet/snippets/nxml-mode/tr new file mode 100644 index 0000000..6726429 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/tr @@ -0,0 +1,6 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <tr>...</tr> +# -- +<tr> + $0 +</tr>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/nxml-mode/ul b/emacs.d/lisp/yasnippet/snippets/nxml-mode/ul new file mode 100644 index 0000000..0462dd1 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/nxml-mode/ul @@ -0,0 +1,6 @@ +#contributor : Anders Bach Nielsen <abachn@abachn.net> +#name : <ul>...</ul> +# -- +<ul> + $0 +</ul>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/objc-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/objc-mode/.yas-parents new file mode 100644 index 0000000..ce9828b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/objc-mode/.yas-parents @@ -0,0 +1 @@ +cc-mode diff --git a/emacs.d/lisp/yasnippet/snippets/objc-mode/prop b/emacs.d/lisp/yasnippet/snippets/objc-mode/prop new file mode 100644 index 0000000..4d585db --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/objc-mode/prop @@ -0,0 +1,13 @@ +#name : foo { ... } ; setFoo { ... } +# -- +- (${1:id})${2:foo} +{ + return $2; +} + +- (void)set${2:$(capitalize text)}:($1)aValue +{ + [$2 autorelease]; + $2 = [aValue retain]; +} +$0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/perl-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/perl-mode/.yas-parents new file mode 100644 index 0000000..eed5b44 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/perl-mode/.yas-parents @@ -0,0 +1 @@ +text-mode diff --git a/emacs.d/lisp/yasnippet/snippets/perl-mode/eval b/emacs.d/lisp/yasnippet/snippets/perl-mode/eval new file mode 100644 index 0000000..c1f1e1b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/perl-mode/eval @@ -0,0 +1,8 @@ +#name : eval { ... } if ($@) { ... } +# -- +eval { + ${1:# do something risky...} +}; +if (\$@) { + ${2:# handle failure...} +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/perl-mode/for b/emacs.d/lisp/yasnippet/snippets/perl-mode/for new file mode 100644 index 0000000..ec5532f --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/perl-mode/for @@ -0,0 +1,5 @@ +#name : for (...) { ... } +# -- +for (my \$${1:var} = 0; \$$1 < ${2:expression}; \$$1++) { + ${3:# body...} +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/perl-mode/fore b/emacs.d/lisp/yasnippet/snippets/perl-mode/fore new file mode 100644 index 0000000..c878a0e --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/perl-mode/fore @@ -0,0 +1,5 @@ +#name : foreach ... { ... } +# -- +foreach my \$${1:x} (@${2:array}) { + ${3:# body...} +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/perl-mode/if b/emacs.d/lisp/yasnippet/snippets/perl-mode/if new file mode 100644 index 0000000..3191b97 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/perl-mode/if @@ -0,0 +1,5 @@ +#name : if (...) { ... } +# -- +if ($1) { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/perl-mode/ife b/emacs.d/lisp/yasnippet/snippets/perl-mode/ife new file mode 100644 index 0000000..23f7cf6 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/perl-mode/ife @@ -0,0 +1,7 @@ +#name : if (...) { ... } else { ... } +# -- +if ($1) { + $2 +} else { + $3 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/perl-mode/ifee b/emacs.d/lisp/yasnippet/snippets/perl-mode/ifee new file mode 100644 index 0000000..7c187d1 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/perl-mode/ifee @@ -0,0 +1,9 @@ +#name : if, elsif, else ... +# -- +if ($1) { + ${2:# body...} +} elsif ($3) { + ${4:# elsif...} +} else { + ${5:# else...} +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/perl-mode/sub b/emacs.d/lisp/yasnippet/snippets/perl-mode/sub new file mode 100644 index 0000000..5ab54d7 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/perl-mode/sub @@ -0,0 +1,5 @@ +#name : sub ... { ... } +# -- +sub ${1:function_name} { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/perl-mode/unless b/emacs.d/lisp/yasnippet/snippets/perl-mode/unless new file mode 100644 index 0000000..baeffa2 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/perl-mode/unless @@ -0,0 +1,5 @@ +#name : unless (...) { ... } +# -- +unless ($1) { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/perl-mode/while b/emacs.d/lisp/yasnippet/snippets/perl-mode/while new file mode 100644 index 0000000..9c2c470 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/perl-mode/while @@ -0,0 +1,5 @@ +#name : while (...) { ... } +# -- +while ($1) { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/perl-mode/xfore b/emacs.d/lisp/yasnippet/snippets/perl-mode/xfore new file mode 100644 index 0000000..58e455d --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/perl-mode/xfore @@ -0,0 +1,3 @@ +#name : ... foreach ... +# -- +${1:expression} foreach @${2:array};
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/perl-mode/xif b/emacs.d/lisp/yasnippet/snippets/perl-mode/xif new file mode 100644 index 0000000..1d4dba8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/perl-mode/xif @@ -0,0 +1,3 @@ +#name : ... if ... +# -- +${1:expression} if ${2:condition}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/perl-mode/xunless b/emacs.d/lisp/yasnippet/snippets/perl-mode/xunless new file mode 100644 index 0000000..f456db3 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/perl-mode/xunless @@ -0,0 +1,3 @@ +#name : ... unless ... +# -- +${1:expression} unless ${2:condition}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/perl-mode/xwhile b/emacs.d/lisp/yasnippet/snippets/perl-mode/xwhile new file mode 100644 index 0000000..2515586 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/perl-mode/xwhile @@ -0,0 +1,3 @@ +#name : ... while ... +# -- +${1:expression} while ${2:condition};
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/python-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/python-mode/.yas-parents new file mode 100644 index 0000000..eed5b44 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/python-mode/.yas-parents @@ -0,0 +1 @@ +text-mode diff --git a/emacs.d/lisp/yasnippet/snippets/python-mode/__ b/emacs.d/lisp/yasnippet/snippets/python-mode/__ new file mode 100644 index 0000000..a67dc49 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/python-mode/__ @@ -0,0 +1,3 @@ +#name : __...__ +# -- +__${init}__
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/python-mode/class b/emacs.d/lisp/yasnippet/snippets/python-mode/class new file mode 100644 index 0000000..72f339b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/python-mode/class @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# name: class +# contributor: Orestis Markou +# contributor: Nishio Hirokazu +# contributor: Yasser González Fernández <yglez@uh.cu> +# -- +class ${1:ClassName}(${2:object}): + """$3 + """ + + def __init__(self, $4): + """$5 + ${4:$ + (let* ((indent + (concat "\n" (make-string (current-column) 32))) + (args + (mapconcat + '(lambda (x) + (if (not (string= (nth 0 x) "")) + (concat "- " (char-to-string 96) (nth 0 x) + (char-to-string 96) ":"))) + (mapcar + '(lambda (x) + (mapcar + (lambda (x) + (replace-regexp-in-string "[[:blank:]]*$" "" + (replace-regexp-in-string "^[[:blank:]]*" "" x))) x)) + (mapcar '(lambda (x) (split-string x "=")) + (split-string text ","))) + indent))) + (if (string= args "") + (make-string 3 34) + (mapconcat + 'identity + (list "" "Arguments:" args (make-string 3 34)) + indent))) + } + ${4:$ + (mapconcat + '(lambda (x) + (if (not (string= (nth 0 x) "")) + (concat "self._" (nth 0 x) " = " (nth 0 x)))) + (mapcar + '(lambda (x) + (mapcar + '(lambda (x) + (replace-regexp-in-string "[[:blank:]]*$" "" + (replace-regexp-in-string "^[[:blank:]]*" "" x))) + x)) + (mapcar '(lambda (x) (split-string x "=")) + (split-string text ","))) + (concat "\n" (make-string (current-column) 32))) + } + $0 diff --git a/emacs.d/lisp/yasnippet/snippets/python-mode/def b/emacs.d/lisp/yasnippet/snippets/python-mode/def new file mode 100644 index 0000000..f82f791 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/python-mode/def @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# name: def +# contributor: Orestis Markou +# contributor: Yasser González Fernández <yglez@uh.cu> +# -- +def ${1:name}($2): + """$3 + ${2:$ + (let* + ((indent + (concat "\n" (make-string (current-column) 32))) + (args + (mapconcat + '(lambda (x) + (if (not (string= (nth 0 x) "")) + (concat "- " (char-to-string 96) (nth 0 x) + (char-to-string 96) ":"))) + (mapcar + '(lambda (x) + (mapcar + '(lambda (x) + (replace-regexp-in-string "[[:blank:]]*$" "" + (replace-regexp-in-string "^[[:blank:]]*" "" x))) + x)) + (mapcar '(lambda (x) (split-string x "=")) + (split-string text ","))) + indent))) + (if (string= args "") + (make-string 3 34) + (mapconcat + 'identity + (list "" "Arguments:" args (make-string 3 34)) + indent))) + } + $0 diff --git a/emacs.d/lisp/yasnippet/snippets/python-mode/defm b/emacs.d/lisp/yasnippet/snippets/python-mode/defm new file mode 100644 index 0000000..5b2aee4 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/python-mode/defm @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# name: defm +# contributor: Yasser Gonz¨¢lez Fern¨¢ndez <yglez@uh.cu> +# -- +def ${1:name}(self, $2): + """$3 + ${2:$ + (let* ((indent + (concat "\n" (make-string (current-column) 32))) + (args + (mapconcat + '(lambda (x) + (if (not (string= (nth 0 x) "")) + (concat "- " (char-to-string 96) (nth 0 x) + (char-to-string 96) ":"))) + (mapcar + '(lambda (x) + (mapcar + '(lambda (x) + (replace-regexp-in-string "[[:blank:]]*$" "" + (replace-regexp-in-string "^[[:blank:]]*" "" x))) + x)) + (mapcar '(lambda (x) (split-string x "=")) + (split-string text ","))) + indent))) + (if (string= args "") + (make-string 3 34) + (mapconcat + 'identity + (list "" "Arguments:" args (make-string 3 34)) + indent))) + } + $0 diff --git a/emacs.d/lisp/yasnippet/snippets/python-mode/for b/emacs.d/lisp/yasnippet/snippets/python-mode/for new file mode 100644 index 0000000..84f3ddd --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/python-mode/for @@ -0,0 +1,4 @@ +#name : for ... in ... : ... +# -- +for ${var} in ${collection}: + $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/python-mode/ifmain b/emacs.d/lisp/yasnippet/snippets/python-mode/ifmain new file mode 100644 index 0000000..6224923 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/python-mode/ifmain @@ -0,0 +1,4 @@ +#name : if __name__ == '__main__': ... +# -- +if __name__ == '__main__': + $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/python-mode/prop b/emacs.d/lisp/yasnippet/snippets/python-mode/prop new file mode 100644 index 0000000..107730a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/python-mode/prop @@ -0,0 +1,15 @@ +# contributor: Mads D. Kristensen <madsdk@gmail.com> +# name: prop +# -- +def ${1:foo}(): + doc = """${2:Doc string}""" + def fget(self): + return self._$1 + def fset(self, value): + self._$1 = value + def fdel(self): + del self._$1 + return locals() +$1 = property(**$1()) + +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/python-mode/propg b/emacs.d/lisp/yasnippet/snippets/python-mode/propg new file mode 100644 index 0000000..63a9d98 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/python-mode/propg @@ -0,0 +1,9 @@ +#contributor : Julio Carlos Menendez <godinblack@gmail.com> +#name : _get_foo ... foo=property(...) +# -- +def _get_${1:foo}(self): + return self._$1 + +$1 = property(_get_$1) + +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/python-mode/propsg b/emacs.d/lisp/yasnippet/snippets/python-mode/propsg new file mode 100644 index 0000000..73f1690 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/python-mode/propsg @@ -0,0 +1,12 @@ +#contributor : Julio Carlos Menendez <godinblack@gmail.com> +#name : _get_foo ... _set_foo ... foo=property(...) +# -- +def _set_${1:foo}(self, value): + self._$1 = value + +def _get_$1(self): + return self._$1 + +$1 = property(_get_$1, _set_$1) + +$0 diff --git a/emacs.d/lisp/yasnippet/snippets/python-mode/while b/emacs.d/lisp/yasnippet/snippets/python-mode/while new file mode 100644 index 0000000..704dd7c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/python-mode/while @@ -0,0 +1,4 @@ +#name : while ... : ... +# -- +while ${condition}: + $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/rst-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/rst-mode/.yas-parents new file mode 100644 index 0000000..eed5b44 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/rst-mode/.yas-parents @@ -0,0 +1 @@ +text-mode diff --git a/emacs.d/lisp/yasnippet/snippets/rst-mode/chap b/emacs.d/lisp/yasnippet/snippets/rst-mode/chap new file mode 100644 index 0000000..6474c00 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/rst-mode/chap @@ -0,0 +1,6 @@ +#name : Chapter title +# -- +${1:Chapter} +${1:$(make-string (string-width text) ?\=)} + +$0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/rst-mode/sec b/emacs.d/lisp/yasnippet/snippets/rst-mode/sec new file mode 100644 index 0000000..76087ed --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/rst-mode/sec @@ -0,0 +1,6 @@ +#name : Section title +# -- +${1:Section} +${1:$(make-string (string-width text) ?\-)} + +$0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/rst-mode/tit b/emacs.d/lisp/yasnippet/snippets/rst-mode/tit new file mode 100644 index 0000000..cac2e77 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/rst-mode/tit @@ -0,0 +1,7 @@ +#name : Document title +# -- +${1:$(make-string (string-width text) ?\=)} +${1:Title} +${1:$(make-string (string-width text) ?\=)} + +$0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/.yas-make-groups b/emacs.d/lisp/yasnippet/snippets/ruby-mode/.yas-make-groups new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/.yas-make-groups diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/ruby-mode/.yas-parents new file mode 100644 index 0000000..eed5b44 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/.yas-parents @@ -0,0 +1 @@ +text-mode diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/all b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/all new file mode 100644 index 0000000..afb68a7 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/all @@ -0,0 +1,3 @@ +#name : all? { |...| ... } +# -- +all? { |${e}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/any b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/any new file mode 100644 index 0000000..2f4f9f1 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/any @@ -0,0 +1,3 @@ +#name : any? { |...| ... } +# -- +any? { |${e}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/classify b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/classify new file mode 100644 index 0000000..d1ad6f3 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/classify @@ -0,0 +1,3 @@ +#name : classify { |...| ... } +# -- +classify { |${e}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/collect b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/collect new file mode 100644 index 0000000..37cd4b5 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/collect @@ -0,0 +1,3 @@ +#name : collect { |...| ... } +# -- +collect { |${e}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/deli b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/deli new file mode 100644 index 0000000..f51d9a6 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/deli @@ -0,0 +1,3 @@ +#name : delete_if { |...| ... } +# -- +delete_if { |${e} $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/det b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/det new file mode 100644 index 0000000..599898c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/det @@ -0,0 +1,3 @@ +#name : detect { |...| ... } +# -- +detect { |${e}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/ea b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/ea new file mode 100644 index 0000000..40cb2cd --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/ea @@ -0,0 +1,3 @@ +#name : each { |...| ... } +# -- +each { |${e}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eac b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eac new file mode 100644 index 0000000..7a7ccd4 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eac @@ -0,0 +1,3 @@ +#name : each_cons(...) { |...| ... } +# -- +each_cons(${1:2}) { |${group}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eai b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eai new file mode 100644 index 0000000..b68cf69 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eai @@ -0,0 +1,3 @@ +#name : each_index { |i| ... } +# -- +each_index { |${i}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eav b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eav new file mode 100644 index 0000000..189ceff --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eav @@ -0,0 +1,3 @@ +#name : each_value { |val| ... } +# -- +each_value { |${val}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eawi b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eawi new file mode 100644 index 0000000..8718f7a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eawi @@ -0,0 +1,3 @@ +#name : each_with_index { |e, i| ... } +# -- +each_with_index { |${e}, ${i}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/inject b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/inject new file mode 100644 index 0000000..eaa0f28 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/inject @@ -0,0 +1,3 @@ +#name : inject(...) { |...| ... } +# -- +inject(${1:0}) { |${2:injection}, ${3:element}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/reject b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/reject new file mode 100644 index 0000000..032b06d --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/reject @@ -0,0 +1,3 @@ +#name : reject { |...| ... } +# -- +reject { |${1:element}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/select b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/select new file mode 100644 index 0000000..5ea4ef8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/select @@ -0,0 +1,3 @@ +#name : select { |...| ... } +# -- +select { |${1:element}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/zip b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/zip new file mode 100644 index 0000000..910de64 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/zip @@ -0,0 +1,3 @@ +#name : zip(...) { |...| ... } +# -- +zip(${enums}) { |${row}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/forin b/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/forin new file mode 100644 index 0000000..197e09e --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/forin @@ -0,0 +1,5 @@ +#name : for ... in ...; ... end +# -- +for ${1:element} in ${2:collection} + $0 +end diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/if b/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/if new file mode 100644 index 0000000..c96069b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/if @@ -0,0 +1,5 @@ +#name : if ... end +# -- +if ${1:condition} + $0 +end diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/ife b/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/ife new file mode 100644 index 0000000..959d77c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/ife @@ -0,0 +1,7 @@ +#name : if ... else ... end +# -- +if ${1:condition} + $2 +else + $3 +end diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/tim b/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/tim new file mode 100644 index 0000000..44023c0 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/tim @@ -0,0 +1,3 @@ +#name : times { |n| ... } +# -- +times { |${n}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/until b/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/until new file mode 100644 index 0000000..b3534a8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/until @@ -0,0 +1,5 @@ +#name : until ... end +# -- +until ${condition} + $0 +end diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/upt b/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/upt new file mode 100644 index 0000000..73c0046 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/upt @@ -0,0 +1,5 @@ +#name : upto(...) { |n| ... } +# -- +upto(${n}) { |${i}| + $0 +} diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/when b/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/when new file mode 100644 index 0000000..51f63a3 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/when @@ -0,0 +1,5 @@ +#name : when ... end +# -- +when ${condition} + $0 +end diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/while b/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/while new file mode 100644 index 0000000..00e114f --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/while @@ -0,0 +1,5 @@ +#name : while ... end +# -- +while ${condition} + $0 +end diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/Comp b/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/Comp new file mode 100644 index 0000000..7afea97 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/Comp @@ -0,0 +1,7 @@ +#name : include Comparable; def <=> ... end +# -- +include Comparable + +def <=> other + $0 +end diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/am b/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/am new file mode 100644 index 0000000..68ceff0 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/am @@ -0,0 +1,3 @@ +#name : alias_method new, old +# -- +alias_method :${new_name}, :${old_name} diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/cla b/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/cla new file mode 100644 index 0000000..da71b10 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/cla @@ -0,0 +1,5 @@ +#name : class << self ... end +# -- +class << ${self} + $0 +end diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/cls b/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/cls new file mode 100644 index 0000000..64ef27e --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/cls @@ -0,0 +1,12 @@ +#name : class ... end +#contributor : hitesh <hitesh.jasani@gmail.com> +# -- +class ${1:`(let ((fn (capitalize (file-name-nondirectory + (file-name-sans-extension + (or (buffer-file-name) + (buffer-name (current-buffer)))))))) + (cond + ((string-match "_" fn) (replace-match "" nil nil fn)) + (t fn)))`} + $0 +end diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/mm b/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/mm new file mode 100644 index 0000000..7b348d7 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/mm @@ -0,0 +1,5 @@ +#name : def method_missing ... end +# -- +def method_missing(method, *args) + $0 +end diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/r b/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/r new file mode 100644 index 0000000..b933a13 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/r @@ -0,0 +1,3 @@ +#name : attr_reader ... +# -- +attr_reader : diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/rw b/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/rw new file mode 100644 index 0000000..7153541 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/rw @@ -0,0 +1,3 @@ +#name : attr_accessor ... +# -- +attr_accessor : diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/w b/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/w new file mode 100644 index 0000000..cd6d473 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/definitions/w @@ -0,0 +1,3 @@ +#name : attr_writer ... +# -- +attr_writer : diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/# b/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/# new file mode 100644 index 0000000..b9e3f8a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/# @@ -0,0 +1,3 @@ +#name : # => +# -- +# => diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/=b b/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/=b new file mode 100644 index 0000000..e396723 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/=b @@ -0,0 +1,5 @@ +#name : =begin rdoc ... =end +# -- +=begin rdoc + $0 +=end diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/app b/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/app new file mode 100644 index 0000000..b151ccc --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/app @@ -0,0 +1,5 @@ +#name : if __FILE__ == $PROGRAM_NAME ... end +# -- +if __FILE__ == $PROGRAM_NAME + $0 +end diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/bm b/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/bm new file mode 100644 index 0000000..44fb2b6 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/bm @@ -0,0 +1,5 @@ +#name : Benchmark.bmbm(...) do ... end +# -- +Benchmark.bmbm(${1:10}) do |x| + $0 +end diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/case b/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/case new file mode 100644 index 0000000..b919081 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/case @@ -0,0 +1,6 @@ +#name : case ... end +# -- +case ${1:object} +when ${2:condition} + $0 +end diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/dee b/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/dee new file mode 100644 index 0000000..496e187 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/dee @@ -0,0 +1,3 @@ +#name : deep_copy(...) +# -- +Marshal.load(Marshal.dump($0)) diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/rb b/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/rb new file mode 100644 index 0000000..9153653 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/rb @@ -0,0 +1,3 @@ +#name : /usr/bin/ruby -wKU +# -- +#!/usr/bin/ruby -wKU diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/req b/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/req new file mode 100644 index 0000000..3ada7d5 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/req @@ -0,0 +1,3 @@ +#name : require "..." +# -- +require "$0" diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/rreq b/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/rreq new file mode 100644 index 0000000..ff80c71 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/rreq @@ -0,0 +1,3 @@ +#name : require File.join(File.dirname(__FILE__), ...) +# -- +require File.join(File.dirname(__FILE__), $0) diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/y b/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/y new file mode 100644 index 0000000..a57fbde --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/general/y @@ -0,0 +1,3 @@ +#name : :yields: arguments (rdoc) +# -- +:yields: $0 diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/scala-mode/.yas-parents new file mode 100644 index 0000000..eed5b44 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/.yas-parents @@ -0,0 +1 @@ +text-mode diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/act b/emacs.d/lisp/yasnippet/snippets/scala-mode/act new file mode 100644 index 0000000..fce52fc --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/act @@ -0,0 +1,10 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : def act = { ..} +# -- +def act = { + loop { + react { + $0 + } + } +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/act.arg b/emacs.d/lisp/yasnippet/snippets/scala-mode/act.arg new file mode 100644 index 0000000..fc6df9e --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/act.arg @@ -0,0 +1,10 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : def act(arg: T) = { ..} +# -- +def act(${1:arg}: ${2:type}) = { + loop { + react { + $0 + } + } +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/actor b/emacs.d/lisp/yasnippet/snippets/scala-mode/actor new file mode 100644 index 0000000..d38a183 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/actor @@ -0,0 +1,10 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : val a = actor { ..} +# -- +val a = actor { + loop { + react { + $0 + } + } +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/ano b/emacs.d/lisp/yasnippet/snippets/scala-mode/ano new file mode 100644 index 0000000..b949801 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/ano @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : (args) => ... +# -- +($1) => ${2:body} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/app b/emacs.d/lisp/yasnippet/snippets/scala-mode/app new file mode 100644 index 0000000..b89bab9 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/app @@ -0,0 +1,6 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : object name extends Application +# -- +object ${1:name} extends Application { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/arr.new b/emacs.d/lisp/yasnippet/snippets/scala-mode/arr.new new file mode 100644 index 0000000..e3297ca --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/arr.new @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : Array[T](..) +# -- +Array[${1:value}](${2:args}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/arr.val-new b/emacs.d/lisp/yasnippet/snippets/scala-mode/arr.val-new new file mode 100644 index 0000000..4de4720 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/arr.val-new @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : val a = Array[T](..) +# -- +val ${1:arr} = Array[${2:value}](${3:args}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/asof b/emacs.d/lisp/yasnippet/snippets/scala-mode/asof new file mode 100644 index 0000000..3b2b209 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/asof @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : asInstanceOf[T] +# -- +asInstanceOf[${1:type}] $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/ass b/emacs.d/lisp/yasnippet/snippets/scala-mode/ass new file mode 100644 index 0000000..653dcef --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/ass @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : assert(x === y) +# -- +assert(${1:x} === ${2:y}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/ass.true b/emacs.d/lisp/yasnippet/snippets/scala-mode/ass.true new file mode 100644 index 0000000..923c518 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/ass.true @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : assert(true) +# -- +assert(true) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/at.author b/emacs.d/lisp/yasnippet/snippets/scala-mode/at.author new file mode 100644 index 0000000..82fe4cc --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/at.author @@ -0,0 +1,4 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : @author name +# -- +@author ${1:name} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/at.param b/emacs.d/lisp/yasnippet/snippets/scala-mode/at.param new file mode 100644 index 0000000..72b6e79 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/at.param @@ -0,0 +1,4 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : @param name description +# -- +@param ${1:name} ${2:description} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/at.return b/emacs.d/lisp/yasnippet/snippets/scala-mode/at.return new file mode 100644 index 0000000..9c3f41c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/at.return @@ -0,0 +1,4 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : @return description +# -- +@return ${1:description} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/at.version b/emacs.d/lisp/yasnippet/snippets/scala-mode/at.version new file mode 100644 index 0000000..1158ce2 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/at.version @@ -0,0 +1,4 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : @version number +# -- +@version ${1:0.1} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/bang b/emacs.d/lisp/yasnippet/snippets/scala-mode/bang new file mode 100644 index 0000000..a547da8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/bang @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : actor ! message +# -- +${1:actor} ! ${2:message} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/case b/emacs.d/lisp/yasnippet/snippets/scala-mode/case new file mode 100644 index 0000000..13d6aec --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/case @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : case pattern => +# -- +case ${1:pattern} => $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/case.match-all b/emacs.d/lisp/yasnippet/snippets/scala-mode/case.match-all new file mode 100644 index 0000000..028bf5f --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/case.match-all @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : case _ => +# -- +case _ => $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/cast b/emacs.d/lisp/yasnippet/snippets/scala-mode/cast new file mode 100644 index 0000000..3b2b209 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/cast @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : asInstanceOf[T] +# -- +asInstanceOf[${1:type}] $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/cc b/emacs.d/lisp/yasnippet/snippets/scala-mode/cc new file mode 100644 index 0000000..7ed1142 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/cc @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : case class T(arg: A) +# -- +case class ${1:name}(${2:arg}: ${3:type}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/cl b/emacs.d/lisp/yasnippet/snippets/scala-mode/cl new file mode 100644 index 0000000..1fd712c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/cl @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : class T { .. } +# -- +class ${1:name} { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/cl.abs b/emacs.d/lisp/yasnippet/snippets/scala-mode/cl.abs new file mode 100644 index 0000000..402dec7 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/cl.abs @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : abstract class T { .. } +# -- +abstract class ${1:name} { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/cl.abs-arg b/emacs.d/lisp/yasnippet/snippets/scala-mode/cl.abs-arg new file mode 100644 index 0000000..fe29524 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/cl.abs-arg @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : abstract class T(args) { .. } +# -- +abstract class ${1:name}(${2:args}) { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/cl.arg b/emacs.d/lisp/yasnippet/snippets/scala-mode/cl.arg new file mode 100644 index 0000000..f82460f --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/cl.arg @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : class T(args) { .. } +# -- +class ${1:name}(${2:args}) { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/clof b/emacs.d/lisp/yasnippet/snippets/scala-mode/clof new file mode 100644 index 0000000..955726c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/clof @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : classOf[T] +# -- +classOf[${1:type}] $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/co b/emacs.d/lisp/yasnippet/snippets/scala-mode/co new file mode 100644 index 0000000..75b1f3b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/co @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : case object T +# -- +case object ${1:name} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/cons b/emacs.d/lisp/yasnippet/snippets/scala-mode/cons new file mode 100644 index 0000000..a48e4ff --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/cons @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : element1 :: element2 +# -- +${1:element1} :: ${2:element2} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/cons.nil b/emacs.d/lisp/yasnippet/snippets/scala-mode/cons.nil new file mode 100644 index 0000000..c288f93 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/cons.nil @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : element1 :: Nil +# -- +${1:element1} :: Nil $0 diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg new file mode 100644 index 0000000..7765bbf --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : def f(arg: T) = ... +# -- +def ${1:name}(${2:args}) = $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg-body b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg-body new file mode 100644 index 0000000..e6e278e --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg-body @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : def f(arg: T) = {...} +# -- +def ${1:name}(${2:args}) = { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg-ret b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg-ret new file mode 100644 index 0000000..dddb9ce --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg-ret @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : def f(arg: T): R = ... +# -- +def ${1:name}(${2:args}): ${3:Unit} = $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg-ret-body b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg-ret-body new file mode 100644 index 0000000..862f7fd --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg-ret-body @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : def f(arg: T): R = {...} +# -- +def ${1:name}(${2:args}): ${3:Unit} = { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/def.body b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.body new file mode 100644 index 0000000..858908c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.body @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : def f = {...} +# -- +def ${1:name} = { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/def.ret b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.ret new file mode 100644 index 0000000..e5483fb --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.ret @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : def f: R = ... +# -- +def ${1:name}: ${2:Unit} = $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/def.ret-body b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.ret-body new file mode 100644 index 0000000..f342e04 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.ret-body @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : def f: R = {...} +# -- +def ${1:name}: ${3:Unit} = { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/def.simple b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.simple new file mode 100644 index 0000000..4814c73 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.simple @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : def f = ... +# -- +def ${1:name} = $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.class b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.class new file mode 100644 index 0000000..60442f1 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.class @@ -0,0 +1,8 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : /** cls/trt/obj name */ +# -- +/** + * `(scala-mode-find-clstrtobj-name-doc)` + * ${1:description} + * $0 + */
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.def b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.def new file mode 100644 index 0000000..8a3d614 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.def @@ -0,0 +1,6 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : /** method name */ +# -- +/** + * `(scala-mode-def-and-args-doc)` + */
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.file b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.file new file mode 100644 index 0000000..7da4289 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.file @@ -0,0 +1,9 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : /** file name */ +# -- +/** + * `(scala-mode-file-doc)` + * $0 + * @author ${1:name} + * @version ${2:0.1} + */
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.file-scala b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.file-scala new file mode 100644 index 0000000..6719348 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.file-scala @@ -0,0 +1,16 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : /** scala file */ +# -- +/* __ *\ +** ________ ___ / / ___ Scala $3 ** +** / __/ __// _ | / / / _ | (c) 2005-`(format-time-string "%Y")` , LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** +** /____/\___/_/ |_/____/_/ | | ** +** |/ ** +\* */ +/** + * $0 + * @author ${1:name} + * @version ${2:0.1} + * $Id$ + */
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.file-scala-api b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.file-scala-api new file mode 100644 index 0000000..4a762f5 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.file-scala-api @@ -0,0 +1,16 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : /** scala api file */ +# -- +/* __ *\ +** ________ ___ / / ___ Scala API ** +** / __/ __// _ | / / / _ | (c) 2005-`(format-time-string "%Y")`, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** +** /____/\___/_/ |_/____/_/ | | ** +** |/ ** +\* */ +/** + * $0 + * @author ${1:name} + * @version ${2:0.1} + * $Id$ + */
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.scaladoc b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.scaladoc new file mode 100644 index 0000000..038428c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.scaladoc @@ -0,0 +1,7 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : /** ... */ +# -- +/** + * ${1:description} + * $0 + */
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/expect b/emacs.d/lisp/yasnippet/snippets/scala-mode/expect new file mode 100644 index 0000000..94c742c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/expect @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : expect(value) { ..} +# -- +expect(${1:reply}) { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/ext b/emacs.d/lisp/yasnippet/snippets/scala-mode/ext new file mode 100644 index 0000000..e256317 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/ext @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : extends T +# -- +extends $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/for.extract b/emacs.d/lisp/yasnippet/snippets/scala-mode/for.extract new file mode 100644 index 0000000..60f1155 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/for.extract @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : x <- xs +# -- +${1:x} <- ${2:xs}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/for.if b/emacs.d/lisp/yasnippet/snippets/scala-mode/for.if new file mode 100644 index 0000000..f44c544 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/for.if @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : for (x <- xs if guard) { ... } +# -- +for (${1:x} <- ${2:xs} if ${3:guard}) { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/for.loop b/emacs.d/lisp/yasnippet/snippets/scala-mode/for.loop new file mode 100644 index 0000000..050d5e8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/for.loop @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : for (x <- xs) { ... } +# -- +for (${1:x} <- ${2:xs}) { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/for.multi b/emacs.d/lisp/yasnippet/snippets/scala-mode/for.multi new file mode 100644 index 0000000..c512067 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/for.multi @@ -0,0 +1,9 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : for {x <- xs \ y <- ys} { yield } +# -- +for { + ${1:x} <- ${2:xs} + ${3:x} <- ${4:xs} +} { + yield $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/foreach b/emacs.d/lisp/yasnippet/snippets/scala-mode/foreach new file mode 100644 index 0000000..cafdd00 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/foreach @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : foreach(x => ..) +# -- +foreach(${1:x} => ${2:body}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/hmap.new b/emacs.d/lisp/yasnippet/snippets/scala-mode/hmap.new new file mode 100644 index 0000000..dd564a0 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/hmap.new @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : new HashMap[K, V] +# -- +new HashMap[${1:key}, ${2:value}] $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/hmap.val-new b/emacs.d/lisp/yasnippet/snippets/scala-mode/hmap.val-new new file mode 100644 index 0000000..2f4a3c2 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/hmap.val-new @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : val m = new HashMap[K, V] +# -- +val ${1:m} = new HashMap[${2:key}, ${3:value}] $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/hset.new b/emacs.d/lisp/yasnippet/snippets/scala-mode/hset.new new file mode 100644 index 0000000..d1be3ee --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/hset.new @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : new HashSet[K] +# -- +new HashSet[${1:key}] $0 diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/hset.val-new b/emacs.d/lisp/yasnippet/snippets/scala-mode/hset.val-new new file mode 100644 index 0000000..ba792a2 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/hset.val-new @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : val m = new HashSet[K] +# -- +val ${1:m} = new HashSet[${2:key}] $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/if b/emacs.d/lisp/yasnippet/snippets/scala-mode/if new file mode 100644 index 0000000..24891c0 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/if @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : if (cond) { .. } +# -- +if (${1:condition}) { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/if.else b/emacs.d/lisp/yasnippet/snippets/scala-mode/if.else new file mode 100644 index 0000000..ebff471 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/if.else @@ -0,0 +1,8 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : if (cond) { .. } else { .. } +# -- +if (${1:condition}) { + $2 +} else { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/imp b/emacs.d/lisp/yasnippet/snippets/scala-mode/imp new file mode 100644 index 0000000..cf5efa1 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/imp @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : import .. +# -- +import $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/intercept b/emacs.d/lisp/yasnippet/snippets/scala-mode/intercept new file mode 100644 index 0000000..4725eaa --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/intercept @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : intercept(classOf[T]) { ..} +# -- +intercept(classOf[${1:Exception]}) { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/isof b/emacs.d/lisp/yasnippet/snippets/scala-mode/isof new file mode 100644 index 0000000..a3538c8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/isof @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : isInstanceOf[T] +# -- +isInstanceOf[${1:type}] $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/ls.new b/emacs.d/lisp/yasnippet/snippets/scala-mode/ls.new new file mode 100644 index 0000000..7a28e61 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/ls.new @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : List(..) +# -- +List(${1:args}, ${2:args}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/ls.val-new b/emacs.d/lisp/yasnippet/snippets/scala-mode/ls.val-new new file mode 100644 index 0000000..37138f0 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/ls.val-new @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : val l = List(..) +# -- +val ${1:l} = List(${2:args}, ${3:args}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/main b/emacs.d/lisp/yasnippet/snippets/scala-mode/main new file mode 100644 index 0000000..ad314b3 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/main @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name: def main(args: Array[String]) = { ... } +# -- +def main(args: Array[String]) = { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/map b/emacs.d/lisp/yasnippet/snippets/scala-mode/map new file mode 100644 index 0000000..17322a5 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/map @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : map(x => ..) +# -- +map(${1:x} => ${2:body}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/map.new b/emacs.d/lisp/yasnippet/snippets/scala-mode/map.new new file mode 100644 index 0000000..21c95fb --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/map.new @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : Map(key -> value) +# -- +Map(${1:key} -> ${2:value}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/match b/emacs.d/lisp/yasnippet/snippets/scala-mode/match new file mode 100644 index 0000000..e85fac1 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/match @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : cc match { .. } +# -- +${1:cc} match { + case ${2:pattern} => $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/match.can b/emacs.d/lisp/yasnippet/snippets/scala-mode/match.can new file mode 100644 index 0000000..77d475b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/match.can @@ -0,0 +1,11 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : can match { case Full(res) => .. } +# -- +${1:option} match { + case Full(res) => $0 + + case Empty => + + case Failure(msg, _, _) => + +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/match.option b/emacs.d/lisp/yasnippet/snippets/scala-mode/match.option new file mode 100644 index 0000000..5b098f1 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/match.option @@ -0,0 +1,8 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : option match { case None => .. } +# -- +${1:option} match { + case None => $0 + case Some(res) => + +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/mix b/emacs.d/lisp/yasnippet/snippets/scala-mode/mix new file mode 100644 index 0000000..5261e32 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/mix @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : trait T { .. } +# -- +trait ${1:name} { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/ob b/emacs.d/lisp/yasnippet/snippets/scala-mode/ob new file mode 100644 index 0000000..efbc82e --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/ob @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : object name extends T +# -- +object ${1:name} extends ${2:type} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/pac b/emacs.d/lisp/yasnippet/snippets/scala-mode/pac new file mode 100644 index 0000000..ed32216 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/pac @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : package .. +# -- +package $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.newline b/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.newline new file mode 100644 index 0000000..77088cb --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.newline @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : println(..) +# -- +println(${1:obj}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.simple b/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.simple new file mode 100644 index 0000000..3a73f9d --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.simple @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : print(..) +# -- +print(${1:obj}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.string b/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.string new file mode 100644 index 0000000..9c06ef7 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.string @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : println("..") +# -- +println("${1:msg}") $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.trace b/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.trace new file mode 100644 index 0000000..9a0579c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.trace @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : println("obj: " + obj) +# -- +println("${1:obj}: " + ${1:obj}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/pri b/emacs.d/lisp/yasnippet/snippets/scala-mode/pri new file mode 100644 index 0000000..643ef2c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/pri @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : private +# -- +private $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/pri.param b/emacs.d/lisp/yasnippet/snippets/scala-mode/pri.param new file mode 100644 index 0000000..e53638a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/pri.param @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : private[this] +# -- +private[${1:this}] $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/pro b/emacs.d/lisp/yasnippet/snippets/scala-mode/pro new file mode 100644 index 0000000..e4b7b59 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/pro @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : protected +# -- +protected $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/pro.param b/emacs.d/lisp/yasnippet/snippets/scala-mode/pro.param new file mode 100644 index 0000000..712b050 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/pro.param @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : protected[this] +# -- +protected[${1:this}] $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/suite b/emacs.d/lisp/yasnippet/snippets/scala-mode/suite new file mode 100644 index 0000000..a65cea7 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/suite @@ -0,0 +1,8 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : class T extends Suite { .. } +# -- +import org.scalatest._ + +class ${1:name} extends Suite { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/test b/emacs.d/lisp/yasnippet/snippets/scala-mode/test new file mode 100644 index 0000000..c4d13f6 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/test @@ -0,0 +1,7 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : @Test def testX = ... +# -- +//@Test +def test${1:name} = { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/throw b/emacs.d/lisp/yasnippet/snippets/scala-mode/throw new file mode 100644 index 0000000..f9a4932 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/throw @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : throw new Exception +# -- +throw new ${1:Exception}(${2:msg}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/tr b/emacs.d/lisp/yasnippet/snippets/scala-mode/tr new file mode 100644 index 0000000..68d8162 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/tr @@ -0,0 +1,6 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : trait T { .. } +# -- +trait ${1:name} { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/tr.ext b/emacs.d/lisp/yasnippet/snippets/scala-mode/tr.ext new file mode 100644 index 0000000..2b82154 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/tr.ext @@ -0,0 +1,6 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : trait T extends C { .. } +# -- +trait ${1:name} extends ${2:class} { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/tr.ext-with b/emacs.d/lisp/yasnippet/snippets/scala-mode/tr.ext-with new file mode 100644 index 0000000..8edb409 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/tr.ext-with @@ -0,0 +1,6 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : trait T1 extends C with T2 { .. } +# -- +trait ${1:name} extends ${2:class} with ${3:trait} { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/tr.with b/emacs.d/lisp/yasnippet/snippets/scala-mode/tr.with new file mode 100644 index 0000000..19801eb --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/tr.with @@ -0,0 +1,6 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : trait T1 with T2 { .. } +# -- +trait ${1:name} with ${2:trait} { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/try b/emacs.d/lisp/yasnippet/snippets/scala-mode/try new file mode 100644 index 0000000..0c33f10 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/try @@ -0,0 +1,9 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : try { .. } catch { case e => ..} +# -- +try { + $0 +} catch { + case ${1:e}: ${2:Exception} => + ${1:println(\"ERROR: \" + e) // TODO: handle exception}\n} +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/try.catch-finally b/emacs.d/lisp/yasnippet/snippets/scala-mode/try.catch-finally new file mode 100644 index 0000000..f146a20 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/try.catch-finally @@ -0,0 +1,11 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : try { .. } catch { case e => ..} finally { ..} +# -- +try { + $0 +} catch { + case ${1:e}: ${2:Exception} => + ${1:println(\"ERROR: \" + e) // TODO: handle exception}\n} +} finally { + +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/try.finally b/emacs.d/lisp/yasnippet/snippets/scala-mode/try.finally new file mode 100644 index 0000000..63625f2 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/try.finally @@ -0,0 +1,8 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : try { .. } finally { .. } +# -- +try { + +} finally { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/tup.arrow b/emacs.d/lisp/yasnippet/snippets/scala-mode/tup.arrow new file mode 100644 index 0000000..4e7ad69 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/tup.arrow @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : element1 -> element2 +# -- +${1:element1} -> ${2:element2} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/tup.paren b/emacs.d/lisp/yasnippet/snippets/scala-mode/tup.paren new file mode 100644 index 0000000..4bff202 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/tup.paren @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : (element1, element2) +# -- +(${1:element1}, ${2:element2}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/val b/emacs.d/lisp/yasnippet/snippets/scala-mode/val new file mode 100644 index 0000000..3067cd4 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/val @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : val name = .. +# -- +val ${1:name} = ${2:obj} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/val.new b/emacs.d/lisp/yasnippet/snippets/scala-mode/val.new new file mode 100644 index 0000000..35a0c6a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/val.new @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : val name = new .. +# -- +val ${1:name} = new ${2:obj} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/val.ret b/emacs.d/lisp/yasnippet/snippets/scala-mode/val.ret new file mode 100644 index 0000000..4bf4f10 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/val.ret @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : val name: T = .. +# -- +val ${1:name}: ${2:T} = ${3:obj} $0 diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/var b/emacs.d/lisp/yasnippet/snippets/scala-mode/var new file mode 100644 index 0000000..662d6c8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/var @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : var name = .. +# -- +var ${1:name} = ${2:obj} $0 diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/var.new b/emacs.d/lisp/yasnippet/snippets/scala-mode/var.new new file mode 100644 index 0000000..d681c4a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/var.new @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : var name = new .. +# -- +var ${1:name} = new ${2:obj} $0 diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/var.ret b/emacs.d/lisp/yasnippet/snippets/scala-mode/var.ret new file mode 100644 index 0000000..9d0ac3a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/var.ret @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : var name: T = .. +# -- +var ${1:name}: ${2:T} = ${3:obj} $0 diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/whi b/emacs.d/lisp/yasnippet/snippets/scala-mode/whi new file mode 100644 index 0000000..082c139 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/whi @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : while(cond) { .. } +# -- +while (${1:condition}) { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/with b/emacs.d/lisp/yasnippet/snippets/scala-mode/with new file mode 100644 index 0000000..6bd94e4 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/with @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : with T +# -- +with $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/snippet-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/snippet-mode/.yas-parents new file mode 100644 index 0000000..eed5b44 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/snippet-mode/.yas-parents @@ -0,0 +1 @@ +text-mode diff --git a/emacs.d/lisp/yasnippet/snippets/snippet-mode/field b/emacs.d/lisp/yasnippet/snippets/snippet-mode/field new file mode 100644 index 0000000..bdaf0d4 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/snippet-mode/field @@ -0,0 +1,5 @@ +# name : ${ ... } field +# contributor : joaotavora +# key : $f +# -- +\${${1:${2:n}:}$3${4:\$(${5:lisp-fn})}\}$0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/snippet-mode/mirror b/emacs.d/lisp/yasnippet/snippets/snippet-mode/mirror new file mode 100644 index 0000000..1c32eeb --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/snippet-mode/mirror @@ -0,0 +1,5 @@ +# name : ${n:$(...)} mirror +# key : $m +# contributor : joaotavora +# -- +\${${2:n}:${4:\$(${5:reflection-fn})}\}$0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/snippet-mode/vars b/emacs.d/lisp/yasnippet/snippets/snippet-mode/vars new file mode 100644 index 0000000..0e8a0a5 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/snippet-mode/vars @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name : Snippet header +# contributor : joaotavora +# -- +# name : $1${2: +# key : ${3:trigger-key}}${4: +# keybinding : ${5:keybinding}}${6: +# expand-env : (${7:})} +# contributor : $6 +# -- +$0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/sql-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/sql-mode/.yas-parents new file mode 100644 index 0000000..eed5b44 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/sql-mode/.yas-parents @@ -0,0 +1 @@ +text-mode diff --git a/emacs.d/lisp/yasnippet/snippets/sql-mode/column b/emacs.d/lisp/yasnippet/snippets/sql-mode/column new file mode 100644 index 0000000..90e4963 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/sql-mode/column @@ -0,0 +1,4 @@ +#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +#name : , ColumnName ColumnType NOT NULL... +# -- + , ${1:Name} ${2:Type} ${3:NOT NULL} diff --git a/emacs.d/lisp/yasnippet/snippets/sql-mode/constraint b/emacs.d/lisp/yasnippet/snippets/sql-mode/constraint new file mode 100644 index 0000000..989e508 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/sql-mode/constraint @@ -0,0 +1,4 @@ +#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +#name : CONSTRAINT [..] PRIMARY KEY ... +# -- +CONSTRAINT [${1:PK_Name}] PRIMARY KEY ${2:CLUSTERED} ([${3:ColumnName}]) diff --git a/emacs.d/lisp/yasnippet/snippets/sql-mode/constraint.1 b/emacs.d/lisp/yasnippet/snippets/sql-mode/constraint.1 new file mode 100644 index 0000000..98d89f0 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/sql-mode/constraint.1 @@ -0,0 +1,4 @@ +#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +#name : CONSTRAINT [..] FOREIGN KEY ... +# -- +CONSTRAINT [${1:FK_Name}] FOREIGN KEY ${2:CLUSTERED} ([${3:ColumnName}]) diff --git a/emacs.d/lisp/yasnippet/snippets/sql-mode/create b/emacs.d/lisp/yasnippet/snippets/sql-mode/create new file mode 100644 index 0000000..a34624d --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/sql-mode/create @@ -0,0 +1,10 @@ +#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +#name : create table ... +# -- +CREATE TABLE [${1:dbo}].[${2:TableName}] +( + ${3:Id} ${4:INT IDENTITY(1,1)} ${5:NOT NULL} +$0 + CONSTRAINT [${6:PK_}] PRIMARY KEY ${7:CLUSTERED} ([$3]) +) +GO diff --git a/emacs.d/lisp/yasnippet/snippets/sql-mode/create.1 b/emacs.d/lisp/yasnippet/snippets/sql-mode/create.1 new file mode 100644 index 0000000..1323daf --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/sql-mode/create.1 @@ -0,0 +1,12 @@ +#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +#name : create procedure ... +# -- +CREATE PROCEDURE [${1:dbo}].[${2:Name}] +( + $3 $4 = ${5:NULL} ${6:OUTPUT} +) +AS +BEGIN +$0 +END +GO diff --git a/emacs.d/lisp/yasnippet/snippets/sql-mode/references b/emacs.d/lisp/yasnippet/snippets/sql-mode/references new file mode 100644 index 0000000..f2e4eab --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/sql-mode/references @@ -0,0 +1,4 @@ +#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +#name : REFERENCES ... +# -- +REFERENCES ${1:TableName}([${2:ColumnName}]) diff --git a/emacs.d/lisp/yasnippet/snippets/text-mode/email b/emacs.d/lisp/yasnippet/snippets/text-mode/email new file mode 100644 index 0000000..1ac7f94 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/text-mode/email @@ -0,0 +1,3 @@ +#name : (user's email) +# -- +`(replace-regexp-in-string "@" "@NOSPAM." user-mail-address)`
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/text-mode/time b/emacs.d/lisp/yasnippet/snippets/text-mode/time new file mode 100644 index 0000000..d744f1a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/text-mode/time @@ -0,0 +1,3 @@ +#name : (current time) +# -- +`(current-time-string)`
\ No newline at end of file |