From 897eee81de8b3f6adf0165f50e95600a7b89c20c Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Wed, 4 Feb 2015 21:41:42 +0100 Subject: Standalone lisp and snippet repo --- .../mysnippets/text-mode/cc-mode/c++-mode/beginend | 3 --- .../mysnippets/text-mode/cc-mode/c++-mode/class | 8 -------- .emacs.d/mysnippets/text-mode/cc-mode/c++-mode/ns | 3 --- .../mysnippets/text-mode/cc-mode/c++-mode/template | 3 --- .../mysnippets/text-mode/cc-mode/c++-mode/using | 4 ---- .emacs.d/mysnippets/text-mode/cc-mode/c-mode/fopen | 3 --- .emacs.d/mysnippets/text-mode/cc-mode/c-mode/printf | 6 ------ .../mysnippets/text-mode/cc-mode/csharp-mode/attrib | 7 ------- .../text-mode/cc-mode/csharp-mode/attrib.1 | 21 --------------------- .../text-mode/cc-mode/csharp-mode/attrib.2 | 21 --------------------- .../mysnippets/text-mode/cc-mode/csharp-mode/class | 21 --------------------- .../text-mode/cc-mode/csharp-mode/comment | 6 ------ .../text-mode/cc-mode/csharp-mode/comment.1 | 4 ---- .../text-mode/cc-mode/csharp-mode/comment.2 | 4 ---- .../text-mode/cc-mode/csharp-mode/comment.3 | 4 ---- .../mysnippets/text-mode/cc-mode/csharp-mode/method | 10 ---------- .../text-mode/cc-mode/csharp-mode/namespace | 7 ------- .../mysnippets/text-mode/cc-mode/csharp-mode/prop | 16 ---------------- .../mysnippets/text-mode/cc-mode/csharp-mode/region | 6 ------ .../mysnippets/text-mode/cc-mode/csharp-mode/using | 4 ---- .../text-mode/cc-mode/csharp-mode/using.1 | 4 ---- .../text-mode/cc-mode/csharp-mode/using.2 | 4 ---- .emacs.d/mysnippets/text-mode/cc-mode/do | 6 ------ .emacs.d/mysnippets/text-mode/cc-mode/for | 6 ------ .emacs.d/mysnippets/text-mode/cc-mode/if | 6 ------ .emacs.d/mysnippets/text-mode/cc-mode/inc | 3 --- .emacs.d/mysnippets/text-mode/cc-mode/inc.1 | 3 --- .emacs.d/mysnippets/text-mode/cc-mode/main | 7 ------- .../mysnippets/text-mode/cc-mode/objc-mode/prop | 13 ------------- .emacs.d/mysnippets/text-mode/cc-mode/once | 8 -------- .emacs.d/mysnippets/text-mode/cc-mode/struct | 6 ------ 31 files changed, 227 deletions(-) delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/c++-mode/beginend delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/c++-mode/class delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/c++-mode/ns delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/c++-mode/template delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/c++-mode/using delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/c-mode/fopen delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/c-mode/printf delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/attrib delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/attrib.1 delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/attrib.2 delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/class delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/comment delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/comment.1 delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/comment.2 delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/comment.3 delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/method delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/namespace delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/prop delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/region delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/using delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/using.1 delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/using.2 delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/do delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/for delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/if delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/inc delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/inc.1 delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/main delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/objc-mode/prop delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/once delete mode 100644 .emacs.d/mysnippets/text-mode/cc-mode/struct (limited to '.emacs.d/mysnippets/text-mode/cc-mode') diff --git a/.emacs.d/mysnippets/text-mode/cc-mode/c++-mode/beginend b/.emacs.d/mysnippets/text-mode/cc-mode/c++-mode/beginend deleted file mode 100644 index 68303e2..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/c++-mode/beginend +++ /dev/null @@ -1,3 +0,0 @@ -#name : v.begin(), v.end() -# -- -${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 deleted file mode 100644 index 820fc6c..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/c++-mode/class +++ /dev/null @@ -1,8 +0,0 @@ -#name : class ... { ... } -# -- -class ${1:Name} -{ -public: - ${1:$(yas/substr text "[^: ]*")}($2); - virtual ~${1:$(yas/substr text "[^: ]*")}(); -}; \ No newline at end of file diff --git a/.emacs.d/mysnippets/text-mode/cc-mode/c++-mode/ns b/.emacs.d/mysnippets/text-mode/cc-mode/c++-mode/ns deleted file mode 100644 index 0c2513f..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/c++-mode/ns +++ /dev/null @@ -1,3 +0,0 @@ -#name : namespace ... -# -- -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 deleted file mode 100644 index 7e50616..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/c++-mode/template +++ /dev/null @@ -1,3 +0,0 @@ -#name : template -# -- -template \ 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 deleted file mode 100644 index 13d0f5d..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/c++-mode/using +++ /dev/null @@ -1,4 +0,0 @@ -#name : using namespace ... -# -- -using namespace ${std}; -$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 deleted file mode 100644 index 044c743..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/c-mode/fopen +++ /dev/null @@ -1,3 +0,0 @@ -#name : FILE *fp = fopen(..., ...); -# -- -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 deleted file mode 100644 index 055461d..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/c-mode/printf +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name : printf -# contributor : joaotavora -# -- -printf ("${1:%s}\\n"${1:$(if (string-match "%" text) "," "\);") -}$2${1:$(if (string-match "%" text) "\);" "")} \ No newline at end of file diff --git a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/attrib b/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/attrib deleted file mode 100644 index 9e14e22..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/attrib +++ /dev/null @@ -1,7 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : private attribute ....; -# -- -/// -/// $3 -/// -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 deleted file mode 100644 index 099cc7b..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/attrib.1 +++ /dev/null @@ -1,21 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : private attribute ....; public property ... ... { ... } -# -- -/// -/// $3 -/// -private $1 $2; - -/// -/// $4 -/// -/// $5 -public $1 $2 -{ - get { - return this.$2; - } - set { - this.$2 = value; - } -} 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 deleted file mode 100644 index 566eacf..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/attrib.2 +++ /dev/null @@ -1,21 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : private _attribute ....; public Property ... ... { ... } -# -- -/// -/// $3 -/// -private $1 ${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")}; - -/// -/// ${3:Description} -/// -/// $1 -public ${1:Type} ${2:Name} -{ - get { - return this.${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")}; - } - set { - this.${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")} = value; - } -} diff --git a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/class b/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/class deleted file mode 100644 index 1cce2e8..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/class +++ /dev/null @@ -1,21 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : class ... { ... } -# -- -${5:public} class ${1:Name} -{ - #region Ctor & Destructor - /// - /// ${3:Standard Constructor} - /// - public $1($2) - { - } - - /// - /// ${4:Default Destructor} - /// - public ~$1() - { - } - #endregion -} diff --git a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/comment b/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/comment deleted file mode 100644 index 3bd20d3..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/comment +++ /dev/null @@ -1,6 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : /// ... -# -- -/// -/// $1 -/// 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 deleted file mode 100644 index 3c14ad9..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/comment.1 +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : /// ... -# -- -/// $2 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 deleted file mode 100644 index 63a6a20..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/comment.2 +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : /// ... -# -- -/// $1 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 deleted file mode 100644 index 394c323..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/comment.3 +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : /// ... -# -- -/// $2 diff --git a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/method b/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/method deleted file mode 100644 index e9a5906..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/method +++ /dev/null @@ -1,10 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : public void Method { ... } -# -- -/// -/// ${5:Description} -/// ${2:$(if (string= (upcase text) "VOID") "" (format "%s%s%s" "\n/// " text ""))} -${1:public} ${2:void} ${3:MethodName}($4) -{ -$0 -} diff --git a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/namespace b/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/namespace deleted file mode 100644 index af7c928..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/namespace +++ /dev/null @@ -1,7 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : namespace .. { ... } -# -- -namespace $1 -{ -$0 -} diff --git a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/prop b/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/prop deleted file mode 100644 index df9df91..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/prop +++ /dev/null @@ -1,16 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : property ... ... { ... } -# -- -/// -/// $5 -/// -/// $6 -$1 $2 $3 -{ - get { - return this.$4; - } - set { - this.$4 = value; - } -} diff --git a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/region b/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/region deleted file mode 100644 index 83f9a24..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/region +++ /dev/null @@ -1,6 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : #region ... #endregion -# -- -#region $1 -$0 -#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 deleted file mode 100644 index 704637e..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/using +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : using ...; -# -- -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 deleted file mode 100644 index e9f0bb0..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/using.1 +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : using System; -# -- -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 deleted file mode 100644 index 0a3c07d..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/using.2 +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : using System....; -# -- -using System.$1; diff --git a/.emacs.d/mysnippets/text-mode/cc-mode/do b/.emacs.d/mysnippets/text-mode/cc-mode/do deleted file mode 100644 index 5f7a313..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/do +++ /dev/null @@ -1,6 +0,0 @@ -#name : do { ... } while (...) -# -- -do -{ - $0 -} 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 deleted file mode 100644 index c4cade6..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/for +++ /dev/null @@ -1,6 +0,0 @@ -#name : for (...; ...; ...) { ... } -# -- -for (${1:int i = 0}; ${2:i < N}; ${3:++i}) -{ - $0 -} \ 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 deleted file mode 100644 index c3fe10d..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/if +++ /dev/null @@ -1,6 +0,0 @@ -#name : if (...) { ... } -# -- -if (${1:condition}) -{ - $0 -} \ 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 deleted file mode 100644 index ae33328..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/inc +++ /dev/null @@ -1,3 +0,0 @@ -#name : #include "..." -# -- -#include "$1" diff --git a/.emacs.d/mysnippets/text-mode/cc-mode/inc.1 b/.emacs.d/mysnippets/text-mode/cc-mode/inc.1 deleted file mode 100644 index 66326cd..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/inc.1 +++ /dev/null @@ -1,3 +0,0 @@ -#name : #include <...> -# -- -#include <$1> diff --git a/.emacs.d/mysnippets/text-mode/cc-mode/main b/.emacs.d/mysnippets/text-mode/cc-mode/main deleted file mode 100644 index 9249049..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/main +++ /dev/null @@ -1,7 +0,0 @@ -#name: int main(argc, argv) { ... } -# -- -int main(int argc, char *argv[]) -{ - $0 - return 0; -} diff --git a/.emacs.d/mysnippets/text-mode/cc-mode/objc-mode/prop b/.emacs.d/mysnippets/text-mode/cc-mode/objc-mode/prop deleted file mode 100644 index 4d585db..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/objc-mode/prop +++ /dev/null @@ -1,13 +0,0 @@ -#name : foo { ... } ; setFoo { ... } -# -- -- (${1:id})${2:foo} -{ - return $2; -} - -- (void)set${2:$(capitalize text)}:($1)aValue -{ - [$2 autorelease]; - $2 = [aValue retain]; -} -$0 \ No newline at end of file diff --git a/.emacs.d/mysnippets/text-mode/cc-mode/once b/.emacs.d/mysnippets/text-mode/cc-mode/once deleted file mode 100644 index 1b63c39..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/once +++ /dev/null @@ -1,8 +0,0 @@ -#name : #ifndef XXX; #define XXX; #endif -# -- -#ifndef ${1:_`(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))`_H_} -#define $1 - -$0 - -#endif /* $1 */ \ No newline at end of file diff --git a/.emacs.d/mysnippets/text-mode/cc-mode/struct b/.emacs.d/mysnippets/text-mode/cc-mode/struct deleted file mode 100644 index f50dabf..0000000 --- a/.emacs.d/mysnippets/text-mode/cc-mode/struct +++ /dev/null @@ -1,6 +0,0 @@ -#name : struct ... { ... } -# -- -struct ${1:name} -{ - $0 -}; \ No newline at end of file -- cgit v1.3