diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-24 23:29:38 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-24 23:29:38 +0200 |
commit | 7a6bb0f05e349068b0a89514f1da33d6d7de30a9 (patch) | |
tree | c202b81dfaf524e71e881c15aa509c45445a64b3 /emacs.d/lisp/yasnippet/snippets/c++-mode | |
parent | 66b95ab46d870f41c12c489eb21c9c82846d6112 (diff) | |
download | dotfiles-7a6bb0f05e349068b0a89514f1da33d6d7de30a9.tar.gz dotfiles-7a6bb0f05e349068b0a89514f1da33d6d7de30a9.tar.xz dotfiles-7a6bb0f05e349068b0a89514f1da33d6d7de30a9.zip |
emacs.d/lisp/yasnippet: added yasnippet
Diffstat (limited to 'emacs.d/lisp/yasnippet/snippets/c++-mode')
6 files changed, 22 insertions, 0 deletions
diff --git a/emacs.d/lisp/yasnippet/snippets/c++-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/c++-mode/.yas-parents new file mode 100644 index 0000000..ce9828b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/c++-mode/.yas-parents @@ -0,0 +1 @@ +cc-mode diff --git a/emacs.d/lisp/yasnippet/snippets/c++-mode/beginend b/emacs.d/lisp/yasnippet/snippets/c++-mode/beginend new file mode 100644 index 0000000..68303e2 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/c++-mode/beginend @@ -0,0 +1,3 @@ +#name : v.begin(), v.end() +# -- +${1:v}.begin(), $1.end
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/c++-mode/class b/emacs.d/lisp/yasnippet/snippets/c++-mode/class new file mode 100644 index 0000000..820fc6c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/c++-mode/class @@ -0,0 +1,8 @@ +#name : class ... { ... } +# -- +class ${1:Name} +{ +public: + ${1:$(yas/substr text "[^: ]*")}($2); + virtual ~${1:$(yas/substr text "[^: ]*")}(); +};
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/c++-mode/ns b/emacs.d/lisp/yasnippet/snippets/c++-mode/ns new file mode 100644 index 0000000..0c2513f --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/c++-mode/ns @@ -0,0 +1,3 @@ +#name : namespace ... +# -- +namespace
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/c++-mode/template b/emacs.d/lisp/yasnippet/snippets/c++-mode/template new file mode 100644 index 0000000..7e50616 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/c++-mode/template @@ -0,0 +1,3 @@ +#name : template <typename ...> +# -- +template <typename ${T}>
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/c++-mode/using b/emacs.d/lisp/yasnippet/snippets/c++-mode/using new file mode 100644 index 0000000..13d0f5d --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/c++-mode/using @@ -0,0 +1,4 @@ +#name : using namespace ... +# -- +using namespace ${std}; +$0
\ No newline at end of file |