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