summaryrefslogtreecommitdiff
path: root/.emacs.d/mysnippets/text-mode/cc-mode
diff options
context:
space:
mode:
authorSimeon Simeonov2015-02-04 21:41:42 +0100
committerSimeon Simeonov2015-02-04 21:41:42 +0100
commit897eee81de8b3f6adf0165f50e95600a7b89c20c (patch)
tree5ee19c07c40e822e15a6443e5db5601c28913454 /.emacs.d/mysnippets/text-mode/cc-mode
parent9a46567eb167e5aef4b2e760c5d6bdc4fe1ba06a (diff)
Standalone lisp and snippet repo
Diffstat (limited to '.emacs.d/mysnippets/text-mode/cc-mode')
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/c++-mode/beginend3
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/c++-mode/class8
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/c++-mode/ns3
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/c++-mode/template3
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/c++-mode/using4
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/c-mode/fopen3
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/c-mode/printf6
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/attrib7
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/attrib.121
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/attrib.221
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/class21
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/comment6
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/comment.14
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/comment.24
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/comment.34
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/method10
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/namespace7
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/prop16
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/region6
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/using4
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/using.14
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/using.24
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/do6
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/for6
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/if6
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/inc3
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/inc.13
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/main7
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/objc-mode/prop13
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/once8
-rw-r--r--.emacs.d/mysnippets/text-mode/cc-mode/struct6
31 files changed, 0 insertions, 227 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
deleted file mode 100644
index 68303e2..0000000
--- a/.emacs.d/mysnippets/text-mode/cc-mode/c++-mode/beginend
+++ /dev/null
@@ -1,3 +0,0 @@
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
deleted file mode 100644
index 820fc6c..0000000
--- a/.emacs.d/mysnippets/text-mode/cc-mode/c++-mode/class
+++ /dev/null
@@ -1,8 +0,0 @@
1#name : class ... { ... }
2# --
3class ${1:Name}
4{
5public:
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
deleted file mode 100644
index 0c2513f..0000000
--- a/.emacs.d/mysnippets/text-mode/cc-mode/c++-mode/ns
+++ /dev/null
@@ -1,3 +0,0 @@
1#name : namespace ...
2# --
3namespace \ 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 @@
1#name : template <typename ...>
2# --
3template <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
deleted file mode 100644
index 13d0f5d..0000000
--- a/.emacs.d/mysnippets/text-mode/cc-mode/c++-mode/using
+++ /dev/null
@@ -1,4 +0,0 @@
1#name : using namespace ...
2# --
3using 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
deleted file mode 100644
index 044c743..0000000
--- a/.emacs.d/mysnippets/text-mode/cc-mode/c-mode/fopen
+++ /dev/null
@@ -1,3 +0,0 @@
1#name : FILE *fp = fopen(..., ...);
2# --
3FILE *${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 @@
1# -*- mode: snippet -*-
2# name : printf
3# contributor : joaotavora
4# --
5printf ("${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
deleted file mode 100644
index 9e14e22..0000000
--- a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/attrib
+++ /dev/null
@@ -1,7 +0,0 @@
1#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
2#name : private attribute ....;
3# --
4/// <summary>
5/// $3
6/// </summary>
7private $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 @@
1#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
2#name : private attribute ....; public property ... ... { ... }
3# --
4/// <summary>
5/// $3
6/// </summary>
7private $1 $2;
8
9/// <summary>
10/// $4
11/// </summary>
12/// <value>$5</value>
13public $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
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 @@
1#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
2#name : private _attribute ....; public Property ... ... { ... }
3# --
4/// <summary>
5/// $3
6/// </summary>
7private $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>
13public ${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
deleted file mode 100644
index 1cce2e8..0000000
--- a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/class
+++ /dev/null
@@ -1,21 +0,0 @@
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
deleted file mode 100644
index 3bd20d3..0000000
--- a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/comment
+++ /dev/null
@@ -1,6 +0,0 @@
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
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 @@
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
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 @@
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
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 @@
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
deleted file mode 100644
index e9a5906..0000000
--- a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/method
+++ /dev/null
@@ -1,10 +0,0 @@
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
deleted file mode 100644
index af7c928..0000000
--- a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/namespace
+++ /dev/null
@@ -1,7 +0,0 @@
1#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
2#name : namespace .. { ... }
3# --
4namespace $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
deleted file mode 100644
index df9df91..0000000
--- a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/prop
+++ /dev/null
@@ -1,16 +0,0 @@
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
deleted file mode 100644
index 83f9a24..0000000
--- a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/region
+++ /dev/null
@@ -1,6 +0,0 @@
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
deleted file mode 100644
index 704637e..0000000
--- a/.emacs.d/mysnippets/text-mode/cc-mode/csharp-mode/using
+++ /dev/null
@@ -1,4 +0,0 @@
1#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
2#name : using ...;
3# --
4using $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 @@
1#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
2#name : using System;
3# --
4using 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 @@
1#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
2#name : using System....;
3# --
4using 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 @@
1#name : do { ... } while (...)
2# --
3do
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
deleted file mode 100644
index c4cade6..0000000
--- a/.emacs.d/mysnippets/text-mode/cc-mode/for
+++ /dev/null
@@ -1,6 +0,0 @@
1#name : for (...; ...; ...) { ... }
2# --
3for (${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
deleted file mode 100644
index c3fe10d..0000000
--- a/.emacs.d/mysnippets/text-mode/cc-mode/if
+++ /dev/null
@@ -1,6 +0,0 @@
1#name : if (...) { ... }
2# --
3if (${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
deleted file mode 100644
index ae33328..0000000
--- a/.emacs.d/mysnippets/text-mode/cc-mode/inc
+++ /dev/null
@@ -1,3 +0,0 @@
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
deleted file mode 100644
index 66326cd..0000000
--- a/.emacs.d/mysnippets/text-mode/cc-mode/inc.1
+++ /dev/null
@@ -1,3 +0,0 @@
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
deleted file mode 100644
index 9249049..0000000
--- a/.emacs.d/mysnippets/text-mode/cc-mode/main
+++ /dev/null
@@ -1,7 +0,0 @@
1#name: int main(argc, argv) { ... }
2# --
3int 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
deleted file mode 100644
index 4d585db..0000000
--- a/.emacs.d/mysnippets/text-mode/cc-mode/objc-mode/prop
+++ /dev/null
@@ -1,13 +0,0 @@
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
deleted file mode 100644
index 1b63c39..0000000
--- a/.emacs.d/mysnippets/text-mode/cc-mode/once
+++ /dev/null
@@ -1,8 +0,0 @@
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
deleted file mode 100644
index f50dabf..0000000
--- a/.emacs.d/mysnippets/text-mode/cc-mode/struct
+++ /dev/null
@@ -1,6 +0,0 @@
1#name : struct ... { ... }
2# --
3struct ${1:name}
4{
5 $0
6}; \ No newline at end of file