diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2021-07-23 21:36:29 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2021-07-25 15:44:48 +0100 |
commit | 91c8da0e835a83afef27f707f16ec6c24c30430b (patch) | |
tree | e20a734522c6036f7ce752c7e0602bf95bc00791 | |
parent | 597bb886d926b4910c555efebe5c60a991bbd5fd (diff) | |
download | dotfiles-91c8da0e835a83afef27f707f16ec6c24c30430b.tar.gz dotfiles-91c8da0e835a83afef27f707f16ec6c24c30430b.tar.bz2 dotfiles-91c8da0e835a83afef27f707f16ec6c24c30430b.zip |
(Emacs)+snippets from doom-snippet and removed default package
I've re-enabled yasnippet for ease of use, and added a ton of snippets
directly into my Dotfiles so only I get to curate what snippets are
removed. Screw downloading them off someone else's repository at
their total mercy.
763 files changed, 5443 insertions, 22 deletions
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/.yas-parents b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/.yas-parents new file mode 100644 index 0000000..2f29616 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/.yas-parents @@ -0,0 +1 @@ +cc-mode text-mode prog-mode
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/accumulate b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/accumulate new file mode 100644 index 0000000..496b75c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/accumulate @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: accumulate +# key: acm +# -- +auto sum = std::accumulate(std::begin(${1:container}), std::end($1), 0);
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/accumulate-with-closure b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/accumulate-with-closure new file mode 100644 index 0000000..f2fd2cd --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/accumulate-with-closure @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: accumulate w/ closure +# key: acl +# -- +auto sum = std::accumulate(std::begin(${1:container}), std::end($1), 0, [](int total, $2) { + $3 +});
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/adjacent_find b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/adjacent_find new file mode 100644 index 0000000..fd4c436 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/adjacent_find @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: adjacent_find +# key: ajf +# -- +auto pos = std::adjacent_find(std::begin(${1:container}), std::end($1)); +if (pos != std::end($1)) { + $2 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/all_of b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/all_of new file mode 100644 index 0000000..299f837 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/all_of @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: all_of +# key: alo +# -- +if (std::all_of(std::begin(${1:container}), std::end($1), []($2) { + $3 +})) { + $4 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/any_of b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/any_of new file mode 100644 index 0000000..7c957f8 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/any_of @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: any_of +# key: ano +# -- +if (std::any_of(std::begin(${1:container}), std::end($1), []($2) { + $3 +})) { + $4 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/assert b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/assert new file mode 100644 index 0000000..a662dd8 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/assert @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: assert +# -- +assert($0);
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/beginend b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/beginend new file mode 100644 index 0000000..26ee232 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/beginend @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: v.begin(), v.end() +# key: beginend +# uuid: beginend +# -- +${1:v}.begin(), $1.end
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/boost_require b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/boost_require new file mode 100644 index 0000000..7b05028 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/boost_require @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: boost_require +# key: req +# uuid: req +# group: boost +# -- +BOOST_REQUIRE( ${1:condition} ); +$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/class b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/class new file mode 100644 index 0000000..dcd73f9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/class @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: class +# -- +class ${1:Name} { + public: + ${1:$(yas/substr yas-text "[^: ]*")}(); + ${2:virtual ~${1:$(yas/substr yas-text "[^: ]*")}();} + $0 +};
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/const_[] b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/const_[] new file mode 100644 index 0000000..57eed01 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/const_[] @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: const_[] +# key: c[ +# uuid: c[ +# -- +const ${1:Type}& operator[](${2:int index}) const +{ + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/constructor b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/constructor new file mode 100644 index 0000000..f76454b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/constructor @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: constructor +# key: ct +# uuid: ct +# -- +${1:Class}::$1(${2:args}) ${3: : ${4:init}} { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/copy b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/copy new file mode 100644 index 0000000..6db7b97 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/copy @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: copy +# key: cpy +# -- +std::copy(std::begin(${1:container}), std::end($1), std::begin($2));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/copy_backward b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/copy_backward new file mode 100644 index 0000000..74a986c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/copy_backward @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: copy_backward +# key: cpb +# -- +std::copy_backward(std::begin(${1:container}), std::end($1), std::end($1));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/copy_if b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/copy_if new file mode 100644 index 0000000..611aa75 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/copy_if @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: copy_if +# key: cpi +# -- +std::copy_if(std::begin(${1:container}), std::end($1), std::begin($2), +[]($3) { + $4 +});
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/copy_n b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/copy_n new file mode 100644 index 0000000..af2f225 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/copy_n @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: copy_n +# key: cpn +# -- +std::copy_n(std::begin(${1:container}), $2, std::end($1));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/copy_ostream_iter b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/copy_ostream_iter new file mode 100644 index 0000000..d836ecb --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/copy_ostream_iter @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: copy +# key: oit +# -- +std::copy(std::begin(${1:container}), std::end($1), std::ostream_iterator<$2>{ +%\istd::cout, "$3" +});
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/count b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/count new file mode 100644 index 0000000..95936e2 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/count @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: count +# key: cnt +# -- +auto n = std::count(std::begin(${1:container}), std::end($1), $2);
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/count_if b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/count_if new file mode 100644 index 0000000..dccc852 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/count_if @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: count_if +# key: count_if +# -- +auto n = std::count_if(std::begin(${1:container}), std::end($1), []($2) { + $3 +});
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/cstd b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/cstd new file mode 100644 index 0000000..44074c9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/cstd @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: cstd +# key: cstd +# uuid: cstd +# -- +#include <cstdlib>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/d+= b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/d+= new file mode 100644 index 0000000..e5c32c9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/d+= @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: d+= +# key: d+= +# uuid: d+= +# -- +${1:MyClass}& operator+=(${2:const $1 &});
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/d_operator b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/d_operator new file mode 100644 index 0000000..b92780d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/d_operator @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: d_operator<< +# key: << +# uuid: << +# -- +friend std::ostream& operator<<(std::ostream&, const ${1:Class}&);
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/d_operator[] b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/d_operator[] new file mode 100644 index 0000000..a96be67 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/d_operator[] @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: d_operator[] +# key: [ +# uuid: [ +# -- +${1:Type}& operator[](${2:int index});
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/d_operator[]_const b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/d_operator[]_const new file mode 100644 index 0000000..9c3a1ab --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/d_operator[]_const @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: d_operator[]_const +# key: c[ +# uuid: c[ +# -- +const ${1:Type}& operator[](${2:int index}) const;
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/d_operator_istream b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/d_operator_istream new file mode 100644 index 0000000..d38c0fc --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/d_operator_istream @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: d_operator>> +# key: >> +# -- +friend std::istream& operator>>(std::istream&, const ${1:Name}&);
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/d_operator_ostream b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/d_operator_ostream new file mode 100644 index 0000000..d23f4d6 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/d_operator_ostream @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: d_operator<< +# key: << +# -- +friend std::ostream& operator<<(std::ostream&, const ${1:Name}&);
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/delete b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/delete new file mode 100644 index 0000000..cf0376c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/delete @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: delete +# key: dl +# uuid: dl +# -- +delete ${1:pointer};
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/delete[] b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/delete[] new file mode 100644 index 0000000..eb85608 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/delete[] @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: delete[] +# key: dla +# uuid: dla +# -- +delete[] ${1:arr};
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/doc b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/doc new file mode 100644 index 0000000..6f100ae --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/doc @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: doc +# key: /** +# uuid: /** +# -- +/** + * $0 + */
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/dynamic_casting b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/dynamic_casting new file mode 100644 index 0000000..a016c70 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/dynamic_casting @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: dynamic_casting +# key: cast +# uuid: cast +# -- +check_and_cast<${1:Type} *>(${2:msg});
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/enum b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/enum new file mode 100644 index 0000000..99f9923 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/enum @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: enum +# -- +enum ${1:NAME} {$0};
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/equal b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/equal new file mode 100644 index 0000000..09cfb44 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/equal @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: equal +# key: eql +# -- +if (std::equal(std::begin(${1:container}), std::end($1), std::begin($2))) { + $3 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/erase b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/erase new file mode 100644 index 0000000..4ab6679 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/erase @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: remove +# key: erm +# -- +${1:container}.erase(std::remove(std::begin($1), std::end($1), $2), std::end($1));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/erase_find_last_not_of b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/erase_find_last_not_of new file mode 100644 index 0000000..d2cf0b1 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/erase_find_last_not_of @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: generate_n +# key: erf +# -- +${1:container}.erase($1.find_last_not_of(" \t\n\r") + 1);
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/fill b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/fill new file mode 100644 index 0000000..99130c9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/fill @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: fill +# key: fil +# -- +std::fill(std::begin(${1:container}), std::end($1), $2);
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/fill_n b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/fill_n new file mode 100644 index 0000000..5c6b04a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/fill_n @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: fill_n +# key: fln +# -- +std::fill_n(std::begin(${1:container}), $2, $3);
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/fin b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/fin new file mode 100644 index 0000000..41eaf6c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/fin @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: find_if_not +# key: fin +# -- +auto pos = std::find_if_not(std::begin(${1:container}), std::end($1),[]($2) { + $3 +}); +if (pos != std::end($1)) { + $4 +} +$0 diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/find b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/find new file mode 100644 index 0000000..f45093b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/find @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: find +# key: fnd +# -- +auto pos = std::find(std::begin(${1:container}), std::end($1), $2); +if (pos != std::end($1)) { + $3 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/find_end b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/find_end new file mode 100644 index 0000000..2eca444 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/find_end @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: find_end +# key: fne +# -- +auto pos = std::find_std::end( + std::begin(${1:container}), std::end($1), + std::begin($2), std::end($3) +); +if (pos != std::end($1)) { + $4 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/find_first_of b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/find_first_of new file mode 100644 index 0000000..8217cc1 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/find_first_of @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: find_first_of +# key: ffo +# -- +auto pos = std::find_first_of( + std::begin(${1:container}), std::end($1), + std::begin($2), std::end($3) +); +if (pos != std::end($1)) { + $4 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/find_if b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/find_if new file mode 100644 index 0000000..1c02a0b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/find_if @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: find_if +# key: fni +# -- +auto pos = std::find_if(std::begin(${1:container}), std::end($1), []($2) { + $3 +}); +if (pos != std::end($1)) { + $4 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/fixture b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/fixture new file mode 100644 index 0000000..f628b95 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/fixture @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: fixture +# key: fixt +# uuid: fixt +# -- +BOOST_FIXTURE_TEST_SUITE( ${1:name}, ${2:Fixture} ) + +$0 + +BOOST_AUTO_TEST_SUITE_END()
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/for_each b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/for_each new file mode 100644 index 0000000..de1fbbb --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/for_each @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: for_each +# key: fre +# -- +std::for_each(std::begin(${1:container}), std::end($1), []($2) { + $3 +});
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/for_iter b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/for_iter new file mode 100644 index 0000000..2e76242 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/for_iter @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: for_iter +# key: fori +# uuid: fori +# -- +for (${1:iter}=${2:var}.begin(); $1!=$2.end(); ++$1) { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/friend b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/friend new file mode 100644 index 0000000..df0c024 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/friend @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: friend +# key: fr +# uuid: fr +# -- +friend $0;
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/fun_declaration b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/fun_declaration new file mode 100644 index 0000000..795365c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/fun_declaration @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: fun_declaration +# key: f +# uuid: f +# -- +${1:void} ${2:name}($3)$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/function b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/function new file mode 100644 index 0000000..52d0402 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/function @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: function +# -- +${1:void} ${2:Class}::${3:name}($4)${5: const} { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/generate b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/generate new file mode 100644 index 0000000..73d65a9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/generate @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: generate +# key: gnr +# -- +std::generate(std::begin(${1:container}), std::end($1), []($2) { + $3 +});
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/generate_n b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/generate_n new file mode 100644 index 0000000..8084b14 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/generate_n @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: generate_n +# key: gnn +# -- +std::generate_n(std::begin(${1:container}), $2, []($3) { + $4 +});
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/gtest b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/gtest new file mode 100644 index 0000000..4cc61a8 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/gtest @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: gtest +# key: gtest +# uuid: gtest +# group: testing +# -- +#include <gtest/gtest.h>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/ignore b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/ignore new file mode 100644 index 0000000..3a3c610 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/ignore @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: ignore +# key: ignore +# uuid: ignore +# -- +${1:std::}cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/include b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/include new file mode 100644 index 0000000..c4f4d44 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/include @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: #include <lib> +# key: inc +# -- +#include <${1:lib}>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/include_iostream b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/include_iostream new file mode 100644 index 0000000..b1ba34c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/include_iostream @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: #include <iostream> +# key: iio +# uuid: iio +# -- +#include <iostream>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/include_sstream b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/include_sstream new file mode 100644 index 0000000..bd97bcb --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/include_sstream @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: #include <sstream> +# key: iss +# uuid: iss +# -- +#include <sstream>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/include_string b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/include_string new file mode 100644 index 0000000..686660a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/include_string @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: #include <string> +# key: istr +# uuid: istr +# -- +#include <string>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/inline b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/inline new file mode 100644 index 0000000..e545492 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/inline @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: inline +# key: il +# uuid: il +# -- +inline $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/iota b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/iota new file mode 100644 index 0000000..2690ac4 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/iota @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: iota +# key: ita +# -- +std::iota(std::begin(${1:container}), std::end($1), $2);
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/is_heap b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/is_heap new file mode 100644 index 0000000..24048b2 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/is_heap @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: is_heap +# key: ihp +# -- +if (std::is_heap(std::begin(${1:container}), std::end($1))) { + $2 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/is_heap_until b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/is_heap_until new file mode 100644 index 0000000..99bf8f0 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/is_heap_until @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: is_heap_until +# key: ihu +# -- +auto pos = std::is_heap_until(std::begin(${1:container}), std::end($1)); +if (pos != std::end($1)) { + $2 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/is_partitioned b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/is_partitioned new file mode 100644 index 0000000..48877b5 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/is_partitioned @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: is_partitioned +# key: ipt +# -- +if (std::is_partitioned(std::begin(${1:container}), std::end($1), []($2) { + $3 +})) { + $4 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/is_permutation b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/is_permutation new file mode 100644 index 0000000..eee5ba3 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/is_permutation @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: is_permutation +# key: ipr +# -- +if (std::is_permutation(std::begin(${1:container}), std::end($1), std::begin($2))) { + $3 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/is_sorted b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/is_sorted new file mode 100644 index 0000000..ddc3a96 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/is_sorted @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: is_sorted +# key: iss +# -- +if (std::is_sorted(std::begin(${1:container}), std::end($1))) { + $2 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/is_sorted_until b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/is_sorted_until new file mode 100644 index 0000000..9eb6699 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/is_sorted_until @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: is_sorted_until +# key: isu +# -- +auto pos = std::is_sorted_until(std::begin(${1:container}), std::end($1)); +if (pos != std::end($1)) { + $2 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/iterator b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/iterator new file mode 100644 index 0000000..fe2b5cd --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/iterator @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: iterator +# key: iter +# uuid: iter +# -- +${1:std::}${2:vector<int>}::iterator ${3:iter}; diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/lambda b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/lambda new file mode 100644 index 0000000..aa72fa3 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/lambda @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: lambda +# key: lam +# -- +[$1]($2) { `(!%!)`$3 }
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/lexigraphical_compare b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/lexigraphical_compare new file mode 100644 index 0000000..2d6dd06 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/lexigraphical_compare @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: lexigraphical_compare +# key: lxc +# -- +if (std::lexigraphical_compare(std::begin(${1:container}), std::end($1), std::begin($2), std::end($3))) { + $4 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/make_heap b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/make_heap new file mode 100644 index 0000000..6640b0e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/make_heap @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: make_heap +# key: mkh +# -- +std::make_heap(std::begin(${1:container}), std::end($1));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/map b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/map new file mode 100644 index 0000000..ff349e1 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/map @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: map +# key: map +# uuid: map +# -- +std::map<${1:type1}$0> ${2:var};
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/max_element b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/max_element new file mode 100644 index 0000000..4a29080 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/max_element @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: max_element +# key: mxe +# -- +auto pos = std::max_element(std::begin(${1:container}), std::end($1));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/member_function b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/member_function new file mode 100644 index 0000000..ccc03fd --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/member_function @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: member_function +# key: mf +# -- +${1:type} ${2:Name}::${3:name}(${4:args})${5: const} +{ + $0 +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/merge b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/merge new file mode 100644 index 0000000..c4753a2 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/merge @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: merge +# key: mrg +# -- +std::merge(std::begin(${1:container}), std::end($1), +std::begin($2), std::end($3), std::begin($4));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/min_element b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/min_element new file mode 100644 index 0000000..e85d6f2 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/min_element @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: min_element +# key: mne +# -- +auto pos = std::min_element(std::begin(${1:container}), std::end($1));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/minmax_element b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/minmax_element new file mode 100644 index 0000000..b80f63b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/minmax_element @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: minmax_element +# key: mme +# -- +auto minmax = std::minmax_element(std::begin(${1:container}), std::end($1));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/mismatch b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/mismatch new file mode 100644 index 0000000..243ee0f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/mismatch @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: mismatch +# key: msm +# -- +auto values = std::mismatch(std::begin(${1:container}), std::end($1), std::begin($1)); +if (values.first == std::end($1)) { + $2 +} else { + $3 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/module b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/module new file mode 100644 index 0000000..c203632 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/module @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: module +# key: mod +# uuid: mod +# -- +class ${1:Class} : public cSimpleModule +{ + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/move_backward b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/move_backward new file mode 100644 index 0000000..62e7849 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/move_backward @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: move_backward +# key: mpb +# -- +std::move_backward(std::begin(${1:container}), std::end($1), std::end($1));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/namespace b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/namespace new file mode 100644 index 0000000..e4afdb0 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/namespace @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name : namespace ... +# key: ns +# uuid: ns +# -- +namespace ${1:name}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/namespace_block b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/namespace_block new file mode 100644 index 0000000..839ef70 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/namespace_block @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: namespace +# key: nss +# -- +namespace ${1:name} { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/next_permutation b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/next_permutation new file mode 100644 index 0000000..78b468a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/next_permutation @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: next_permutation +# key: nxp +# -- +if (std::next_permutation(std::begin(${1:container}), std::end($1))) { + $2 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/none_of b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/none_of new file mode 100644 index 0000000..88a716d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/none_of @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: none_of +# key: nno +# -- +if (std::none_of(std::begin(${1:container}), std::end($1), []($2) { + $3 +})) { + $4 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/nth_element b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/nth_element new file mode 100644 index 0000000..b0da080 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/nth_element @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: nth_element +# key: nth +# -- +std::nth_element(std::begin(${1:container}), std::end($1), std::end($1));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator!= b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator!= new file mode 100644 index 0000000..5cf876b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator!= @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: operator!= +# key: != +# uuid: != +# group: operator overloading +# -- +bool ${1:MyClass}::operator!=(const $1 &other) const { + return !(*this == other); +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator+ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator+ new file mode 100644 index 0000000..0d4d10c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator+ @@ -0,0 +1,12 @@ +# -*- mode: snippet -*- +# name: operator+ +# key: + +# uuid: + +# group: operator overloading +# -- +${1:MyClass} $1::operator+(const $1 &other) +{ + $1 result = *this; + result += other; + return result; +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator+= b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator+= new file mode 100644 index 0000000..643a65e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator+= @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: operator+= +# key: += +# uuid: += +# group: operator overloading +# -- +${1:MyClass}& $1::operator+=(${2:const $1 &rhs}) +{ + $0 + return *this; +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator= b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator= new file mode 100644 index 0000000..08f2e67 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator= @@ -0,0 +1,14 @@ +# -*- mode: snippet -*- +# name: operator= +# key: = +# uuid: = +# where this is a reference to myself +# group: operator overloading +# -- +${1:MyClass}& $1::operator=(const $1 &rhs) { + // Check for self-assignment! + if (this == &rhs) + return *this; + $0 + return *this; +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator== b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator== new file mode 100644 index 0000000..08f804e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator== @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: operator== +# key: == +# uuid: == +# group: operator overloading +# -- +bool ${1:MyClass}::operator==(const $1 &other) const { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator[] b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator[] new file mode 100644 index 0000000..9bfea7d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator[] @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: operator[] +# key: [] +# uuid: [] +# group: operator overloading +# -- +${1:Type}& operator[](${2:int index}) +{ + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator_istream b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator_istream new file mode 100644 index 0000000..9b4c8c2 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator_istream @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: operator>> +# key: >> +# uuid: >> +# group: operator overloading +# -- +istream& operator>>(istream& s, const ${1:type}& ${2:c}) +{ + $0 +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator_ostream b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator_ostream new file mode 100644 index 0000000..9463e2c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/operator_ostream @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: operator<< +# key: << +# uuid: << +# group: operator overloading +# -- +std::ostream& operator<<(std::ostream& s, const ${1:type}& ${2:c}) +{ + $0 + return s; +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/ostream b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/ostream new file mode 100644 index 0000000..b0054f7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/ostream @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: ostream +# key: os +# uuid: os +# -- +#include <ostream>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/pack b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/pack new file mode 100644 index 0000000..c15b02e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/pack @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: pack +# key: pack +# uuid: pack +# -- +void cNetCommBuffer::pack(${1:type}) { + +} + +$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/partial_sort b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/partial_sort new file mode 100644 index 0000000..eafb136 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/partial_sort @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: partial_sort +# key: pst +# -- +std::partial_sort(std::begin(${1:container}), std::end($1), std::end($1));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/partial_sort_copy b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/partial_sort_copy new file mode 100644 index 0000000..be91ecd --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/partial_sort_copy @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: partial_sort_copy +# key: psc +# -- +std::partial_sort_copy(std::begin(${1:container}), std::end($1), + std::begin($2), std::end($3));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/partition b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/partition new file mode 100644 index 0000000..e381b28 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/partition @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: partition +# key: ptn +# -- +auto pos = std::partition(std::begin(${1:container}), std::end($1), []($2) { + $3 +}); +if (pos != std::end($1)) { + $4 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/partition_copy b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/partition_copy new file mode 100644 index 0000000..f74d0da --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/partition_copy @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: partition_copy +# key: ptc +# -- +std::partition_copy(std::begin(${1:container}), std::end($1), + std::begin($2), std::end($3));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/partition_point b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/partition_point new file mode 100644 index 0000000..d890532 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/partition_point @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: partition_point +# key: ppt +# -- +auto pos = std::partition_point(std::begin(${1:container}), std::end($1), []($2) { + $3 +}); +if (pos != std::end($1)) { + $4 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/prev_permutation b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/prev_permutation new file mode 100644 index 0000000..9b202f6 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/prev_permutation @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: prev_permutation +# key: prp +# -- +if (std::prev_permutation(std::begin(${1:container}), std::end($1))) { + $2 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/private b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/private new file mode 100644 index 0000000..ddf50d7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/private @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: private +# expand-env: ((yas-also-auto-indent-first-line t)) +# -- +private: + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/protected b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/protected new file mode 100644 index 0000000..931eb2e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/protected @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: protected +# expand-env: ((yas-also-auto-indent-first-line t)) +# -- +protected: + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/public b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/public new file mode 100644 index 0000000..04b1afb --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/public @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: public +# expand-env: ((yas-also-auto-indent-first-line t)) +# -- +public: + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/push_heap b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/push_heap new file mode 100644 index 0000000..281a847 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/push_heap @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: push_heap +# key: phh +# -- +std::push_heap(std::begin(${1:container}), std::end($1));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/random_shuffle b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/random_shuffle new file mode 100644 index 0000000..bbc078d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/random_shuffle @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: random_shuffle +# key: shf +# -- +std::random_shuffle(std::begin(${1:container}), std::end($1));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/remove b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/remove new file mode 100644 index 0000000..3cbee04 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/remove @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: remove +# key: rmv +# -- +auto pos = std::remove(std::begin(${1:container}), std::end($1), $2); +if (pos != std::end($1)) { + $3 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/remove_copy b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/remove_copy new file mode 100644 index 0000000..3dbf85a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/remove_copy @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: remove_copy +# key: rmc +# -- +std::remove_copy(std::begin(${1:container}), std::end($1), + std::begin($1), $2);
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/remove_copy_if b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/remove_copy_if new file mode 100644 index 0000000..cba8760 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/remove_copy_if @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: remove_copy_if +# key: rmf +# -- +std::remove_copy_if(std::begin(${1:container}), std::end($1), + std::begin($1), []($2) { + $3 + } +);
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/remove_if b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/remove_if new file mode 100644 index 0000000..e12d0c8 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/remove_if @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: remove_if +# key: rmi +# -- +auto pos = std::remove_if(std::begin(${1:container}), std::end($1), []($2) { + $3 +}); +if (pos != std::end($1)) { + $4 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/replace b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/replace new file mode 100644 index 0000000..be2729e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/replace @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: replace +# key: rpl +# -- +std::replace(std::begin(${1:container}), std::end($1), $2, $3);
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/replace_copy b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/replace_copy new file mode 100644 index 0000000..a085f1d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/replace_copy @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: replace_copy +# key: rpc +# -- +std::replace_copy(std::begin(${1:container}), std::end($1), std::begin($1), $2, $3);
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/replace_copy_if b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/replace_copy_if new file mode 100644 index 0000000..4558e0d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/replace_copy_if @@ -0,0 +1,12 @@ +# -*- mode: snippet -*- +# name: replace_copy_if +# key: rci +# -- +std::replace_copy_if( + std::begin(${1:container}), + std::end($1), + std::begin($1), []($2) { + $3 + }, + $4 +);
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/replace_if b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/replace_if new file mode 100644 index 0000000..9cc11d3 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/replace_if @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: replace_if +# key: rpi +# -- +std::replace_if( + std::begin(${1:container}), + std::end($1), []($2) { + $3 + }, + $4 +);
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/reverse b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/reverse new file mode 100644 index 0000000..8a64ca1 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/reverse @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: reverse +# key: rvr +# -- +std::reverse(std::begin(${1:container}), std::end($1));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/reverse_copy b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/reverse_copy new file mode 100644 index 0000000..ade4814 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/reverse_copy @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: reverse_copy +# key: rvc +# -- +std::reverse_copy(std::begin(${1:container}), std::end($1), std::begin($2));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/rotate b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/rotate new file mode 100644 index 0000000..1fb59ec --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/rotate @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: rotate +# key: rte +# -- +std::rotate(std::begin(${1:container}), std::begin($2), std::end($1));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/rotate_copy b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/rotate_copy new file mode 100644 index 0000000..287fb07 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/rotate_copy @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: rotate_copy +# key: rtc +# -- +std::rotate_copy(std::begin(${1:container}), std::begin($2), std::end($1), std::begin($3));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/search b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/search new file mode 100644 index 0000000..580a29a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/search @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: search +# key: srh +# -- +auto pos = std::search(std::begin(${1:container}), std::end($1), + std::begin($2), std::end($3)); +if (pos != std::end($1)) { + $4 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/search_n b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/search_n new file mode 100644 index 0000000..7f7f879 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/search_n @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: search_n +# key: srn +# -- +auto pos = std::search_n(std::begin(${1:container}), std::end($1),$2,$3); +if (pos != std::end($1)) { + $4 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/sort b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/sort new file mode 100644 index 0000000..4b88ee8 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/sort @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: sort +# key: srt +# -- +std::sort(std::begin(${1:container}), std::end($1));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/sort_heap b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/sort_heap new file mode 100644 index 0000000..c83c6a9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/sort_heap @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: sort_heap +# key: sth +# -- +std::sort_heap(std::begin(${1:container}), std::end($1));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/stable_partition b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/stable_partition new file mode 100644 index 0000000..1c3b9f7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/stable_partition @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: stable_partition +# key: spt +# -- +auto pos = std::stable_partition(std::begin(${1:container}), std::end($1), []($2) { + $3 +}); +if (pos != std::end($1)) { + $4 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/stable_sort b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/stable_sort new file mode 100644 index 0000000..74cede9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/stable_sort @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: stable_sort +# key: sts +# -- +std::stable_sort(std::begin(${1:container}), std::end($1));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/std b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/std new file mode 100644 index 0000000..5df8934 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/std @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: std +# key: std +# uuid: std +# -- +using namespace std;
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/std_colon b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/std_colon new file mode 100644 index 0000000..950aa0e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/std_colon @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: std:: +# key: st +# uuid: st +# -- +std::$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/swap_ranges b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/swap_ranges new file mode 100644 index 0000000..9f2f4b5 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/swap_ranges @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: swap_ranges +# key: swr +# -- +std::swap_ranges(std::begin(${1:container}), std::end($1), std::begin($2));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/template b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/template new file mode 100644 index 0000000..f40864d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/template @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: template +# key: temp +# uuid: temp +# -- +template<${1:$$(yas/choose-value '("typename" "class"))} ${2:T}> +$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/test-case b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/test-case new file mode 100644 index 0000000..8af5260 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/test-case @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: test case +# key: tc +# uuid: tc +# group: testing +# -- +BOOST_AUTO_TEST_CASE( ${1:test_case} ) +{ + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/test_main b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/test_main new file mode 100644 index 0000000..c96e40d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/test_main @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: test_main +# key: test_main +# uuid: test_main +# group: testing +# -- +int main(int argc, char **argv) { + ::testing::InitGoogleTest(&argc, argv); + return RUN_ALL_TESTS(); +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/test_suite b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/test_suite new file mode 100644 index 0000000..dc6dda3 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/test_suite @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: test_suite +# key: ts +# uuid: ts +# group: testing +# -- +BOOST_AUTO_TEST_SUITE( ${1:test_suite1} ) + +$0 + +BOOST_AUTO_TEST_SUITE_END()
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/this b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/this new file mode 100644 index 0000000..173cb26 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/this @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: this +# -- +this
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/throw b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/throw new file mode 100644 index 0000000..d264dd7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/throw @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: throw +# key: throw +# uuid: throw +# -- +throw ${1:MyError}($0);
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/transform b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/transform new file mode 100644 index 0000000..12d4881 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/transform @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: transform +# key: tfm +# -- +std::transform(std::begin(${1:container}), std::end($1), + std::begin($1), []($2) { +$3% +}); +$0 diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/transform-with-closure b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/transform-with-closure new file mode 100644 index 0000000..51427c7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/transform-with-closure @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: transform +# key: upr +# -- +std::transform(std::begin(${1:container}), std::end($1), std::begin($1), [](char c) { + `(or (concat % "\n") "")`return std::toupper(c); +});
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/transform_lowercase b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/transform_lowercase new file mode 100644 index 0000000..045c98b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/transform_lowercase @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: string to lower case +# key: lwr +# -- +std::transform(std::begin(${1:container}), std::end($1), std::begin($1), [](char c) { + `(or (concat % "\n") "")`return std::tolower(c); +});
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/trim_left b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/trim_left new file mode 100644 index 0000000..c456570 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/trim_left @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: remove whitespace at beginning +# key: ltr +# -- +${1:container}.erase(0, $1.find_first_not_of(" \t\n\r"));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/try b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/try new file mode 100644 index 0000000..122897e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/try @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: try +# -- +try { + $0 +} catch (${1:type}) { + +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/tryw b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/tryw new file mode 100644 index 0000000..004d15c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/tryw @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: tryw +# key: tryw +# uuid: tryw +# -- +try { + `(or yas/selected-text (car kill-ring))` +} catch ${1:Exception} { + +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/unique b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/unique new file mode 100644 index 0000000..7268a3d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/unique @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: unique +# key: uqe +# -- +auto pos = std::unique(std::begin(${1:container}), std::end($1));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/unique_copy b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/unique_copy new file mode 100644 index 0000000..709b875 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/unique_copy @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: unique_copy +# key: ucp +# -- +std::unique_copy(std::begin(${1:container}), std::end($1), + std::ostream_iterator<string>(std::cout, "\n"));
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/using b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/using new file mode 100644 index 0000000..3c113ce --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/using @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: using namespace ... +# key: using +# uuid: using +# -- +using namespace ${std};
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/.yas-parents b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/.yas-parents new file mode 100644 index 0000000..2f29616 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/.yas-parents @@ -0,0 +1 @@ +cc-mode text-mode prog-mode
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/assert b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/assert new file mode 100644 index 0000000..15dbcc3 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/assert @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: assert +# key: ass +# uuid: ass +# -- +#include <assert.h> +$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/compile b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/compile new file mode 100644 index 0000000..bcd285d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/compile @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: compile +# key: compile +# uuid: compile +# -- +// -*- compile-command: "${1:gcc -Wall -o ${2:dest} ${3:file}}" -*-
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/define b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/define new file mode 100644 index 0000000..d4dc177 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/define @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: define +# key: def +# uuid: def +# -- +#define $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/malloc b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/malloc new file mode 100644 index 0000000..77b7465 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/malloc @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: malloc +# key: malloc +# uuid: malloc +# -- +malloc(sizeof($1)${2: * ${3:3}}); +$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/packed b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/packed new file mode 100644 index 0000000..1f352fc --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/packed @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: packed +# key: packed +# uuid: packed +# -- +__attribute__((__packed__))$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/printf b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/printf new file mode 100644 index 0000000..dda7206 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/printf @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: printf +# key: p +# uuid: p +# -- +printf("${1:format}"${2:, $3});
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/stdio b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/stdio new file mode 100644 index 0000000..76618fd --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/stdio @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: stdio +# -- +#include <stdio.h>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/stdlib b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/stdlib new file mode 100644 index 0000000..d853ac4 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/stdlib @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: stdlib +# -- +#include <stdlib.h>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/string b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/string new file mode 100644 index 0000000..3240494 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/string @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: string +# -- +#include <string.h>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/switch b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/switch new file mode 100644 index 0000000..d02a5ab --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/switch @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: switch +# -- +switch (${1:ch}) { + case ${2:const}: + ${3:a = b}; + break; + ${4:default: + ${5:action}} +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/union b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/union new file mode 100644 index 0000000..a1c60cb --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/union @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: union +# key: union +# uuid: union +# -- +typedef union { + $0 +} ${1:name};
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/unistd b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/unistd new file mode 100644 index 0000000..de59d9e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c-mode/unistd @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: unistd +# key: uni +# uuid: uni +# -- +#include <unistd.h>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/do b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/do new file mode 100644 index 0000000..d65d0f3 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/do @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: do { ... } while (...) +# -- +do { + $0 +} while (${1:condition});
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/else b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/else new file mode 100644 index 0000000..f55d4dd --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/else @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: else +# -- +else { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/elseif b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/elseif new file mode 100644 index 0000000..63f624c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/elseif @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: elseif +# -- +else if (${1:condition}) { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/fopen b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/fopen new file mode 100644 index 0000000..72f5b44 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/fopen @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: FILE *fp = fopen(..., ...); +# key: fopenf +# -- +FILE *${f} = fopen(${"file"}, "${r}");
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/for b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/for new file mode 100644 index 0000000..304e7cf --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/for @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: for +# key: for +# uuid: for +# -- +for (${1:i = 0}; ${2:i < N}; ${3:i++}) { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/if b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/if new file mode 100644 index 0000000..38ade6b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/if @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name : if (...) { ... } +# key: if +# uuid: if +# -- +if (${1:condition}) { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/ifdef b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/ifdef new file mode 100644 index 0000000..7e6f78a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/ifdef @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: ifdef +# key: ifdef +# uuid: ifdef +# -- +#ifdef ${1:MACRO} + +$0 + +#endif // $1
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/inc b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/inc new file mode 100644 index 0000000..75acbe2 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/inc @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: #include "..." +# -- +#include "$0"
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/incc b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/incc new file mode 100644 index 0000000..b150d38 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/incc @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: #include <...> +# -- +#include <$0>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/main b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/main new file mode 100644 index 0000000..2733abb --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/main @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: main +# -- +int main(${1:int argc, char *argv[]}) { + $0 + return 0; +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/once b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/once new file mode 100644 index 0000000..b982970 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/once @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: #ifndef XXX; #define XXX; #endif +# key: once +# uuid: once +# -- +#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/.config/emacs/.config/yasnippet/snippets/cc-mode/struct b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/struct new file mode 100644 index 0000000..e0ecf26 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/struct @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: struct ... { ... } +# key: struct +# uuid: struct +# -- +struct ${1:name} { + $0 +};
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/switch b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/switch new file mode 100644 index 0000000..6dff3db --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/switch @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: switch +# -- +switch (${1:variable}) { + case ${2:value}: $0break; +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/ternary b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/ternary new file mode 100644 index 0000000..3e069cc --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/ternary @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: ternary +# key: ? +# uuid: ? +# -- +(${1:cond}) ? ${2:then} : ${3:else};
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/typedef b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/typedef new file mode 100644 index 0000000..61d0d45 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/typedef @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: typedef +# -- +typedef ${1:type} ${2:alias};
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/while b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/while new file mode 100644 index 0000000..834caa5 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/while @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: while +# -- +while (${1:condition}) { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/.yas-parents b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/.yas-parents new file mode 100644 index 0000000..2f29616 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/.yas-parents @@ -0,0 +1 @@ +cc-mode text-mode prog-mode
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/attrib b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/attrib new file mode 100644 index 0000000..3d835f8 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/attrib @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +# name: private attribute ....; +# key: attrib +# uuid: attrib +# -- +/// <summary> +/// $3 +/// </summary> +private $1 $2;
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/attrib.1 b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/attrib.1 new file mode 100644 index 0000000..dd7669f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/attrib.1 @@ -0,0 +1,24 @@ +# -*- mode: snippet -*- +# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +# name: private attribute ....; public property ... ... { ... } +# key: attrib +# uuid: attrib +# -- +/// <summary> +/// $3 +/// </summary> +private $1 $2; + +/// <summary> +/// $4 +/// </summary> +/// <value>$5</value> +public $1 $2 +{ + get { + return this.$2; + } + set { + this.$2 = value; + } +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/attrib.2 b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/attrib.2 new file mode 100644 index 0000000..b152875 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/attrib.2 @@ -0,0 +1,24 @@ +# -*- mode: snippet -*- +# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +# name: private _attribute ....; public Property ... ... { ... } +# key: attrib +# uuid: attrib +# -- +/// <summary> +/// $3 +/// </summary> +private $1 ${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")}; + +/// <summary> +/// ${3:Description} +/// </summary> +/// <value><c>$1</c></value> +public ${1:Type} ${2:Name} +{ + get { + return this.${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")}; + } + set { + this.${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")} = value; + } +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/class b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/class new file mode 100644 index 0000000..8b03934 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/class @@ -0,0 +1,24 @@ +# -*- mode: snippet -*- +# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +# name: class ... { ... } +# key: class +# uuid: class +# -- +${5:public} class ${1:Name} +{ + #region Ctor & Destructor + /// <summary> + /// ${3:Standard Constructor} + /// </summary> + public $1($2) + { + } + + /// <summary> + /// ${4:Default Destructor} + /// </summary> + public ~$1() + { + } + #endregion +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/comment b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/comment new file mode 100644 index 0000000..d4a4712 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/comment @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +# name: /// <summary> ... </summary> +# key: comment +# uuid: comment +# -- +/// <summary> +/// $1 +/// </summary>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/comment.1 b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/comment.1 new file mode 100644 index 0000000..202dc4a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/comment.1 @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +# name: /// <param name="..."> ... </param> +# key: comment +# uuid: comment +# -- +/// <param name="$1">$2</param>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/comment.2 b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/comment.2 new file mode 100644 index 0000000..a5dd138 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/comment.2 @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +# name: /// <param name="..."> ... </param> +# key: comment +# uuid: comment +# -- +/// <returns>$1</returns>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/comment.3 b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/comment.3 new file mode 100644 index 0000000..4a17b61 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/comment.3 @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +# name: /// <exception cref="..."> ... </exception> +# key: comment +# uuid: comment +# -- +/// <exception cref="$1">$2</exception>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/method b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/method new file mode 100644 index 0000000..742ff77 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/method @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +# name: public void Method { ... } +# key: method +# uuid: method +# -- +/// <summary> +/// ${5:Description} +/// </summary>${2:$(if (string= (upcase yas-text) "VOID") "" (format "%s%s%s" "\n/// <returns><c>" yas-text "</c></returns>"))} +${1:public} ${2:void} ${3:MethodName}($4) +{ +$0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/namespace b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/namespace new file mode 100644 index 0000000..ac9c143 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/namespace @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +# name: namespace .. { ... } +# key: namespace +# uuid: namespace +# -- +namespace $1 +{ +$0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/prop b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/prop new file mode 100644 index 0000000..21d89dc --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/prop @@ -0,0 +1,19 @@ +# -*- mode: snippet -*- +# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +# name: property ... ... { ... } +# key: prop +# uuid: prop +# -- +/// <summary> +/// $5 +/// </summary> +/// <value>$6</value> +$1 $2 $3 +{ + get { + return this.$4; + } + set { + this.$4 = value; + } +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/region b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/region new file mode 100644 index 0000000..d92ebd9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/region @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +# name: #region ... #endregion +# key: region +# uuid: region +# -- +#region $1 +$0 +#endregion
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/using b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/using new file mode 100644 index 0000000..439c790 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/using @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +# name: using ...; +# key: using +# uuid: using +# -- +using $1;
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/using.1 b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/using.1 new file mode 100644 index 0000000..8799467 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/using.1 @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +# name: using System; +# key: using +# uuid: using +# -- +using System;
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/using.2 b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/using.2 new file mode 100644 index 0000000..f1b12c3 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/csharp-mode/using.2 @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +# name: using System....; +# key: using +# uuid: using +# -- +using System.$1;
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/css-mode/importfont b/Emacs/.config/emacs/.config/yasnippet/snippets/css-mode/importfont new file mode 100644 index 0000000..39faa2b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/css-mode/importfont @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: @import url("//fonts.googleapis...") +# key: impfont +# uuid: impfont +# -- +@import url("http://fonts.googleapis.com/css?family=${1:Open+Sans}");
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/css-mode/margin b/Emacs/.config/emacs/.config/yasnippet/snippets/css-mode/margin new file mode 100644 index 0000000..6431e56 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/css-mode/margin @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: margin: ...; +# key: mar +# uuid: mar +# -- +margin: ${1:0 auto};
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/css-mode/media b/Emacs/.config/emacs/.config/yasnippet/snippets/css-mode/media new file mode 100644 index 0000000..f58e11a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/css-mode/media @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: @media +# key: med +# uuid: med +# -- +@media ${1:screen} { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/css-mode/media_orientation b/Emacs/.config/emacs/.config/yasnippet/snippets/css-mode/media_orientation new file mode 100644 index 0000000..2aea9e0 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/css-mode/media_orientation @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: @media (orientation: ?) +# condition: (looking-back "@media " (line-beginning-position)) +# -- +(orientation: ${1:landscape})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/css-mode/media_print b/Emacs/.config/emacs/.config/yasnippet/snippets/css-mode/media_print new file mode 100644 index 0000000..fdc89a2 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/css-mode/media_print @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: @media print { ... } +# -- +@media print { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/css-mode/padding b/Emacs/.config/emacs/.config/yasnippet/snippets/css-mode/padding new file mode 100644 index 0000000..e667956 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/css-mode/padding @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: padding: ...; +# key: pad +# uuid: pad +# -- +padding: ${1:10px};
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/css-mode/property b/Emacs/.config/emacs/.config/yasnippet/snippets/css-mode/property new file mode 100644 index 0000000..9bd42a7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/css-mode/property @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: ...: ...; +# key: : +# uuid: : +# -- +${1:prop}: ${2:};
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/advise b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/advise new file mode 100644 index 0000000..2e74532 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/advise @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: advise function +# key: adv +# uuid: adv +# -- +(defun ${3:adviser-name} (orig-fn &rest args) + ${4:} + (apply orig-fn args)) +(advice-add #'${1:function-name} ${2::around} #'${3:adviser-name})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/and b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/and new file mode 100644 index 0000000..63a0fc2 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/and @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: and +# -- +(and $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/append b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/append new file mode 100644 index 0000000..86c62c7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/append @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: append +# -- +(append $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/apply b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/apply new file mode 100644 index 0000000..894e746 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/apply @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: apply +# key: apply +# uuid: apply +# -- +(apply $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/aref b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/aref new file mode 100644 index 0000000..1bc181a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/aref @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: aref +# -- +(aref ${1:array} ${0:index})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/aset b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/aset new file mode 100644 index 0000000..40ed691 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/aset @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: aset +# -- +(aset ${1:array} ${2:index} ${3:newelt})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/assq b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/assq new file mode 100644 index 0000000..f2de7c6 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/assq @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: assq +# -- +(assq ${0:sym} ${1:list})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/au b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/au new file mode 100644 index 0000000..b76c3a1 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/au @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: autoload tag +# -- +;;;###autoload`(%emacs-lisp-evil-autoload)`$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/autodef b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/autodef new file mode 100644 index 0000000..0658ee4 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/autodef @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: doom autodef tag +# key: ad +# uuid: ad +# -- +;;;###autodef
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/autoload b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/autoload new file mode 100644 index 0000000..7ffdf3b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/autoload @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: autoload +# -- +(autoload '${1:fn} "${2:file}"${3:"${4:doc}" ${5:t} ${6:type}})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/backward-char b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/backward-char new file mode 100644 index 0000000..d483463 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/backward-char @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: backward-char +# key: backward-char +# uuid: backward-char +# key: bc +# -- +(backward-char $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/beginning-of-line b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/beginning-of-line new file mode 100644 index 0000000..f0d4359 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/beginning-of-line @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: beginning-of-line +# key: beginning-of-line +# uuid: beginning-of-line +# key: bol +# -- +(beginning-of-line)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/bounds-of-thing-at-point b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/bounds-of-thing-at-point new file mode 100644 index 0000000..d74228f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/bounds-of-thing-at-point @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: bounds-of-thing-at-point +# key: bounds-of-thing-at-point +# uuid: bounds-of-thing-at-point +# key: botap +# -- +(bounds-of-thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ...
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/buffer-file-name b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/buffer-file-name new file mode 100644 index 0000000..9fe30b6 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/buffer-file-name @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: buffer-file-name +# key: bfn +# uuid: bfn +# -- +buffer-file-name
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/buffer-modified-p b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/buffer-modified-p new file mode 100644 index 0000000..cf4f2df --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/buffer-modified-p @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: buffer-modified-p +# key: buffer-modified-p +# uuid: buffer-modified-p +# key: bmp +# -- +(buffer-modified-p $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/buffer-substring b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/buffer-substring new file mode 100644 index 0000000..d9c9dba --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/buffer-substring @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: buffer-substring +# key: bs +# uuid: bs +# -- +(buffer-substring ${1:start} ${2:end})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/buffer-substring-no-properties b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/buffer-substring-no-properties new file mode 100644 index 0000000..d286c08 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/buffer-substring-no-properties @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: buffer-substring-no-properties +# key: bsnp +# uuid: bsnp +# -- +(buffer-substring-no-properties ${1:start} ${2:end})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/car b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/car new file mode 100644 index 0000000..f18c455 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/car @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: car +# -- +(car ${0:})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/cdr b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/cdr new file mode 100644 index 0000000..c5a2e1e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/cdr @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: cdr +# -- +(cdr ${0:})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/cl-destructuring-bind b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/cl-destructuring-bind new file mode 100644 index 0000000..6f08a67 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/cl-destructuring-bind @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: cl-destructuring-bind +# key: cdb +# uuid: cdb +# -- +(cl-destructuring-bind (${1:args}) + ${2:expr} + $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/concat b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/concat new file mode 100644 index 0000000..bc7bd50 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/concat @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: concat +# -- +(concat $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/condition-case b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/condition-case new file mode 100644 index 0000000..5e80e4b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/condition-case @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: condition-case +# key: cc +# uuid: cc +# -- +(condition-case ex + $>${0:} + (error $0))
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/cons b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/cons new file mode 100644 index 0000000..82e8c98 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/cons @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: cons +# -- +(cons ${1:} $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/consp b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/consp new file mode 100644 index 0000000..869e831 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/consp @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: consp +# key: consp +# uuid: consp +# -- +(consp $0 )
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/copy-directory b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/copy-directory new file mode 100644 index 0000000..9c89c78 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/copy-directory @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: copy-directory +# key: copy-directory +# uuid: copy-directory +# key: cd +# -- +(copy-directory $0 NEWNAME &optional KEEP-TIME PARENTS)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/copy-file b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/copy-file new file mode 100644 index 0000000..d79e1aa --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/copy-file @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: copy-file +# key: copy-file +# uuid: copy-file +# key: cf +# -- +(copy-file FILE$0 NEWNAME &optional OK-IF-ALREADY-EXISTS KEEP-TIME PRESERVE-UID-GID)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/current-buffer b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/current-buffer new file mode 100644 index 0000000..4d8217f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/current-buffer @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: current-buffer +# key: cb +# uuid: cb +# -- +(current-buffer)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/custom-autoload b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/custom-autoload new file mode 100644 index 0000000..c84d862 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/custom-autoload @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: custom-autoload +# key: custom-autoload +# uuid: custom-autoload +# key: ca +# -- +(custom-autoload$0 SYMBOL LOAD &optional NOSET)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/def-package! b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/def-package! new file mode 100644 index 0000000..4579471 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/def-package! @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: def-package! ... +# key: dp +# uuid: dp +# -- +(def-package! ${1:package} + :${2:config} + $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/defalias b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/defalias new file mode 100644 index 0000000..80f18df --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/defalias @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: defalias +# key: defalias +# uuid: defalias +# -- +(defalias 'SYMBOL$0 'DEFINITION &optional DOCSTRING)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/defconst b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/defconst new file mode 100644 index 0000000..f8b3749 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/defconst @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: defconst +# -- +(defconst ${1:var} ${2:`(or % "value")`} + $>"${3:TODO}")
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/defcustom b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/defcustom new file mode 100644 index 0000000..865cf39 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/defcustom @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: defcustom +# -- +(defcustom $1 ${2:VALUE} "${3:doc}" $4)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/define-key b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/define-key new file mode 100644 index 0000000..6f0126b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/define-key @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: define-key +# key: dk +# uuid: dk +# -- +(define-key ${1:keymap} ${2:key} ${0:fn})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/defsubst b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/defsubst new file mode 100644 index 0000000..db7c62f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/defsubst @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: defsubst +# key: defsubst +# uuid: defsubst +# -- +(defsubst $0 )
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/defvar b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/defvar new file mode 100644 index 0000000..96647f7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/defvar @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: defvar +# -- +(defvar ${1:var} ${2:`(or % "value")`} + $>"${3:TODO}")
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/delete-char b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/delete-char new file mode 100644 index 0000000..b003ee4 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/delete-char @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: delete-char +# key: delete-char +# uuid: delete-char +# key: dc +# -- +(delete-char $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/delete-directory b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/delete-directory new file mode 100644 index 0000000..3cd42e4 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/delete-directory @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: delete-directory +# key: delete-directory +# uuid: delete-directory +# key: dd +# -- +(delete-directory $0 &optional RECURSIVE)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/delete-file b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/delete-file new file mode 100644 index 0000000..3d280ec --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/delete-file @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: delete-file +# key: delete-file +# uuid: delete-file +# key: df +# -- +(delete-file $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/delete-region b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/delete-region new file mode 100644 index 0000000..8df1afa --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/delete-region @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: delete-region +# key: delete-region +# uuid: delete-region +# key: dr +# -- +(delete-region $0 )
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/directory-files b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/directory-files new file mode 100644 index 0000000..444bb03 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/directory-files @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: directory-files +# key: directory-files +# uuid: directory-files +# key: df +# -- +(directory-files $0 &optional FULL MATCH NOSORT)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/dired.process_marked b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/dired.process_marked new file mode 100644 index 0000000..ec2df13 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/dired.process_marked @@ -0,0 +1,17 @@ +# -*- mode: snippet -*- +# name: process marked files in dired +# contributor: Xah Lee +# -- +;; idiom for processing a list of files in dired's marked files + +;; suppose myProcessFile is your function that takes a file path +;; and do some processing on the file + +(defun dired-myProcessFile () + "apply myProcessFile function to marked files in dired." + (interactive) + (require 'dired) + (mapc 'myProcessFile (dired-get-marked-files)) +) + +;; to use it, type M-x dired-myProcessFile diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/end-of-line b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/end-of-line new file mode 100644 index 0000000..e01053d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/end-of-line @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: end-of-line +# key: end-of-line +# uuid: end-of-line +# key: eol +# -- +(end-of-line)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/eq b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/eq new file mode 100644 index 0000000..704f6a3 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/eq @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: eq +# key: eq +# uuid: eq +# -- +(eq $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/equal b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/equal new file mode 100644 index 0000000..2387712 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/equal @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: equal +# key: equal +# uuid: equal +# -- +(equal $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/error b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/error new file mode 100644 index 0000000..5f8d3c7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/error @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: error +# key: error +# uuid: error +# -- +(error "$0" &optional ARGS)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/expand-file-name b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/expand-file-name new file mode 100644 index 0000000..fee7367 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/expand-file-name @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: expand-file-name +# -- +(expand-file-name $0${1: ${2:default-directory}})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/fboundp b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/fboundp new file mode 100644 index 0000000..af9d098 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/fboundp @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: fboundp +# -- +(fboundp '$0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/file-name-directory b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/file-name-directory new file mode 100644 index 0000000..f899866 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/file-name-directory @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: file-name-directory +# key: file-name-directory +# uuid: file-name-directory +# key: fnd +# -- +(file-name-directory $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/file-name-extension b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/file-name-extension new file mode 100644 index 0000000..8e2665f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/file-name-extension @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: file-name-extension +# -- +(file-name-extension $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/file-name-nondirectory b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/file-name-nondirectory new file mode 100644 index 0000000..a637eb7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/file-name-nondirectory @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: file-name-nondirectory +# key: file-name-nondirectory +# uuid: file-name-nondirectory +# key: fnn +# -- +(file-name-nondirectory $0 )
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/file-name-sans-extension b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/file-name-sans-extension new file mode 100644 index 0000000..c97007c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/file-name-sans-extension @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: file-name-sans-extension +# key: file-name-sans-extension +# uuid: file-name-sans-extension +# key: fnse +# -- +(file-name-sans-extension $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/file-relative-name b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/file-relative-name new file mode 100644 index 0000000..634caaf --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/file-relative-name @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: file-relative-name +# key: file-relative-name +# uuid: file-relative-name +# key: frn +# -- +(file-relative-name $0 )
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/file.process b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/file.process new file mode 100644 index 0000000..cbf0563 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/file.process @@ -0,0 +1,18 @@ +# -*- mode: snippet -*- +# name: a function that process a file +# contributor: Xah Lee +# -- +(defun doThisFile (fpath) + "Process the file at path FPATH ..." + (let () + ;; create temp buffer without undo record or font lock. (more efficient) + ;; first space in temp buff name is necessary + (set-buffer (get-buffer-create " myTemp")) + (insert-file-contents fpath nil nil nil t) + + ;; process it ... + ;; (goto-char 0) ; move to begining of file's content (in case it was open) + ;; ... do something here + ;; (write-file fpath) ;; write back to the file + + (kill-buffer " myTemp"))) diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/file.read-lines b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/file.read-lines new file mode 100644 index 0000000..0cf8d25 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/file.read-lines @@ -0,0 +1,18 @@ +# -*- mode: snippet -*- +# name: read lines of a file +# contributor: Xah Lee +# -- +(defun read-lines (filePath) + "Return a list of lines in FILEPATH." + (with-temp-buffer + (insert-file-contents filePath) + (split-string + (buffer-string) "\n" t)) ) + +;; process all lines +(mapc + (lambda (aLine) + (message aLine) ; do your stuff here + ) + (read-lines "inputFilePath") +)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/find-file b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/find-file new file mode 100644 index 0000000..8f74392 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/find-file @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: find-file +# key: find-file +# uuid: find-file +# key: ff +# -- +(find-file $0 )
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/find-replace b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/find-replace new file mode 100644 index 0000000..3372a23 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/find-replace @@ -0,0 +1,18 @@ +# -*- mode: snippet -*- +# name: find and replace on region +# contributor: Xah Lee +# -- +(defun replace-html-chars-region (start end) + "Replace “<” to “<” and other chars in HTML. +This works on the current region." + (interactive "r") + (save-restriction + (narrow-to-region start end) + (goto-char (point-min)) + (while (search-forward "&" nil t) (replace-match "&" nil t)) + (goto-char (point-min)) + (while (search-forward "<" nil t) (replace-match "<" nil t)) + (goto-char (point-min)) + (while (search-forward ">" nil t) (replace-match ">" nil t)) + ) + ) diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/format b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/format new file mode 100644 index 0000000..993ac1d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/format @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: format +# -- +(format "$0" $1)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/forward-char b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/forward-char new file mode 100644 index 0000000..c1aa8a0 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/forward-char @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: forward-char +# key: forward-char +# uuid: forward-char +# key: fc +# -- +(forward-char $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/forward-line b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/forward-line new file mode 100644 index 0000000..79d91ca --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/forward-line @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: forward-line +# key: forward-line +# uuid: forward-line +# key: fl +# -- +(forward-line $0 )
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/funcall b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/funcall new file mode 100644 index 0000000..df30971 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/funcall @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: funcall +# key: funcall +# uuid: funcall +# -- +(funcall $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/function b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/function new file mode 100644 index 0000000..db9565a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/function @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: function +# -- +(function $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/get b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/get new file mode 100644 index 0000000..1fa0a11 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/get @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: get +# key: get +# uuid: get +# -- +(get SYMBOL$0 PROPNAME)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/global-set-key b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/global-set-key new file mode 100644 index 0000000..0c9f70e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/global-set-key @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: global-set-key +# key: global-set-key +# uuid: global-set-key +# key: gsk +# -- +(global-set-key (kbd "C-$0") 'COMMAND)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/goto-char b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/goto-char new file mode 100644 index 0000000..3eeec19 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/goto-char @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: goto-char +# -- +(goto-char $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/grabstring b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/grabstring new file mode 100644 index 0000000..95f52b6 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/grabstring @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: grab buffer substring +# contributor: Xah Lee +# -- +(setq $0 (buffer-substring-no-properties myStartPos myEndPos)) diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/grabthing b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/grabthing new file mode 100644 index 0000000..de0cd3f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/grabthing @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: grab word under cursor +# contributor: Xah Lee +# -- +(setq $0 (thing-at-point 'symbol)) diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/if-let b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/if-let new file mode 100644 index 0000000..18398b5 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/if-let @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: if-let +# condition: (<= (doom-snippets-count-lines %) 1) +# -- +(if-let* (($1)) $0)`(doom-snippets-newline-or-eol)`
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/if-let-2 b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/if-let-2 new file mode 100644 index 0000000..2adf3e7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/if-let-2 @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: if-let +# uuid: if-let-2 +# key: if-let +# condition: (> (doom-snippets-count-lines %) 1) +# -- +(if-let (($1)) $0 `(doom-snippets-format "%n%s")`)`(doom-snippets-newline-or-eol)`
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/insert b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/insert new file mode 100644 index 0000000..ea1a081 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/insert @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: insert +# key: insert +# uuid: insert +# key: i +# -- +(insert $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/insert-file-contents b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/insert-file-contents new file mode 100644 index 0000000..1fcc121 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/insert-file-contents @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: insert-file-contents +# key: insert-file-contents +# uuid: insert-file-contents +# key: ifc +# -- +(insert-file-contents $0 &optional VISIT BEG END REPLACE)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/int b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/int new file mode 100644 index 0000000..3413c41 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/int @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: interactive +# uuid: int +# -- +(interactive)$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/interactive b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/interactive new file mode 100644 index 0000000..916bc85 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/interactive @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: interactive +# -- +(interactive$1)$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/kbd b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/kbd new file mode 100644 index 0000000..50b26c0 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/kbd @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: kbd +# -- +(kbd "${0:}")
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/kill-buffer b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/kill-buffer new file mode 100644 index 0000000..27d0f44 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/kill-buffer @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: kill-buffer +# key: kill-buffer +# uuid: kill-buffer +# key: kb +# -- +(kill-buffer $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/lam b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/lam new file mode 100644 index 0000000..50cf6ff --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/lam @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Henrik Lissner (henrik.io) +# name: lambda shortcut +# key: lam +# uuid: lam +# -- +(λ! $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/length b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/length new file mode 100644 index 0000000..8f89a17 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/length @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: length +# -- +(length $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/line-beginning-position b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/line-beginning-position new file mode 100644 index 0000000..d6f9bcc --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/line-beginning-position @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: line-beginning-position +# key: line-beginning-position +# uuid: line-beginning-position +# key: lbp +# -- +(line-beginning-position)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/line-end-position b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/line-end-position new file mode 100644 index 0000000..986732b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/line-end-position @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: line-end-position +# key: line-end-position +# uuid: line-end-position +# key: lep +# -- +(line-end-position)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/list b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/list new file mode 100644 index 0000000..b19d670 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/list @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: list +# -- +(list $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/looking-at b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/looking-at new file mode 100644 index 0000000..79d554a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/looking-at @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: looking-at +# -- +(looking-at $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/make-directory b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/make-directory new file mode 100644 index 0000000..6eec6ff --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/make-directory @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: make-directory +# key: make-directory +# uuid: make-directory +# key: md +# -- +(make-directory $0 &optional PARENTS)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/make-hash-table b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/make-hash-table new file mode 100644 index 0000000..ee3a5e6 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/make-hash-table @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: hash +# key: mht +# uuid: mht +# -- +(make-hash-table${1: :test '${2:equal}})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/make-local-variable b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/make-local-variable new file mode 100644 index 0000000..fea5a14 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/make-local-variable @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: make-local-variable +# key: make-local-variable +# uuid: make-local-variable +# key: mlv +# -- +(make-local-variable $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/mapc b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/mapc new file mode 100644 index 0000000..4ea1bed --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/mapc @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: mapc +# -- +(mapc ${1:fn} ${0:list})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/mapcar b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/mapcar new file mode 100644 index 0000000..f1ef8e9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/mapcar @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: mapcar +# -- +(mapcar ${1:fn} ${0:list})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/match-beginning b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/match-beginning new file mode 100644 index 0000000..6694bb7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/match-beginning @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: match-beginning +# key: match-beginning +# uuid: match-beginning +# key: mb +# -- +(match-beginning N$0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/match-end b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/match-end new file mode 100644 index 0000000..9fc2690 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/match-end @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: match-end +# key: match-end +# uuid: match-end +# key: me +# -- +(match-end N$0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/match-string b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/match-string new file mode 100644 index 0000000..c64d45b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/match-string @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: match-string +# key: match-string +# uuid: match-string +# key: ms +# -- +(match-string $0 )
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/memq b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/memq new file mode 100644 index 0000000..33fbf30 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/memq @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: memq +# -- +(memq ${0:sym} ${1:list})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/message b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/message new file mode 100644 index 0000000..76f2650 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/message @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: message +# key: m +# uuid: m +# -- +(message "${1:}"$0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/minor_mode b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/minor_mode new file mode 100644 index 0000000..214a00c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/minor_mode @@ -0,0 +1,21 @@ +# -*- mode: snippet -*- +# name: minor_mode +# key: minor +# uuid: minor +# -- +(defvar ${1:mode}-modeline-indicator " ${2:INDICATOR}" + "call ($1-install-mode) again if this is changed") + +(defvar $1-mode nil) +(make-variable-buffer-local '$1-mode) +(put '$1-mode 'permanent-local t) + +(defun $1-mode (&optional arg) + "$0" + (interactive "P") + (setq $1-mode + (if (null arg) (not $1-mode) + (> (prefix-numeric-value arg) 0))) + (force-mode-line-update)) + +(provide '$1-mode)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/not b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/not new file mode 100644 index 0000000..78bec14 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/not @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: not +# -- +(not $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/nth b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/nth new file mode 100644 index 0000000..b8b6351 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/nth @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: nth +# -- +(nth ${0:n} ${1:list})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/optional b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/optional new file mode 100644 index 0000000..006715b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/optional @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: &optional ... +# uuid: optional +# -- +&optional $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/or b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/or new file mode 100644 index 0000000..e865ba5 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/or @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: or +# -- +(or $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/point b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/point new file mode 100644 index 0000000..55b6623 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/point @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: point +# key: pt +# -- +(point)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/point-max b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/point-max new file mode 100644 index 0000000..389a243 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/point-max @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: point-max +# uuid: point-max +# key: pma +# -- +(point-max)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/point-min b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/point-min new file mode 100644 index 0000000..9bf5c5e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/point-min @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: point-min +# uuid: point-min +# key: pmi +# -- +(point-min)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/princ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/princ new file mode 100644 index 0000000..f0c308c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/princ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: princ +# key: princ +# uuid: princ +# -- +(princ $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/print b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/print new file mode 100644 index 0000000..2649da8 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/print @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: print +# key: print +# uuid: print +# -- +(print $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/provide b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/provide new file mode 100644 index 0000000..374effc --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/provide @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: provide +# -- +(provide '`(file-name-base buffer-file-name)`)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/put b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/put new file mode 100644 index 0000000..0f8b96f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/put @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: put +# key: put +# uuid: put +# -- +(put $0 PROPNAME VALUE)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/re-search-backward b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/re-search-backward new file mode 100644 index 0000000..eb3f210 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/re-search-backward @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: re-search-backward +# key: re-search-backward +# uuid: re-search-backward +# key: rsb +# -- +(re-search-backward REGEXP$0 &optional BOUND NOERROR COUNT)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/re-search-forward b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/re-search-forward new file mode 100644 index 0000000..970b23e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/re-search-forward @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: re-search-forward +# key: re-search-forward +# uuid: re-search-forward +# key: rsf +# -- +(re-search-forward REGEXP$0 &optional BOUND NOERROR COUNT)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/region-active-p b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/region-active-p new file mode 100644 index 0000000..d696b97 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/region-active-p @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: region-active-p +# key: region-active-p +# uuid: region-active-p +# key: rap +# -- +(region-active-p)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/region-beginning b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/region-beginning new file mode 100644 index 0000000..8c06c3f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/region-beginning @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: region-beginning +# key: region-beginning +# uuid: region-beginning +# key: rb +# -- +(region-beginning)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/region-end b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/region-end new file mode 100644 index 0000000..1ab4f60 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/region-end @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: region-end +# key: region-end +# uuid: region-end +# key: re +# -- +(region-end)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/rename-file b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/rename-file new file mode 100644 index 0000000..e61ee95 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/rename-file @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: rename-file +# key: rename-file +# uuid: rename-file +# key: rf +# -- +(rename-file FILE$0 NEWNAME &optional OK-IF-ALREADY-EXISTS)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/repeat b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/repeat new file mode 100644 index 0000000..754fd26 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/repeat @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: repeat +# key: repeat +# uuid: repeat +# -- +(repeat $0 )
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/replace-regexp b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/replace-regexp new file mode 100644 index 0000000..b2a78aa --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/replace-regexp @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: replace-regexp +# key: replace-regexp +# uuid: replace-regexp +# key: rr +# -- +(replace-regexp REGEXP$0 TO-STRING &optional DELIMITED START END)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/replace-regexp-in-string b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/replace-regexp-in-string new file mode 100644 index 0000000..4648f3d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/replace-regexp-in-string @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: replace-regexp-in-string +# key: replace-regexp-in-string +# uuid: replace-regexp-in-string +# key: rris +# -- +(replace-regexp-in-string REGEXP$0 REP STRING &optional FIXEDCASE LITERAL SUBEXP START)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/require b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/require new file mode 100644 index 0000000..eed355f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/require @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: require +# -- +(require '${1:package})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/rest b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/rest new file mode 100644 index 0000000..af50300 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/rest @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: &rest ... +# -- +&rest $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/save-buffer b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/save-buffer new file mode 100644 index 0000000..0f7df36 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/save-buffer @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: save-buffer +# key: save-buffer +# uuid: save-buffer +# key: sb +# -- +(save-buffer $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/search-backward b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/search-backward new file mode 100644 index 0000000..9ef33cc --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/search-backward @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: search-backward +# key: search-backward +# uuid: search-backward +# key: sb +# -- +(search-backward "$0" &optional BOUND NOERROR COUNT)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/search-backward-regexp b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/search-backward-regexp new file mode 100644 index 0000000..43f4bb1 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/search-backward-regexp @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: search-backward-regexp +# key: search-backward-regexp +# uuid: search-backward-regexp +# key: sbr +# -- +(search-backward-regexp "$0" &optional BOUND NOERROR COUNT)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/search-forward b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/search-forward new file mode 100644 index 0000000..cb20dd2 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/search-forward @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: search-forward +# key: search-forward +# uuid: search-forward +# key: sf +# -- +(search-forward "$0" &optional BOUND NOERROR COUNT)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/search-forward-regexp b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/search-forward-regexp new file mode 100644 index 0000000..e70e3cb --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/search-forward-regexp @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: search-forward-regexp +# key: search-forward-regexp +# uuid: search-forward-regexp +# key: sfr +# -- +(search-forward-regexp "$0" &optional BOUND NOERROR COUNT)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/set b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/set new file mode 100644 index 0000000..c6f34aa --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/set @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: set +# key: set +# uuid: set +# -- +(set $0 )
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/set-buffer b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/set-buffer new file mode 100644 index 0000000..b8692a9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/set-buffer @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: set-buffer +# key: set-buffer +# uuid: set-buffer +# key: sb +# -- +(set-buffer $0 )
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/set-file-modes b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/set-file-modes new file mode 100644 index 0000000..bc3aa1e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/set-file-modes @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: set-file-modes +# key: set-file-modes +# uuid: set-file-modes +# key: sfm +# -- +(set-file-modes $0 MODE)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/set-mark b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/set-mark new file mode 100644 index 0000000..245cea9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/set-mark @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: set-mark +# key: set-mark +# uuid: set-mark +# key: sm +# -- +(set-mark $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/setq b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/setq new file mode 100644 index 0000000..8dcb8c4 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/setq @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: setq +# -- +(setq ${1:var} ${0:})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/setq-default b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/setq-default new file mode 100644 index 0000000..c69fe3a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/setq-default @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: setq-default +# key: setqd +# uuid: setqd +# -- +(setq-default ${1:} ${0:value}) diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/skip-chars-backward b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/skip-chars-backward new file mode 100644 index 0000000..c51cc5e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/skip-chars-backward @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: skip-chars-backward +# key: skip-chars-backward +# uuid: skip-chars-backward +# key: scb +# -- +(skip-chars-backward "$0" &optional LIM)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/skip-chars-forward b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/skip-chars-forward new file mode 100644 index 0000000..e3a6b00 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/skip-chars-forward @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: skip-chars-forward +# key: skip-chars-forward +# uuid: skip-chars-forward +# key: scf +# -- +(skip-chars-forward "$0" &optional LIM)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/split-string b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/split-string new file mode 100644 index 0000000..9a59963 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/split-string @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: split-string +# key: split-string +# uuid: split-string +# key: ss +# -- +(split-string $0 &optional SEPARATORS OMIT-NULLS)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/string b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/string new file mode 100644 index 0000000..b102d6e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/string @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: string +# key: string +# uuid: string +# -- +(string $0 )
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/string-match b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/string-match new file mode 100644 index 0000000..67ae912 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/string-match @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: string-match +# -- +(string-match "${0:regexp}" ${1:string}${2: ${3:START}})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/string-match-p b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/string-match-p new file mode 100644 index 0000000..d7ab230 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/string-match-p @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: string-match-p +# -- +(string-match-p "${0:regexp}" ${1:string}${2: ${3:START}})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/string-to-number b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/string-to-number new file mode 100644 index 0000000..3a108bd --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/string-to-number @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: string-to-number +# key: stn +# uuid: stn +# -- +(string-to-number "$0")
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/string= b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/string= new file mode 100644 index 0000000..c6d2743 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/string= @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: string= +# key: string= +# uuid: string= +# -- +(string= ${1:} ${2:str})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/stringp b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/stringp new file mode 100644 index 0000000..7827762 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/stringp @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: stringp +# key: stringp +# uuid: stringp +# -- +(stringp $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/substring b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/substring new file mode 100644 index 0000000..0df2462 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/substring @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: substring +# key: substring +# uuid: substring +# -- +(substring STRING$0 FROM &optional TO)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/thing-at-point b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/thing-at-point new file mode 100644 index 0000000..eb0ef1b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/thing-at-point @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: thing-at-point +# key: thing-at-point +# uuid: thing-at-point +# key: tap +# -- +(thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ...
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/traverse_dir b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/traverse_dir new file mode 100644 index 0000000..1bf675f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/traverse_dir @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: traversing a directory +# contributor: Xah Lee +# -- +;; apply a function to all files in a dir +(require 'find-lisp) +(mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$")) diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/use-package b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/use-package new file mode 100644 index 0000000..3c1bbba --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/use-package @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: use-package +# key: up +# uuid: up +# -- +(use-package ${1:package} + :${2:config} + $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/vector b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/vector new file mode 100644 index 0000000..af13f98 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/vector @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: vector +# key: vector +# uuid: vector +# key: v +# -- +(vector $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/widget-get b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/widget-get new file mode 100644 index 0000000..e74471a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/widget-get @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: widget-get +# key: widget-get +# uuid: widget-get +# key: wg +# -- +(widget-get $0 )
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/word-or-region b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/word-or-region new file mode 100644 index 0000000..e2cadda --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/word-or-region @@ -0,0 +1,28 @@ +# -*- mode: snippet -*- +# name: Command that works on region or word +# contributor: Xah Lee +# -- +;; example of a command that works on current word or text selection +(defun down-case-word-or-region () + "Lower case the current word or text selection." +(interactive) +(let (pos1 pos2 meat) + (if (and transient-mark-mode mark-active) + (setq pos1 (region-beginning) + pos2 (region-end)) + (setq pos1 (car (bounds-of-thing-at-point 'symbol)) + pos2 (cdr (bounds-of-thing-at-point 'symbol)))) + + ; now, pos1 and pos2 are the starting and ending positions + ; of the current word, or current text selection if exists + + ;; put your code here. + $0 + ;; Some example of things you might want to do + (downcase-region pos1 pos2) ; example of a func that takes region as args + (setq meat (buffer-substring-no-properties pos1 pos2)) ; grab the text. + (delete-region pos1 pos2) ; get rid of it + (insert "newText") ; insert your new text + + ) +) diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/word_regexp b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/word_regexp new file mode 100644 index 0000000..c94419d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/word_regexp @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: word_regexp +# key: < +# uuid: < +# -- +"\\_<${1:word}\\_>"
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-dired.process_marked b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-dired.process_marked new file mode 100644 index 0000000..81becbd --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-dired.process_marked @@ -0,0 +1,19 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: process marked files in dired +# key: x-dired +# uuid: x-dired +# -- +;; idiom for processing a list of files in dired's marked files + +;; suppose myProcessFile is your function that takes a file path +;; and do some processing on the file + +(defun dired-myProcessFile () + "apply myProcessFile function to marked files in dired." + (interactive) + (require 'dired) + (mapc 'myProcessFile (dired-get-marked-files)) +) + +;; to use it, type M-x dired-myProcessFile
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-file.process b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-file.process new file mode 100644 index 0000000..ec6870a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-file.process @@ -0,0 +1,20 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: a function that process a file +# key: x-file +# uuid: x-file +# -- +(defun doThisFile (fpath) + "Process the file at path FPATH ..." + (let () + ;; create temp buffer without undo record or font lock. (more efficient) + ;; first space in temp buff name is necessary + (set-buffer (get-buffer-create " myTemp")) + (insert-file-contents fpath nil nil nil t) + + ;; process it ... + ;; (goto-char 0) ; move to begining of file's content (in case it was open) + ;; ... do something here + ;; (write-file fpath) ;; write back to the file + + (kill-buffer " myTemp")))
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-file.read-lines b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-file.read-lines new file mode 100644 index 0000000..0b034a1 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-file.read-lines @@ -0,0 +1,20 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: read lines of a file +# key: x-file +# uuid: x-file +# -- +(defun read-lines (filePath) + "Return a list of lines in FILEPATH." + (with-temp-buffer + (insert-file-contents filePath) + (split-string + (buffer-string) "\n" t)) ) + +;; process all lines +(mapc + (lambda (aLine) + (message aLine) ; do your stuff here + ) + (read-lines "inputFilePath") +)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-find-replace b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-find-replace new file mode 100644 index 0000000..8aadfc9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-find-replace @@ -0,0 +1,20 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: find and replace on region +# key: x-find-replace +# uuid: x-find-replace +# -- +(defun replace-html-chars-region (start end) + "Replace “<” to “<” and other chars in HTML. +This works on the current region." + (interactive "r") + (save-restriction + (narrow-to-region start end) + (goto-char (point-min)) + (while (search-forward "&" nil t) (replace-match "&" nil t)) + (goto-char (point-min)) + (while (search-forward "<" nil t) (replace-match "<" nil t)) + (goto-char (point-min)) + (while (search-forward ">" nil t) (replace-match ">" nil t)) + ) + )
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-grabstring b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-grabstring new file mode 100644 index 0000000..4a5c008 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-grabstring @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: grab buffer substring +# key: x-grabstring +# uuid: x-grabstring +# -- +(setq $0 (buffer-substring-no-properties myStartPos myEndPos))
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-grabthing b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-grabthing new file mode 100644 index 0000000..f59a37d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-grabthing @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: grab word under cursor +# key: x-grabthing +# uuid: x-grabthing +# -- +(setq $0 (thing-at-point 'symbol))
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-traverse_dir b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-traverse_dir new file mode 100644 index 0000000..57c487d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-traverse_dir @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: traversing a directory +# contributor: Xah Lee (XahLee.org) +# key: x-traverse_dir +# uuid: x-traverse_dir +# -- +;; apply a function to all files in a dir +(require 'find-lisp) +(mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$"))
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-word-or-region b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-word-or-region new file mode 100644 index 0000000..846c59f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/x-word-or-region @@ -0,0 +1,30 @@ +# -*- mode: snippet -*- +# contributor: Xah Lee (XahLee.org) +# name: Command that works on region or word +# key: x-word-or-region +# uuid: x-word-or-region +# -- +;; example of a command that works on current word or text selection +(defun down-case-word-or-region () + "Lower case the current word or text selection." +(interactive) +(let (pos1 pos2 meat) + (if (and transient-mark-mode mark-active) + (setq pos1 (region-beginning) + pos2 (region-end)) + (setq pos1 (car (bounds-of-thing-at-point 'symbol)) + pos2 (cdr (bounds-of-thing-at-point 'symbol)))) + + ; now, pos1 and pos2 are the starting and ending positions + ; of the current word, or current text selection if exists + + ;; put your code here. + $0 + ;; Some example of things you might want to do + (downcase-region pos1 pos2) ; example of a func that takes region as args + (setq meat (buffer-substring-no-properties pos1 pos2)) ; grab the text. + (delete-region pos1 pos2) ; get rid of it + (insert "newText") ; insert your new text + + ) +)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/y-or-n-p b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/y-or-n-p new file mode 100644 index 0000000..c47d287 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/y-or-n-p @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: y-or-n-p +# key: yn +# -- +(y-or-n-p "$1")
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/yes-or-no-p b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/yes-or-no-p new file mode 100644 index 0000000..fb2b64b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/emacs-lisp-mode/yes-or-no-p @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: y-or-n-p +# key: yesno +# -- +(yes-or-no-p "$1")
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/case b/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/case new file mode 100644 index 0000000..0b2241b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/case @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: case +# key: case +# uuid: case +# -- +case ${1:var} of + ${2:cond} -> ${3:value} + $0 + otherwise -> ${4:other}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/data b/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/data new file mode 100644 index 0000000..98ed8b4 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/data @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: data +# key: da +# uuid: da +# -- +data ${1:Type} = $2
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/doc b/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/doc new file mode 100644 index 0000000..390e096 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/doc @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: doc +# key: d +# uuid: d +# -- +{- + $0 +-}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/function b/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/function new file mode 100644 index 0000000..ba1ebe9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/function @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: Function +# key: :: +# uuid: :: +# -- +${1:fn-name} :: ${2:type} +$1
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/import b/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/import new file mode 100644 index 0000000..2e5913b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/import @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: import +# key: import +# uuid: import +# -- +import${1: qualified} ${2:Module${3:(symbols)}}${4: as ${5:alias}}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/instance b/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/instance new file mode 100644 index 0000000..e0bf941 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/instance @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: instance +# key: ins +# uuid: ins +# -- +instance ${1:${2:(Show a)} => }${3:Ord} ${4:DataType} where +$0 diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/main b/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/main new file mode 100644 index 0000000..65f6f06 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/main @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: main +# key: main +# uuid: main +# -- +main = do $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/module b/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/module new file mode 100644 index 0000000..0155fa1 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/module @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: module +# key: mod +# uuid: mod +# -- +module ${1:Module} where +$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/new-class b/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/new-class new file mode 100644 index 0000000..76c3741 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/new-class @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: new class +# key: class +# uuid: class +# -- +class ${1:Class Name} where + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/pragma b/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/pragma new file mode 100644 index 0000000..0b95488 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/pragma @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: pragma +# key: { +# uuid: { +# -- +{-# ${1:PRAGMA} #-}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/print b/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/print new file mode 100644 index 0000000..db6c70a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/haskell-mode/print @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: print +# key: pr +# uuid: pr +# -- +print $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/dd b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/dd new file mode 100644 index 0000000..30cbeb5 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/dd @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# contributor: Rodrigo Setti <rodrigosetti@gmail.com> +# name: <dd> ... </dd> +# group: list +# -- +<dd>$1</dd>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/dl b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/dl new file mode 100644 index 0000000..1753361 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/dl @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Rodrigo Setti <rodrigosetti@gmail.com> +# name: <dl> ... </dl> +# group: list +# -- +<dl> + $0 +</dl> diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/doctype b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/doctype new file mode 100644 index 0000000..7bffad7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/doctype @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: Doctype HTML 5 +# group: meta +# -- +<!DOCTYPE html> diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/doctype.xhml1 b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/doctype.xhml1 new file mode 100644 index 0000000..b94dbf4 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/doctype.xhml1 @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: DocType XHTML 1.0 frameset +# group: meta +# -- +<!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/.config/emacs/.config/yasnippet/snippets/html-mode/doctype.xhtml1_1 b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/doctype.xhtml1_1 new file mode 100644 index 0000000..875547d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/doctype.xhtml1_1 @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: DocType XHTML 1.1 +# group: meta +# -- +<!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/.config/emacs/.config/yasnippet/snippets/html-mode/doctype.xhtml1_strict b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/doctype.xhtml1_strict new file mode 100644 index 0000000..8ddc158 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/doctype.xhtml1_strict @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: DocType XHTML 1.0 Strict +# group: meta +# -- +<!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/.config/emacs/.config/yasnippet/snippets/html-mode/doctype.xhtml1_transitional b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/doctype.xhtml1_transitional new file mode 100644 index 0000000..144bc43 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/doctype.xhtml1_transitional @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: DocType XHTML 1.0 Transitional +# group: meta +# -- +<!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/.config/emacs/.config/yasnippet/snippets/html-mode/dt b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/dt new file mode 100644 index 0000000..7641c8e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/dt @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# contributor: Rodrigo Setti <rodrigosetti@gmail.com> +# name: <dt> ... </dt> +# group: list +# -- +<dt>$1</dt>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/form b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/form new file mode 100644 index 0000000..5511388 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/form @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Jimmy Wu <frozenthrone88@gmail.com> +# name: <form method="..." id="..." action="..."></form> +# -- +<form method="$1" id="$2" action="$3"> + $0 +</form>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/html b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/html new file mode 100644 index 0000000..8600a33 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/html @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Jimmy Wu <frozenthrone88@gmail.com> +# name: <html>...</html> +# -- +<html> + $0 +</html> diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/html.xmlns b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/html.xmlns new file mode 100644 index 0000000..a85689b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/html.xmlns @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: Jimmy Wu <frozenthrone88@gmail.com> +# name: <html xmlns="...">...</html> +# -- +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="${1:en}" lang="${2:en}"> + $0 +</html> diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/link b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/link new file mode 100644 index 0000000..3f97d00 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/link @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: <link rel="stylesheet" ... /> +# key: link +# uuid: link +# -- +<link rel="${1:stylesheet}" href="${2:url}" type="${3:text/css}" media="${4:screen}" />
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/linkie b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/linkie new file mode 100644 index 0000000..6e2c2ee --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/linkie @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: <!--[if IE]><link stylesheet="..." /><![endif]--> +# -- +<!--[if IE${1: version}]> +<link rel="${2:stylesheet}" href="${3:url}" type="${4:text/css}" media="${5:screen}" /> +<![endif]--> diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/meta b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/meta new file mode 100644 index 0000000..6cad73a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/meta @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# contributor : Jimmy Wu <frozenthrone88@gmail.com> +# group: meta +# name: <meta name="..." content="..." /> +# -- +<meta name="${1:generator}" content="${2:content}" />
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/meta.http-equiv b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/meta.http-equiv new file mode 100644 index 0000000..a7a5a50 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/meta.http-equiv @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# contributor: Jimmy Wu <frozenthrone88@gmail.com> +# name: <meta http-equiv="..." content="..." /> +# group: meta +# -- +<meta name="${1:Content-Type}" content="${2:text/html; charset=UTF-8}" />
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/script b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/script new file mode 100644 index 0000000..d36430e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/script @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: <script type="text/javascript">...</script> +# -- +<script type="text/javascript"> + $0 +</script>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/scriptsrc b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/scriptsrc new file mode 100644 index 0000000..db4dbe5 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/scriptsrc @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: <script type="text/javascript" src="..."></script> +# -- +<script type="text/javascript" src="$1"></script>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/textarea b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/textarea new file mode 100644 index 0000000..d3f5c7a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/textarea @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# contributor: Jimmy Wu <frozenthrone88@gmail.com> +# name: <textarea ...></textarea> +# -- +<textarea name="$1" id="$2" rows="$3" cols="$4" tabindex="$5"></textarea>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/th b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/th new file mode 100644 index 0000000..6d3e21a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/html-mode/th @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# contributor: Jimmy Wu <frozenthrone88@gmail.com> +# name: <th>...</th> +# group: table +# -- +<th$1>$2</th>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/.yas-parents b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/.yas-parents new file mode 100644 index 0000000..2f29616 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/.yas-parents @@ -0,0 +1 @@ +cc-mode text-mode prog-mode
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/@param b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/@param new file mode 100644 index 0000000..9c7ed49 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/@param @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: param +# key: @param +# uuid: @param +# condition: (sp-point-in-comment) +# -- +@param ${1:paramater} $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/@return b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/@return new file mode 100644 index 0000000..f59a873 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/@return @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: return +# key: @return +# uuid: @return +# condition: (sp-point-in-comment) +# -- +@return ${1:description}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/apr_assert b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/apr_assert new file mode 100644 index 0000000..dca9f95 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/apr_assert @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: apr_assert +# key: apr_assert +# uuid: apr_assert +# -- +if (Globals.useAssertions) { + ${1:assert ..}; +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/class b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/class new file mode 100644 index 0000000..4b23f00 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/class @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: class +# key: class +# uuid: class +# -- +${1:public }class ${2:`(f-base buffer-file-name)`} { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/constructor b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/constructor new file mode 100644 index 0000000..7a379cd --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/constructor @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: constructor +# key: __init__ +# uuid: __init__ +# -- +public ${1:`(f-base buffer-file-name)`}($2) { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/doc b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/doc new file mode 100644 index 0000000..7108ccf --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/doc @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: doc +# key: /* +# uuid: /* +# condition: (not (use-region-p)) +# -- +/** + * $0 + */
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/equals b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/equals new file mode 100644 index 0000000..9b66be5 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/equals @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: equals +# key: eq +# uuid: eq +# -- +public boolean equals(${1:Class} other) { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/file_class b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/file_class new file mode 100644 index 0000000..a0685b3 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/file_class @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: file_class +# key: file +# uuid: file +# -- +public class ${1:`(file-name-base + (or (buffer-file-name) + (buffer-name)))`} { + $0 +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/for b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/for new file mode 100644 index 0000000..64b99d2 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/for @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: for +# key: for +# uuid: for +# -- +for (${1:int i = 0}; ${2:i < N}; ${3:i++}) { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/foreach b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/foreach new file mode 100644 index 0000000..236a446 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/foreach @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: foreach +# key: fore +# uuid: fore +# -- +for (${1:Object} ${2:var} : ${3:iterator}) { + $0 +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/if b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/if new file mode 100644 index 0000000..bddbdd5 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/if @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: if +# key: if +# uuid: if +# condition: (not (sp-point-in-string-or-comment)) +# -- +if (${1:true}) { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/ife b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/ife new file mode 100644 index 0000000..0158f7a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/ife @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: ife +# key: ife +# uuid: ife +# -- +if (${1:true}) { + $2 +} else { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/import b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/import new file mode 100644 index 0000000..f863d97 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/import @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: import +# -- +import ${1:System.}; +$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/interface b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/interface new file mode 100644 index 0000000..b5cac51 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/interface @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: interface +# key: interface +# uuid: interface +# -- +interface ${1:`(f-base buffer-file-name)`} { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/iterator b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/iterator new file mode 100644 index 0000000..523310c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/iterator @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: iterator +# key: iterator +# uuid: iterator +# -- +public Iterator<${1:type}> iterator() { + $0 +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/javadoc b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/javadoc new file mode 100644 index 0000000..af9c339 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/javadoc @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: javadoc +# key: doc +# uuid: doc +# -- +/** + * $0 + * + */
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/main b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/main new file mode 100644 index 0000000..7b51d33 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/main @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: main +# key: main +# uuid: main +# -- +public static void main(String[] args) { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/method b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/method new file mode 100644 index 0000000..d7159d4 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/method @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: method +# key: method +# uuid: method +# condition: (not (sp-point-in-string-or-comment)) +# -- +${1:void} ${2:name}($3) { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/method@ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/method@ new file mode 100644 index 0000000..697dbcb --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/method@ @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: @Override method +# key: method@ +# uuid: method@ +# condition: (not (sp-point-in-string-or-comment)) +# -- +@Override ${1:public} ${2:void} ${3:methodName}($4) { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/new b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/new new file mode 100644 index 0000000..6c811c7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/new @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: new +# key: new +# uuid: new +# -- +${1:Type} ${2:obj} = new ${3:$1}($4);$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/paintComponent b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/paintComponent new file mode 100644 index 0000000..21770fc --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/paintComponent @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: paintComponent (Swing) +# key: paintComponent +# uuid: paintComponent +# condition: (not (sp-point-in-string-or-comment)) +# -- +@Override public void paintComponent(Graphics g) { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/printf b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/printf new file mode 100644 index 0000000..6936057 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/printf @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: printf +# key: printf +# uuid: printf +# -- +System.out.printf("$0%n");
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/println b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/println new file mode 100644 index 0000000..d8e46bc --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/println @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: println +# key: println +# uuid: println +# -- +System.out.println("$0");
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/private b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/private new file mode 100644 index 0000000..32e58fe --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/private @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: private +# key: pri +# uuid: pri +# -- +private $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/protected b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/protected new file mode 100644 index 0000000..cdc4c24 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/protected @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: protected +# key: pr +# uuid: pr +# -- +protected $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/public b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/public new file mode 100644 index 0000000..378b360 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/public @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: public +# key: p +# uuid: p +# -- +public $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/return b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/return new file mode 100644 index 0000000..27b6818 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/return @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: return +# key: ret +# uuid: ret +# condition: (not (sp-point-in-string-or-comment)) +# -- +return $0;
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/test b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/test new file mode 100644 index 0000000..2aa4d2d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/test @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: test +# key: test +# uuid: test +# -- +@Test +public void test_${1:Case}() { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/testClass b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/testClass new file mode 100644 index 0000000..6bdeb91 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/testClass @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# name: testClass +# key: tc +# uuid: tc +# -- +import junit.framework.*; +import junit.textui.*; + +public class Test${1:Class} extends TestCase { + protected void setUp() { + $0 + } +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/this b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/this new file mode 100644 index 0000000..2f67688 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/this @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: this +# key: . +# uuid: . +# -- +this.$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/toString b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/toString new file mode 100644 index 0000000..2e60c9d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/toString @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: toString +# key: toStr +# uuid: toStr +# -- +public String toString() { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/try b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/try new file mode 100644 index 0000000..3ce4885 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/try @@ -0,0 +1,12 @@ +# -*- mode: snippet -*- +# name: try +# key: try +# uuid: try +# condition: (not (sp-point-in-string-or-comment)) +# -- +try { + $0 +} catch (${1:Throwable} e) { + ${2:System.out.println("Error " + e.getMessage()); + e.printStackTrace();} +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/var b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/var new file mode 100644 index 0000000..7d9a3c6 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/var @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: variable declaration +# key: var +# uuid: var +# condition: (not (sp-point-in-string-or-comment)) +# -- +${1:int} ${2:variable}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/var= b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/var= new file mode 100644 index 0000000..81afb6a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/var= @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: variable declaration & assignment +# key: var= +# uuid: var= +# condition: (not (sp-point-in-string-or-comment)) +# -- +${1:int} ${2:variable} = $0;
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/void b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/void new file mode 100644 index 0000000..71d7e81 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/void @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: void +# key: v +# uuid: v +# -- +void $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/while b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/while new file mode 100644 index 0000000..42dbb9b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/java-mode/while @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: while loop +# key: while +# uuid: while +# condition: (not (sp-point-in-string-or-comment)) +# -- +while (${1:true}) { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/json-mode/eslintConfig b/Emacs/.config/emacs/.config/yasnippet/snippets/json-mode/eslintConfig new file mode 100644 index 0000000..8c9d2c4 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/json-mode/eslintConfig @@ -0,0 +1,19 @@ +# -*- mode: snippet -*- +# name: eslintConfig +# key: eslint +# uuid: eslint +# condition: (equal (file-name-nondirectory buffer-file-name) "package.json") +# -- +"eslintConfig": { + "env": { + "es6": true, + "browser": true, + "commonjs": true, + "node": true + }, + "parserOptions": { + "ecmaFeatures": { + "jsx": true + } + } +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/acronym b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/acronym new file mode 100644 index 0000000..41fafdd --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/acronym @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: acronym +# key: ac +# uuid: ac +# -- +\newacronym{${1:label}}{${1:$(upcase yas-text)}}{${2:Name}}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/alertblock b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/alertblock new file mode 100644 index 0000000..c8cfb62 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/alertblock @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: alertblock +# key: al +# uuid: al +# -- +\begin{alertblock}{$2} + ${0:} +\end{alertblock}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/alg b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/alg new file mode 100644 index 0000000..568cf95 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/alg @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: alg +# key: alg +# uuid: alg +# -- +\begin{algorithmic} +${0:} +\end{algorithmic} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/axiom b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/axiom new file mode 100644 index 0000000..54d9b83 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/axiom @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: axiom +# key: axm +# group: theorems +# -- +\begin{axiom} +$0 +\end{axiom}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/begin b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/begin new file mode 100644 index 0000000..f998ce3 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/begin @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: begin +# key: begin +# uuid: begin +# -- +\begin{${1:environment}} +$0 +\end{$1}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/bigcap_^ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/bigcap_^ new file mode 100644 index 0000000..b9a8319 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/bigcap_^ @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: bigcap_^ +# key: cap +# -- +\bigcap${1:$(when (> (length yas-text) 0) "_") +}${1:$(when (> (length yas-text) 1) "{") +}${1:i=0}${1:$(when (> (length yas-text) 1) "}") +}${2:$(when (> (length yas-text) 0) "^") +}${2:$(when (> (length yas-text) 1) "{") +}${2:n}${2:$(when (> (length yas-text) 1) "}")} $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/bigcup_^ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/bigcup_^ new file mode 100644 index 0000000..d6c58e5 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/bigcup_^ @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: bigcup_^ +# key: cup +# -- +\bigcup${1:$(when (> (length yas-text) 0) "_") +}${1:$(when (> (length yas-text) 1) "{") +}${1:i=0}${1:$(when (> (length yas-text) 1) "}") +}${2:$(when (> (length yas-text) 0) "^") +}${2:$(when (> (length yas-text) 1) "{") +}${2:n}${2:$(when (> (length yas-text) 1) "}")} $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/block b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/block new file mode 100644 index 0000000..7c4ebd6 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/block @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: block +# key: bl +# uuid: bl +# -- +\begin{block}{$1} + ${0:} +\end{block}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/capgls b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/capgls new file mode 100644 index 0000000..5a5d021 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/capgls @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: Gls +# key: G +# uuid: G +# condition: (not (save-restriction (widen) (texmathp))) +# -- +\Gls{${1:label}}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/caption b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/caption new file mode 100644 index 0000000..6d36c67 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/caption @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: caption +# key: ca +# uuid: ca +# -- +\caption{${0:}}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/cite b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/cite new file mode 100644 index 0000000..b584ba7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/cite @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: cite +# key: c +# uuid: c +# condition: (not (save-restriction (widen) (texmathp))) +# -- +\cite{$1} $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/code b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/code new file mode 100644 index 0000000..3ebea95 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/code @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: code +# key: code +# uuid: code +# -- +\begin{lstlisting} +${0:} +\end{lstlisting}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/columns b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/columns new file mode 100644 index 0000000..2d70450 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/columns @@ -0,0 +1,14 @@ +# -*- mode: snippet -*- +# name: columns +# key: cols +# uuid: cols +# -- +\begin{columns} + \begin{column}{.${1:5}\textwidth} + $0 + \end{column} + + \begin{column}{.${2:5}\textwidth} + + \end{column} +\end{columns}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/corollary b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/corollary new file mode 100644 index 0000000..f9590bc --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/corollary @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: corollary +# key: clr +# group: theorems +# -- +\begin{corollary} +$0 +\end{corollary}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/definition b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/definition new file mode 100644 index 0000000..bf16e98 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/definition @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: definition +# key: def +# group: theorems +# -- +\begin{definition} +$0 +\end{definition}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/emph b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/emph new file mode 100644 index 0000000..3b091c2 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/emph @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: emph +# key: e +# uuid: e +# condition: (not (save-restriction (widen) (texmathp))) +# -- +\emph{${1:}}$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/enumerate b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/enumerate new file mode 100644 index 0000000..6e38ec9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/enumerate @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: enumerate +# key: en +# uuid: en +# -- +\begin{enumerate} +${0:} +\end{enumerate} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/exercise b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/exercise new file mode 100644 index 0000000..05b5a48 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/exercise @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: exercise +# key: exc +# group: theorems +# -- +\begin{exercise} +$0 +\end{exercise}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/figure b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/figure new file mode 100644 index 0000000..cd84b8d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/figure @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: figure +# key: fig +# uuid: fig +# -- +\begin{figure}[ht] + \centering + \includegraphics[${1:options}]{figures/${2:path.pdf}} + \caption{\label{fig:${3:label}} $0} +\end{figure} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/frac b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/frac new file mode 100644 index 0000000..3989e42 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/frac @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: frac +# key: frac +# uuid: frac +# -- +\frac{${1:`(or % "numerator")`}}{${2:denominator}}$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/frame b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/frame new file mode 100644 index 0000000..bc74ffc --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/frame @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: frame +# key: fr +# uuid: fr +# -- +\begin{frame}${1:[$2]} + ${3:\frametitle{$4}} + ${0:} +\end{frame}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/gls b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/gls new file mode 100644 index 0000000..d21eb63 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/gls @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: gls +# key: g +# uuid: g +# condition: (not (save-restriction (widen) (texmathp))) +# -- +\gls{${1:label}}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/glspl b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/glspl new file mode 100644 index 0000000..4a613b7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/glspl @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: glspl +# key: gp +# uuid: gp +# -- +\glspl{${1:label}}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/if b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/if new file mode 100644 index 0000000..a7a7133 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/if @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: if +# key: if +# uuid: if +# -- +\IF {$${1:cond}$} + $0 +\ELSE +\ENDIF diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/includegraphics b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/includegraphics new file mode 100644 index 0000000..dc290e3 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/includegraphics @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: includegraphics +# key: ig +# uuid: ig +# -- +\includegraphics${1:[$2]}{$0}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/int_^ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/int_^ new file mode 100644 index 0000000..9edfb61 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/int_^ @@ -0,0 +1,9 @@ +# key: int +# name: int_^ +# -- +\int${1:$(when (> (length yas-text) 0) "_") +}${1:$(when (> (length yas-text) 1) "{") +}${1:left}${1:$(when (> (length yas-text) 1) "}") +}${2:$(when (> (length yas-text) 0) "^") +}${2:$(when (> (length yas-text) 1) "{") +}${2:right}${2:$(when (> (length yas-text) 1) "}")} $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/item b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/item new file mode 100644 index 0000000..49d61c7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/item @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: item +# key: - +# uuid: - +# condition: (not (save-restriction (widen) (texmathp))) +# -- +\item ${0:}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/itemize b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/itemize new file mode 100644 index 0000000..dc64b1c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/itemize @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: itemize +# key: it +# uuid: it +# -- +\begin{itemize} +${0:} +\end{itemize}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/label b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/label new file mode 100644 index 0000000..237ef67 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/label @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: label +# key: lab +# uuid: lab +# -- +\label{$0}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/lemma b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/lemma new file mode 100644 index 0000000..40aebf8 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/lemma @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: lemma +# key: lmm +# group: theorems +# -- +\begin{lemma} +$0 +\end{lemma}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/lim b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/lim new file mode 100644 index 0000000..db43ca3 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/lim @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: lim +# key: lim +# -- +\lim_{${1:n} \to ${2:\infty}} $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/liminf b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/liminf new file mode 100644 index 0000000..19ae703 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/liminf @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: liminf +# key: liminf +# -- +\liminf_{${1:n} \to ${2:\infty}} $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/limsup b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/limsup new file mode 100644 index 0000000..bdba92b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/limsup @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: limsup +# key: limsup +# -- +\limsup_{${1:n} \to ${2:\infty}} $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/listing b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/listing new file mode 100644 index 0000000..36f34b8 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/listing @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: listing +# key: lst +# uuid: lst +# -- +\begin{lstlisting}[float,label=lst:${1:label},caption=nextHopInfo: ${2:caption}] +${0:} +\end{lstlisting}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/mathclap b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/mathclap new file mode 100644 index 0000000..872794a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/mathclap @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: mathclap +# key: mc +# -- +\mathclap{$0}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/movie b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/movie new file mode 100644 index 0000000..2047bbf --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/movie @@ -0,0 +1,16 @@ +# -*- mode: snippet -*- +# name: movie +# key: movie +# uuid: movie +# -- +\begin{center} +\includemovie[ + label=test, + controls=false, + text={\includegraphics[width=4in]{${1:image.pdf}}} +]{4in}{4in}{${2:video file}} + +\movieref[rate=3]{test}{Play Fast} +\movieref[rate=1]{test}{Play Normal Speed} +\movieref[rate=0.2]{test}{Play Slow} +\movieref[resume]{test}{Pause/Resume} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/newcommand b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/newcommand new file mode 100644 index 0000000..69da1fd --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/newcommand @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: newcommand +# key: cmd +# uuid: cmd +# -- +\newcommand{\\${1:name}}${2:[${3:0}]}{$0}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/newglossaryentry b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/newglossaryentry new file mode 100644 index 0000000..45fe438 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/newglossaryentry @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: newglossaryentry +# key: gl +# uuid: gl +# -- +\newglossaryentry{${1:AC}}{name=${2:Andrea Crotti}${3:, description=${4:description}}}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/note b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/note new file mode 100644 index 0000000..4e80006 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/note @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: note +# key: no +# uuid: no +# -- +\note{${0:}}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/prod_^ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/prod_^ new file mode 100644 index 0000000..aaa1544 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/prod_^ @@ -0,0 +1,9 @@ +# key: prod +# name: prod_^ +# -- +\prod${1:$(when (> (length yas-text) 0) "_") +}${1:$(when (> (length yas-text) 1) "{") +}${1:i=0}${1:$(when (> (length yas-text) 1) "}") +}${2:$(when (> (length yas-text) 0) "^") +}${2:$(when (> (length yas-text) 1) "{") +}${2:n}${2:$(when (> (length yas-text) 1) "}")} $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/proof b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/proof new file mode 100644 index 0000000..37c58d0 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/proof @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: proof +# key: prf +# group: theorems +# -- +\begin{proof} +$0 +\end{proof}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/python b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/python new file mode 100644 index 0000000..2f05399 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/python @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: python +# key: py +# uuid: py +# -- +\lstset{language=python} +\begin[language=python]{lstlisting} +${0:} +\end{lstlisting}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/question b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/question new file mode 100644 index 0000000..1b41306 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/question @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: question +# key: q +# uuid: q +# condition: (not (save-restriction (widen) (texmathp))) +# -- +\question{${0:}}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/remark b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/remark new file mode 100644 index 0000000..176ed84 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/remark @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: remark +# key: rmk +# group: theorems +# -- +\begin{remark} +$0 +\end{remark}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/root b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/root new file mode 100644 index 0000000..55fc666 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/root @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: sqrt[]{} +# key: root +# -- +\sqrt[$1]{$2}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/section b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/section new file mode 100644 index 0000000..c9b7709 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/section @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: section +# key: sec +# uuid: sec +# -- +\section{${1:name}} +\label{sec:${2:label}} + +$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/sqrt b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/sqrt new file mode 100644 index 0000000..705d977 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/sqrt @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: sqrt +# key: sq +# -- +\sqrt{$1}$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/subf b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/subf new file mode 100644 index 0000000..58b1853 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/subf @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: subf +# key: sf +# uuid: sf +# -- +\subfigure[${1:caption}]{ + \label{fig:${2:label}} + \includegraphics[width=.${3:3}\textwidth]{${4:path}}} +$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/subfigure b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/subfigure new file mode 100644 index 0000000..dc2fe84 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/subfigure @@ -0,0 +1,14 @@ +# -*- mode: snippet -*- +# name: subfigure +# key: subfig +# uuid: subfig +# -- +\begin{figure}[ht] + \centering + \subfigure[$1] + {\label{fig:${2:label}} + \includegraphics[width=.${3:5}\textwidth]{${4:path}}} + + \caption{${5:caption}} +\label{fig:${6:label}} +\end{figure} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/subsec b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/subsec new file mode 100644 index 0000000..c716170 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/subsec @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: subsec +# key: sub +# uuid: sub +# -- +\subsection{${1:name}} +\label{subsec:${2:label}} + +$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/sum_^ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/sum_^ new file mode 100644 index 0000000..4071127 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/sum_^ @@ -0,0 +1,9 @@ +# key: sum +# name: sum_^ +# -- +\sum${1:$(when (> (length yas-text) 0) "_") +}${1:$(when (> (length yas-text) 1) "{") +}${1:i=0}${1:$(when (> (length yas-text) 1) "}") +}${2:$(when (> (length yas-text) 0) "^") +}${2:$(when (> (length yas-text) 1) "{") +}${2:n}${2:$(when (> (length yas-text) 1) "}")} $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/textbf b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/textbf new file mode 100644 index 0000000..8201e09 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/textbf @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: textbf +# key: b +# uuid: b +# condition: (not (save-restriction (widen) (texmathp))) +# -- +\textbf{$1}$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/theorem b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/theorem new file mode 100644 index 0000000..eff29da --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/theorem @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: theorem +# key: thm +# group: theorems +# -- +\begin{theorem} +$0 +\end{theorem}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/usepackage b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/usepackage new file mode 100644 index 0000000..67e3758 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/latex-mode/usepackage @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: usepackage +# key: pkg +# uuid: pkg +# -- +\usepackage{$0}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-interaction-mode/defun b/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-interaction-mode/defun new file mode 100644 index 0000000..4dd266a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-interaction-mode/defun @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: defun +# key: defun +# uuid: defun +# -- +(defun ${1:fun} (${2:args}) + $0 +)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-mode/class b/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-mode/class new file mode 100644 index 0000000..7f4547f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-mode/class @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: defclass +# key: defc +# uuid: defc +# -- +(defclass ${1:name} (${2:inherits}) + (${4:slots}) + (:documentation "${3:...}"))
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-mode/cond b/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-mode/cond new file mode 100644 index 0000000..fe254dc --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-mode/cond @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: cond +# -- +(cond ($1)$2)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-mode/defpackage b/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-mode/defpackage new file mode 100644 index 0000000..f1b7fc3 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-mode/defpackage @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: defpackage +# key: defp +# uuid: defp +# -- +(defpackage #:${1:name} + (:nicknames #:${2:nick}) + (:use #:cl #:closer-mop #:${3:package}) + (:shadow :${4.symbol}) + (:shadowing-import-from #:${5:package} #:${6:symbol}) + (:export :$0)) diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-mode/do b/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-mode/do new file mode 100644 index 0000000..e905a40 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-mode/do @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: do +# key: do +# uuid: do +# -- +(do ((${1:var1} ${2:init-form} ${3:step-form}) + (${4:var2} ${5:init-form} ${6:step-form})) + (${7:condition} ${8:return-value}) + (${9:body})) +$0 diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-mode/format b/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-mode/format new file mode 100644 index 0000000..0010752 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-mode/format @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: format +# -- +(format t "~& $0 ~%")
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-mode/slot b/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-mode/slot new file mode 100644 index 0000000..42f0c3b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-mode/slot @@ -0,0 +1,12 @@ +# -*- mode: snippet -*- +# name: slot +# -- +(${1:name} :initarg :${1:$(yas/substr yas-text "[^: ]*")} + :initform (error ":${1:$(yas/substr yas-text "[^: ]*")} must be specified") + ;; :accessor ${1:$(yas/substr yas-text "[^: ]*")} + :reader ${1:$(yas/substr yas-text "[^: ]*")}-changed + :writer set-${1:$(yas/substr yas-text "[^: ]*")} + :type + :allocation ${3::class :instance} + :documentation "${2:about-slot}") +$0 diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-mode/typecast b/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-mode/typecast new file mode 100644 index 0000000..1b61f47 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/lisp-mode/typecast @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: typecast +# name: cast +# -- +(coerce ${1:object} ${2:type})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-automake-mode/noinst_HEADERS b/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-automake-mode/noinst_HEADERS new file mode 100644 index 0000000..2877a45 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-automake-mode/noinst_HEADERS @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: noinst_HEADERS +# key: noinst +# uuid: noinst +# -- +noinst_HEADERS = $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-bsdmake-mode/PHONY b/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-bsdmake-mode/PHONY new file mode 100644 index 0000000..c64a5d9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-bsdmake-mode/PHONY @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: PHONY +# key: phony +# uuid: phony +# -- +.PHONY: $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-bsdmake-mode/echo b/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-bsdmake-mode/echo new file mode 100644 index 0000000..d1a288d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-bsdmake-mode/echo @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: echo +# key: echo +# uuid: echo +# -- +@echo ${1:"message to output"} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-bsdmake-mode/gen b/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-bsdmake-mode/gen new file mode 100644 index 0000000..28e2fe5 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-bsdmake-mode/gen @@ -0,0 +1,12 @@ +# -*- mode: snippet -*- +# name: gen +# key: gen +# uuid: gen +# possibly add some smart control over the list +# -- +all: ${1:targets} + +$0 + +clean: + ${2:clean actions} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-bsdmake-mode/if b/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-bsdmake-mode/if new file mode 100644 index 0000000..89617a8 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-bsdmake-mode/if @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: if +# key: if +# uuid: if +# -- +@if [ ${1:cond} ] + then $0 +fi diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-bsdmake-mode/var b/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-bsdmake-mode/var new file mode 100644 index 0000000..aeb17b6 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-bsdmake-mode/var @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: var +# key: $ +# uuid: $ +# -- +$(${1:VAR})$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-gmake-mode/patsubst b/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-gmake-mode/patsubst new file mode 100644 index 0000000..902b260 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-gmake-mode/patsubst @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: patsubst +# -- +$(patsubst ${1:from},${2:to},${3:src}) diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-gmake-mode/phony b/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-gmake-mode/phony new file mode 100644 index 0000000..d11d342 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-gmake-mode/phony @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: phony +# -- +.PHONY = $0 diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-gmake-mode/wildcard b/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-gmake-mode/wildcard new file mode 100644 index 0000000..efa944a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-gmake-mode/wildcard @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: wildcard +# -- +$(wildcard $0) diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-mode/all b/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-mode/all new file mode 100644 index 0000000..7d0b0e6 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/makefile-mode/all @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: all +# key: all +# uuid: all +# -- +all: + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/code b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/code new file mode 100644 index 0000000..453bb40 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/code @@ -0,0 +1,6 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: Code block +# -- +\`\`\`${1:lang} +$0 +\`\`\`
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/h1 b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/h1 new file mode 100644 index 0000000..f5c5194 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/h1 @@ -0,0 +1,6 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: Header 1 (#) +# key: h1 +# uuid: h1 +# -- +# ${1:Header 1}`(unless markdown-asymmetric-header " #")`
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/h2 b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/h2 new file mode 100644 index 0000000..f1edaf5 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/h2 @@ -0,0 +1,6 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: Header 2 (##) +# key: h2 +# uuid: h2 +# -- +## ${1:Header 2}`(unless markdown-asymmetric-header " ##")`
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/h3 b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/h3 new file mode 100644 index 0000000..0b36721 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/h3 @@ -0,0 +1,6 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: Header 3 +# key: h3 +# uuid: h3 +# -- +### ${1:Header 3}`(unless markdown-asymmetric-header " ###")`
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/h4 b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/h4 new file mode 100644 index 0000000..df69bfd --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/h4 @@ -0,0 +1,6 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: Header 4 +# key: h4 +# uuid: h4 +# -- +#### ${1:Header 4}`(unless markdown-asymmetric-header " ####")`
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/h5 b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/h5 new file mode 100644 index 0000000..8d5408d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/h5 @@ -0,0 +1,6 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: Header 5 +# key: h5 +# uuid: h5 +# -- +##### ${1:Header 5}`(unless markdown-asymmetric-header " #####")`
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/h6 b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/h6 new file mode 100644 index 0000000..59ba638 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/h6 @@ -0,0 +1,6 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: Header 6 +# key: h6 +# uuid: h6 +# -- +###### ${1:Header 6}`(unless markdown-asymmetric-header " ######")`
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/hr b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/hr new file mode 100644 index 0000000..a1a48f6 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/hr @@ -0,0 +1,7 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: hr +# key: --- +# uuid: --- +# binding: direct-keybinding +# -- +-------------------------------------------------------------------------------
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/img b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/img new file mode 100644 index 0000000..3f0fb0f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/img @@ -0,0 +1,4 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: Image +# -- +![${1:Alt Text}](${2:URL})$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/kbd b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/kbd new file mode 100644 index 0000000..4817324 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/kbd @@ -0,0 +1,4 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: <kbd>...</kbd> +# -- +<kbd>$0</kbd>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/link b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/link new file mode 100644 index 0000000..2c12223 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/link @@ -0,0 +1,4 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: Link +# -- +[${1:`(or % "text")`}](${2:http://$3})$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/ol b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/ol new file mode 100644 index 0000000..cf8e31a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/ol @@ -0,0 +1,5 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: Ordered List +# -- +${1:1}. ${2:Text} +${1:$(number-to-string (1+ (string-to-number %)))}. $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/rimg b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/rimg new file mode 100644 index 0000000..e14964d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/rimg @@ -0,0 +1,4 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: Referenced Image +# -- +![${1:Alt Text}][$2]$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/rlb b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/rlb new file mode 100644 index 0000000..44b5f5e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/rlb @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: Reference Label +# contributor: Peng Deng <dengpeng@gmail.com> +# -- +[${1:Reference}]: ${2:URL} $3 +$0 diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/rlink b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/rlink new file mode 100644 index 0000000..be20fa4 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/rlink @@ -0,0 +1,4 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: Reference Link +# -- +[${1:Link Text}][$2]$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/utf8 b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/utf8 new file mode 100644 index 0000000..f21e9a6 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/markdown-mode/utf8 @@ -0,0 +1,5 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: utf-8 encoding +# -- +<meta http-equiv='Content-Type' content='text/html; charset=utf-8' /> +$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/org-mode/abstract + toc b/Emacs/.config/emacs/.config/yasnippet/snippets/org-mode/abstract + toc deleted file mode 100644 index 2f13233..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/org-mode/abstract + toc +++ /dev/null @@ -1,10 +0,0 @@ -# key: <atoc -# name: abstract + toc -# -- -#+BEGIN_center -${1:blah blah} -#+END_center -#+LATEX: \clearpage -#+TOC: ${2:headlines} -#+LATEX: \clearpage -$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/__contains__ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/__contains__ new file mode 100644 index 0000000..c101840 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/__contains__ @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: __contains__ +# key: cont +# uuid: cont +# group: dunder methods +# -- +def __contains__(self, el): + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/__enter__ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/__enter__ new file mode 100644 index 0000000..1356004 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/__enter__ @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: __enter__ +# key: ent +# uuid: ent +# group: dunder methods +# -- +def __enter__(self): + $0 + + return self
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/__exit__ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/__exit__ new file mode 100644 index 0000000..7b006dc --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/__exit__ @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: __exit__ +# key: ex +# uuid: ex +# group: dunder methods +# -- +def __exit__(self, type, value, traceback): + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/__getitem__ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/__getitem__ new file mode 100644 index 0000000..8f911ec --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/__getitem__ @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: __getitem__ +# key: getit +# uuid: getit +# group: dunder methods +# -- +def __getitem__(self, ${1:key}): + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/__len__ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/__len__ new file mode 100644 index 0000000..0e3fadc --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/__len__ @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: __len__ +# key: len +# uuid: len +# group: dunder methods +# -- +def __len__(self): + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/__new__ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/__new__ new file mode 100644 index 0000000..3c31a33 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/__new__ @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: __new__ +# key: new +# uuid: new +# group: dunder methods +# -- +def __new__(mcs, name, bases, dict): + $0 + return type.__new__(mcs, name, bases, dict) diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/__setitem__ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/__setitem__ new file mode 100644 index 0000000..dcb86ac --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/__setitem__ @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: __setitem__ +# key: setit +# uuid: setit +# group: dunder methods +# -- +def __setitem__(self, ${1:key}, ${2:val}): + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/all b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/all new file mode 100644 index 0000000..8bea140 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/all @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: all +# -- +__all__ = [ + $0 +]
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/arg b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/arg new file mode 100644 index 0000000..afd9443 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/arg @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: arg +# key: arg +# uuid: arg +# group: argparser +# -- +parser.add_argument('-$1', '--$2', + $0) diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/arg_positional b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/arg_positional new file mode 100644 index 0000000..7e27e79 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/arg_positional @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: arg_positional +# key: argp +# uuid: argp +# group: argparser +# -- +parser.add_argument('${1:varname}', $0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assert b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assert new file mode 100644 index 0000000..f78542a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assert @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: assert +# group: testing +# -- +assert $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assertEqual b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assertEqual new file mode 100644 index 0000000..784461a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assertEqual @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: assertEqual +# key: ae +# uuid: ae +# group: testing +# -- +self.assertEqual($1, $2)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assertFalse b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assertFalse new file mode 100644 index 0000000..e99ae75 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assertFalse @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: assertFalse +# key: af +# uuid: af +# group: testing +# -- +self.assertFalse($0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assertIn b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assertIn new file mode 100644 index 0000000..1a40c0a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assertIn @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: assertIn +# key: ai +# uuid: ai +# group: testing +# -- +self.assertIn(${1:member}, ${2:container})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assertNotEqual b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assertNotEqual new file mode 100644 index 0000000..a5ef25f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assertNotEqual @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: assertNotEqual +# key: ane +# uuid: ane +# group: testing +# -- +self.assertNotEqual($1, $2)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assertRaises b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assertRaises new file mode 100644 index 0000000..3d5d2c4 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assertRaises @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: assertRaises +# group: testing +# -- +assertRaises(${1:Exception}, ${2:fun})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assertRaises.with b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assertRaises.with new file mode 100644 index 0000000..b59d4e9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assertRaises.with @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: assertRaises +# key: ar +# uuid: ar +# -- +with self.assertRaises(${1:Exception}): + $0 diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assertTrue b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assertTrue new file mode 100644 index 0000000..7c07d30 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/assertTrue @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: assertTrue +# key: at +# uuid: at +# group: testing +# -- +self.assertTrue($0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/celery_pdb b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/celery_pdb new file mode 100644 index 0000000..cb483a2 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/celery_pdb @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: celery pdb +# key: cdb +# uuid: cdb +# group: debug +# -- +from celery.contrib import rdb; rdb.set_trace()
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/class b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/class new file mode 100644 index 0000000..9e43aff --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/class @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: class +# key: cl +# uuid: cl +# group: object oriented +# -- +class ${1:Name}($2): + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/classmethod b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/classmethod new file mode 100644 index 0000000..74cd7d2 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/classmethod @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: classmethod +# key: defc +# uuid: defc +# group: object oriented +# -- +@classmethod +def ${1:method_name}(cls, $1): + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/dec b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/dec new file mode 100644 index 0000000..1ecae49 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/dec @@ -0,0 +1,15 @@ +# -*- mode: snippet -*- +# name: def decorator +# key: dec +# uuid: dec +# group: definitions +# -- +def ${1:decorator}(func): + $2 + def _$1(*args, **kwargs): + $3 + ret = func(*args, **kwargs) + $4 + return ret + + return _$1
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/def b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/def new file mode 100644 index 0000000..76256b0 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/def @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: def function +# key: def +# uuid: def +# group: definitions +# -- +def ${1:func_name}($2): + ${3:`(or % "pass")`}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/defm b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/defm new file mode 100644 index 0000000..7714eb5 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/defm @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: method +# key: defm +# uuid: defm +# group: object oriented +# -- +def ${1:method_name}(self${2:, $3}): + ${4:`(or % "pass")`}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/doc b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/doc new file mode 100644 index 0000000..60dda5e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/doc @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: doc +# key: d +# uuid: d +# -- +"""$0 +"""
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/doctest b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/doctest new file mode 100644 index 0000000..adb39a3 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/doctest @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: doctest +# key: doc +# uuid: doc +# group: testing +# -- +>>> ${1:function calls} +${2:desired output} +$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/eq b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/eq new file mode 100644 index 0000000..685506f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/eq @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: __eq__ +# key: eq +# uuid: eq +# group: dunder methods +# -- +def __eq__(self, other): + return self.$1 == other.$1
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/for b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/for new file mode 100644 index 0000000..edadb43 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/for @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: for ... in ... : ... +# key: for +# uuid: for +# group: control structure +# -- +for ${1:var} in ${2:collection}: + ${3:`(or % "pass")`}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/from b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/from new file mode 100644 index 0000000..52d27c9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/from @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: from +# key: from +# uuid: from +# group: general +# -- +from ${1:lib} import ${2:funs}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/function_docstring b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/function_docstring new file mode 100644 index 0000000..b7f77dc --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/function_docstring @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: function_docstring +# key: fd +# uuid: fd +# group: definitions +# -- +def ${1:name}($2): + \"\"\"$3 + ${2:$(python-args-to-docstring)} + \"\"\" + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/if b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/if new file mode 100644 index 0000000..e055028 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/if @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: if +# key: if +# uuid: if +# group: control structure +# -- +if ${1:cond}: + ${2:`(or % "pass")`}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/ife b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/ife new file mode 100644 index 0000000..017e88a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/ife @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: ife +# key: ife +# uuid: ife +# group: control structure +# -- +if $1: + ${2:`(or % "pass")`} +else: + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/ifmain b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/ifmain new file mode 100644 index 0000000..29a6650 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/ifmain @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: ifmain +# -- +if __name__ == '__main__': + ${1:`(or % "pass")`}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/import b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/import new file mode 100644 index 0000000..2989140 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/import @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: import +# key: imp +# uuid: imp +# group: general +# -- +import ${1:lib}${2: as ${3:alias}} +$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/init b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/init new file mode 100644 index 0000000..4d11fe6 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/init @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: init +# key: init +# uuid: init +# group: definitions +# -- +def __init__(self${1:, args}): + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/init_docstring b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/init_docstring new file mode 100644 index 0000000..e3a8509 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/init_docstring @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: init_docstring +# key: initd +# uuid: initd +# group: definitions +# -- +def __init__(self$1): + \"\"\"$2 + ${1:$(python-args-to-docstring)} + \"\"\" + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/interact b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/interact new file mode 100644 index 0000000..85b0215 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/interact @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: interact +# key: int +# uuid: int +# -- +import code; code.interact(local=locals())
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/ipdbdebug b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/ipdbdebug new file mode 100644 index 0000000..6dabcfe --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/ipdbdebug @@ -0,0 +1,7 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: ipdb trace +# key: itr +# uuid: itr +# group: debug +# -- +import ipdb; ipdb.set_trace()
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/iter b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/iter new file mode 100644 index 0000000..83792d7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/iter @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: __iter__ +# key: iter +# uuid: iter +# group: dunder methods +# -- +def __iter__(self): + return ${1:iter($2)}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/lambda b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/lambda new file mode 100644 index 0000000..302d71c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/lambda @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: lambda +# key: lam +# uuid: lam +# -- +lambda ${1:x}: $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/list b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/list new file mode 100644 index 0000000..6934c76 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/list @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: list +# key: li +# uuid: li +# group: definitions +# -- +[${1:x} for $1 in ${2:list}]
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/logger_name b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/logger_name new file mode 100644 index 0000000..ae7d86a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/logger_name @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: logger_name +# key: ln +# uuid: ln +# -- +logger = logging.getLogger(__name__)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/logging b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/logging new file mode 100644 index 0000000..df0a9b4 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/logging @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: logging +# key: log +# uuid: log +# -- +logger = logging.getLogger("${1:name}") +logger.setLevel(logging.${2:level}) diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/main b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/main new file mode 100644 index 0000000..d835607 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/main @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: main +# key: main +# uuid: main +# -- +def main(): + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/metaclass b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/metaclass new file mode 100644 index 0000000..9fce8cc --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/metaclass @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: metaclass +# key: mt +# uuid: mt +# group: object oriented +# -- +__metaclass__ = type
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/method b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/method new file mode 100644 index 0000000..9eb1afa --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/method @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: method +# group: object oriented +# -- +def ${1:method_name}(self${2:, $3}): + $0 diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/method_docstring b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/method_docstring new file mode 100644 index 0000000..861e276 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/method_docstring @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: method_docstring +# key: defd +# uuid: defd +# group: object oriented +# -- +def ${1:name}(self$2): + \"\"\"$3 + ${2:$(python-args-to-docstring)} + \"\"\" + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/not_impl b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/not_impl new file mode 100644 index 0000000..00c35d1 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/not_impl @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: not_impl +# key: not_impl +# uuid: not_impl +# -- +raise NotImplementedError
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/np b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/np new file mode 100644 index 0000000..21b05a7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/np @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: np +# key: np +# uuid: np +# group: general +# -- +import numpy as np +$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/parse_args b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/parse_args new file mode 100644 index 0000000..dd3636a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/parse_args @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: parse_args +# key: pargs +# uuid: pargs +# group: argparser +# -- +def parse_arguments(): + parser = argparse.ArgumentParser(description='$1') + $0 + return parser.parse_args()
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/parser b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/parser new file mode 100644 index 0000000..4b85de0 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/parser @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: parser +# key: pars +# uuid: pars +# group: argparser +# -- +parser = argparse.ArgumentParser(description='$1') +$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/pass b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/pass new file mode 100644 index 0000000..c201916 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/pass @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: pass +# key: ps +# uuid: ps +# -- +pass
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/print b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/print new file mode 100644 index 0000000..867c8fc --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/print @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: print +# key: p +# uuid: p +# -- +print($0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/prop b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/prop new file mode 100644 index 0000000..6ca454a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/prop @@ -0,0 +1,18 @@ +# -*- mode: snippet -*- +# contributor: Mads D. Kristensen <madsdk@gmail.com> +# name: prop +# -- +def ${1:foo}(): + doc = """${2:Doc string}""" + def fget(self): + return self._$1 + + def fset(self, value): + self._$1 = value + + def fdel(self): + del self._$1 + return locals() +$1 = property(**$1()) + +$0 diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/reg b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/reg new file mode 100644 index 0000000..b4c5b60 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/reg @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: reg +# key: reg +# uuid: reg +# group: general +# -- +${1:regexp} = re.compile(r"${2:expr}") +$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/repr b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/repr new file mode 100644 index 0000000..3aa66b9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/repr @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: __repr__ +# key: repr +# uuid: repr +# group: dunder methods +# -- +def __repr__(self): + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/return b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/return new file mode 100644 index 0000000..70eda2f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/return @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: return +# key: r +# uuid: r +# -- +return $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/script b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/script new file mode 100644 index 0000000..c08d0bb --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/script @@ -0,0 +1,12 @@ +# -*- mode: snippet -*- +# name: script +# key: script +# uuid: script +# -- +#!/usr/bin/env python + +def main(): + pass + +if __name__ == '__main__': + main() diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/self b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/self new file mode 100644 index 0000000..abbad8c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/self @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: self +# key: . +# uuid: . +# group: object oriented +# -- +self.$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/self_without_dot b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/self_without_dot new file mode 100644 index 0000000..fd68278 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/self_without_dot @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: self_without_dot +# key: s +# uuid: s +# group: object oriented +# -- +self
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/selfassign b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/selfassign new file mode 100644 index 0000000..68e2630 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/selfassign @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: selfassign +# key: sn +# uuid: sn +# group: object oriented +# -- +self.$1 = $1
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/setdef b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/setdef new file mode 100644 index 0000000..6f97f5d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/setdef @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: setdef +# key: setdef +# uuid: setdef +# -- +${1:var}.setdefault(${2:key}, []).append(${3:value})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/setup b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/setup new file mode 100644 index 0000000..524c4ca --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/setup @@ -0,0 +1,15 @@ +# -*- mode: snippet -*- +# name: setup +# key: setup +# uuid: setup +# group: distribute +# -- +from setuptools import setup + +package = '${1:name}' +version = '${2:0.1}' + +setup(name=package, + version=version, + description="${3:description}", + url='${4:url}'$0) diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/shebang b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/shebang new file mode 100644 index 0000000..094b182 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/shebang @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: shebang line +# key: #! +# uuid: #! +# condition: (eq 1 (line-number-at-pos)) +# -- +#!/usr/bin/env python +$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/size b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/size new file mode 100644 index 0000000..abe249f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/size @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: size +# key: size +# uuid: size +# -- +sys.getsizeof($0)
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/static b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/static new file mode 100644 index 0000000..3222c2f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/static @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: static +# key: defs +# uuid: defs +# -- +@staticmethod +def ${1:method_name}($1): + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/str b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/str new file mode 100644 index 0000000..21f50cd --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/str @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: __str__ +# key: str +# uuid: str +# group: dunder methods +# -- +def __str__(self): + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/super b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/super new file mode 100644 index 0000000..83d98e8 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/super @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: super +# key: super +# uuid: super +# group: object oriented +# -- +super(${1:Class}, self).${2:function}(${3:args})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/test_class b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/test_class new file mode 100644 index 0000000..18b5415 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/test_class @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: test_class +# key: tcs +# uuid: tcs +# group : testing +# -- +class Test${1:toTest}(${2:unittest.TestCase}): + $0 diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/test_file b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/test_file new file mode 100644 index 0000000..42911c8 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/test_file @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# name: test_file +# key: tf +# uuid: tf +# group : testing +# -- +import unittest +${1:from ${2:test_file} import *} + +$0 + +if __name__ == '__main__': + unittest.main()
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/trace b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/trace new file mode 100644 index 0000000..f4e356f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/trace @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: trace +# key: tr +# uuid: tr +# group: debug +# -- +import pdb; pdb.set_trace()
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/try b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/try new file mode 100644 index 0000000..bc77831 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/try @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: try +# key: try +# uuid: try +# -- +try: + ${1:`(or % "pass")`} +except ${2:Exception}: + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/tryelse b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/tryelse new file mode 100644 index 0000000..505dac7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/tryelse @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: tryelse +# key: try +# uuid: try +# -- +try: + $1 +except $2: + $3 +else: + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/unicode b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/unicode new file mode 100644 index 0000000..9546668 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/unicode @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: __unicode__ +# key: un +# uuid: un +# group: dunder methods +# -- +def __unicode__(self): + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/utf8 b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/utf8 new file mode 100644 index 0000000..7ab1671 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/utf8 @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: utf-8 encoding +# key: utf8 +# uuid: utf8 +# -- +# -*- coding: utf-8 -*- diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/while b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/while new file mode 100644 index 0000000..6eb8d34 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/while @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: while +# key: wh +# uuid: wh +# group: control structure +# -- +while ${1:True}: + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/with b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/with new file mode 100644 index 0000000..80aeef2 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/with @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: with +# key: with +# uuid: with +# group : control structure +# -- +with ${1:expr}${2: as ${3:alias}}: + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/with_statement b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/with_statement new file mode 100644 index 0000000..218e7b7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/with_statement @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: with_statement +# key: fw +# uuid: fw +# group: future +# -- +from __future__ import with_statement
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/File-open b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/File-open new file mode 100644 index 0000000..cf49c23 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/File-open @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: File::open(...) +# key: fo +# uuid: fo +# -- +File::open(${1:})`(if (eolp) ";" "")`
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/None b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/None new file mode 100644 index 0000000..63c3f82 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/None @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: None +# key: no +# uuid: no +# -- +None
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Result b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Result new file mode 100644 index 0000000..4e3df10 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Result @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: Result<T, E> +# key: res +# uuid: res +# -- +Result<${1:T}, ${2:()}>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Some b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Some new file mode 100644 index 0000000..d6de2c3 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Some @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: Some(...) +# key: so +# uuid: so +# -- +Some(${1:})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/String_from b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/String_from new file mode 100644 index 0000000..d01f2a6 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/String_from @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: String::from(...) +# key: sf +# uuid: sf +# -- +String::from("$0")
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Vec-with_capacity b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Vec-with_capacity new file mode 100644 index 0000000..2eb50ec --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Vec-with_capacity @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: Vec::with_capacity(...) +# key: vwc +# uuid: vwc +# -- +Vec::with_capacity(${1:n})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/allow b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/allow new file mode 100644 index 0000000..c30c1e8 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/allow @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: #[allow(lint)] +# key: allow +# -- +#[allow(${1:lint})]
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/allow! b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/allow! new file mode 100644 index 0000000..cfb0c7d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/allow! @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: #![allow(lint)] +# key: allow! +# -- +#![allow(${1:lint})]
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/arrow b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/arrow new file mode 100644 index 0000000..404cf5c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/arrow @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: x => y +# key: => +# uuid: => +# -- +${1:_} => ${0:...}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/asref b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/asref new file mode 100644 index 0000000..063f82a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/asref @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: impl AsRef<Type> for Type +# key: asref +# uuid: asref +# -- +impl std::convert::AsRef<${1:Type}> for ${2:Type} { + fn as_ref(&self) -> &$2 { + $0 + } +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert new file mode 100644 index 0000000..bbdc741 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: assert!(...) +# key: ass +# uuid: ass +# -- +assert!($0);
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert_eq b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert_eq new file mode 100644 index 0000000..3de462f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert_eq @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: assert_eq!(..., ...) +# key: asse +# uuid: asse +# -- +assert_eq!(${1:}, $2);
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert_ne b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert_ne new file mode 100644 index 0000000..2c83c1a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert_ne @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: assert_ne!(..., ...) +# key: assn +# uuid: assn +# -- +assert_ne!(${1:}, $2);
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assignment b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assignment new file mode 100644 index 0000000..c410d3e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assignment @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: assignment +# key: = +# uuid: = +# -- +${1:x} = ${2:value}`(if (eolp) ";" "")`$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/case b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/case new file mode 100644 index 0000000..9ea6609 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/case @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: pattern => expression, +# key: case +# -- +${1:pattern} => ${2:expression},
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/cfg b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/cfg new file mode 100644 index 0000000..ce00c0a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/cfg @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: #[cfg(...)] +# -- +#[cfg($0)]
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/cfg= b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/cfg= new file mode 100644 index 0000000..588596f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/cfg= @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: #[cfg(option = "value")] +# -- +#[cfg(${1:option} = "${2:value}")]
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/const b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/const new file mode 100644 index 0000000..e352aad --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/const @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: const VAR = ... +# key: const +# uuid: const +# -- +const ${1:VARNAME}${2: ${3:i32}} = ${4:value};
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/debug_assert b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/debug_assert new file mode 100644 index 0000000..21ddad4 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/debug_assert @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: debug_assert!(...) +# key: dass +# uuid: dass +# -- +debug_assert!($0);
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/deref b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/deref new file mode 100644 index 0000000..7cf9c02 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/deref @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: impl Deref for Type +# key: deref +# uuid: deref +# -- +impl std::ops::Deref for ${1:Type} { + type Target = ${2:Type}; + fn deref(&self) -> &Self::Target { + &self.$0 + } +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/deref_mut b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/deref_mut new file mode 100644 index 0000000..7ea39a0 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/deref_mut @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: impl DerefMut for Type +# key: deref_mut +# uuid: deref_mut +# -- +impl std::ops::DerefMut for ${1:Type} { + fn deref_mut(&mut self) -> &mut Self::Target { + &mut self.$0 + } +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/derive b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/derive new file mode 100644 index 0000000..cf30bcc --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/derive @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: #[derive(...)] +# key: der +# uuid: der +# -- +#[derive($1)]
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/disperror b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/disperror new file mode 100644 index 0000000..fd91031 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/disperror @@ -0,0 +1,16 @@ +# -*- mode: snippet -*- +# name: Display and Error Traits +# key: disperror +# uuid: disperror +# -- +impl Display for $1 { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + write!(f, "{}", $0) + } +} + +impl std::error::Error for ${1:Type} { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + None + } +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/display b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/display new file mode 100644 index 0000000..1764f67 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/display @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: impl Display for Type { fn fmt (...) } +# key: display +# -- +impl Display for ${1:Type} { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + write!(f, "$0") + } +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/else b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/else new file mode 100644 index 0000000..4f835c1 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/else @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: else { ... } +# key: else +# uuid: else +# -- +else { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/elseif b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/elseif new file mode 100644 index 0000000..39650b0 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/elseif @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: else if ... { ... } +# key: elif +# uuid: elif +# -- +else if ${1:true} { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/enum b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/enum new file mode 100644 index 0000000..25527be --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/enum @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: enum +# key: enum +# uuid: enum +# -- +enum ${1:EnumName} { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/env-args b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/env-args new file mode 100644 index 0000000..2e07306 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/env-args @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: env::args() +# key: argv +# uuid: argv +# -- +env::args()
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/env-var b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/env-var new file mode 100644 index 0000000..1c2fd6c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/env-var @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: env::var(...) +# key: envv +# uuid: envv +# -- +env::var("$1")
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/eprintln b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/eprintln new file mode 100644 index 0000000..d4c7d4b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/eprintln @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: eprintln!(...) +# key: ep +# uuid: ep +# -- +eprintln!("$1", ${2:});$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/error b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/error new file mode 100644 index 0000000..fc77089 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/error @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: impl Error for Type { fn source(...) } +# key: error +# uuid: error +# -- +impl std::error::Error for ${1:Type} { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + $0 + None + } +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/extern b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/extern new file mode 100644 index 0000000..a0dcd68 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/extern @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: extern "C" { ... } +# key: extc +# uuid: extc +# -- +extern "C" { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/extern-crate b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/extern-crate new file mode 100644 index 0000000..d79399e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/extern-crate @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: extern crate ... +# key: ec +# uuid: ec +# -- +extern crate ${1:name};
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/fn b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/fn new file mode 100644 index 0000000..a68dad0 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/fn @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: function +# key: fn +# uuid: fn +# -- +fn ${1:function_name}($2) ${3:-> ${4:i32} }{ + $0 +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/for b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/for new file mode 100644 index 0000000..7a7df24 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/for @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: for in +# key: for +# uuid: for +# -- +for ${1:x} in ${2:items} { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/format b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/format new file mode 100644 index 0000000..f187c86 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/format @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: format!(..., ...) +# key: f +# uuid: f +# -- +format!("$1", ${2:})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/from b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/from new file mode 100644 index 0000000..e04e7f0 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/from @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: impl From<From> for Type { fn from(...) } +# key: from +# -- +impl From<${1:From}> for ${2:Type} { + fn from(source: $1) -> Self { + $0 + Self { } + } +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/fromstr b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/fromstr new file mode 100644 index 0000000..db95288 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/fromstr @@ -0,0 +1,12 @@ +# -*- mode: snippet -*- +# name: impl FromStr for Type { fn from_str(...) } +# key: fromstr +# -- +impl FromStr for ${1:Type} { + type Err = ${2:Error}; + + fn from_str(s: &str) -> Result<Self, Self::Err> { + + Ok(Self{}) + } +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/if b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/if new file mode 100644 index 0000000..1981003 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/if @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: if ... { ... } +# key: if +# uuid: if +# -- +if ${1:x} { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/if-let b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/if-let new file mode 100644 index 0000000..0e2571c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/if-let @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: if let ... +# key: ifl +# uuid: ifl +# -- +if let ${1:Some(${2:x})} = ${3:var} { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/ignore b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/ignore new file mode 100644 index 0000000..b2e9013 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/ignore @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: #[ignore] +# key: ign +# uuid: ign +# -- +#[ignore]
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/impl b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/impl new file mode 100644 index 0000000..3f15ec3 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/impl @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: impl +# -- +impl ${1:name}${2: for ${3:Type}} { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/inline-if-else b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/inline-if-else new file mode 100644 index 0000000..3672fab --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/inline-if-else @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: inline if-else +# key: ife +# uuid: ife +# -- +if ${1:x} {${2:}}${3: else {$4}}$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/iterator b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/iterator new file mode 100644 index 0000000..4f026a9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/iterator @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: impl Iterator for Type +# key: iterator +# uuid: iterator +# -- +impl Iterator for ${1:Type} { + type Item = ${2:Type}; + fn next(&mut self) -> Option<Self::Item> { + $0 + } +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/lambda b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/lambda new file mode 100644 index 0000000..eced267 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/lambda @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: anonymous function +# key: fn +# uuid: fn +# -- +|${1:x}|${2: -> i32} `(if (> (doom-snippets-count-lines %) 1) "{ " "")``(doom-snippets-format "%n%s%n")`$0`(if (> (doom-snippets-count-lines %) 1) " }" "")`
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/let b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/let new file mode 100644 index 0000000..a9be8d7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/let @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: let +# key: let +# uuid: let +# -- +let ${1:var} = $0`(if (eolp) ";" "")`
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/letm b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/letm new file mode 100644 index 0000000..8cd6c1e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/letm @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: let mut +# key: letm +# uuid: letm +# -- +let mut ${1:var} = $0`(if (eolp) ";" "")`
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/lifetime-static b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/lifetime-static new file mode 100644 index 0000000..7c7d140 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/lifetime-static @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: 'static +# key: 's +# uuid: 's +# -- +'static
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/macro b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/macro new file mode 100644 index 0000000..9ec9d72 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/macro @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: macro_rules! name { (..) => (..); } +# key: macro +# uuid: macro +# -- +macro_rules! ${1:name} { + ($2) => ($3); +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/main b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/main new file mode 100644 index 0000000..d6092bf --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/main @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: main +# key: main +# uuid: main +# -- +fn main() { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/match b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/match new file mode 100644 index 0000000..aa4d1d2 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/match @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: match +# uuid: match +# key: match +# -- +match ${1:x} { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/match-ok b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/match-ok new file mode 100644 index 0000000..c9762dd --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/match-ok @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: match n { Ok(x), Err(y) } +# key: match? +# uuid: match? +# -- +match ${1:x} { + Ok(${2:var}) => $3, + Err(${4:error}) => $5 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/mod b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/mod new file mode 100644 index 0000000..bc8bd61 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/mod @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: mod +# key: mod +# uuid: mod +# -- +mod ${1:name} { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/new b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/new new file mode 100644 index 0000000..b7d0def --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/new @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: Type::new(...) +# key: new +# uuid: new +# -- +${1:Vec}::new(${2:})`(if (eolp) ";" "")`
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/panic b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/panic new file mode 100644 index 0000000..74f5384 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/panic @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: panic!(...) +# key: pa +# uuid: pa +# -- +panic!("$1", ${2:});$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/partial b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/partial new file mode 100644 index 0000000..76c29fe --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/partial @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: impl PartialEq for Type +# key: partial +# uuid: partial +# -- +impl PartialEq for ${1:Type} { + fn eq(&self, other: &Self) -> bool { + $0 + } +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/println b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/println new file mode 100644 index 0000000..df122f2 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/println @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: println!(...) +# key: p +# uuid: p +# -- +println!("$1", ${2:});$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/pub_fn b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/pub_fn new file mode 100644 index 0000000..617e3c3 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/pub_fn @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: public function +# key: pfn +# uuid: pfn +# -- +pub fn ${1:function_name}($2) ${3:-> ${4:i32} }{ + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/pub_mod b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/pub_mod new file mode 100644 index 0000000..9227242 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/pub_mod @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: pub mod +# key: pmod +# uuid: pmod +# -- +pub mod ${1:name} { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/ret b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/ret new file mode 100644 index 0000000..5804823 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/ret @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: return +# key: ret +# uuid: ret +# -- +return ${1:};$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/static b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/static new file mode 100644 index 0000000..8e66349 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/static @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: static VAR = ... +# key: static +# uuid: static +# -- +static ${1:VARNAME}${2:: ${3:i32}} = ${4:value};
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/struct b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/struct new file mode 100644 index 0000000..bce4ff2 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/struct @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: struct +# uuid: struct +# key: struct +# -- +struct ${1:Name} { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/struct_alias b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/struct_alias new file mode 100644 index 0000000..bb0c2d7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/struct_alias @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: struct +# uuid: struct_alias +# key: st +# type: command +# -- +(doom-snippets-expand :uuid "struct")
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/test b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/test new file mode 100644 index 0000000..836b057 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/test @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: test function +# key: test +# uuid: test +# -- +#[test] +fn ${1:test_name}() { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/testmod b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/testmod new file mode 100644 index 0000000..f0be987 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/testmod @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# name: test module +# key: testmod +# -- +#[cfg(test)] +mod ${1:tests} { + use super::*; + + #[test] + fn ${2:test_name}() { + $0 + } +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/trait b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/trait new file mode 100644 index 0000000..255e4a6 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/trait @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: trait ... { ... } +# uuid: trait +# key: trait +# -- +trait ${1:Name} { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/type b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/type new file mode 100644 index 0000000..1b88ffb --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/type @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: type Name = ...; +# key: type +# uuid: type +# -- +type ${1:TypeName} = ${2:i32};
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/union b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/union new file mode 100644 index 0000000..bfd93aa --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/union @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: union Type { ... } +# key: union +# -- +union ${1:Type} { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use new file mode 100644 index 0000000..6613f91 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: use ... +# key: use +# uuid: use +# -- +use ${1:std::${2:io}};$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use-File b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use-File new file mode 100644 index 0000000..a8f5700 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use-File @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: use std::fs::File +# key: ufile +# uuid: ufile +# -- +use std::fs::File;
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use-HashMap b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use-HashMap new file mode 100644 index 0000000..339b4f6 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use-HashMap @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: use std::collections::HashMap +# key: uhashmap +# uuid: uhashmap +# -- +use std::collections::HashMap;
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/vec b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/vec new file mode 100644 index 0000000..ea5fcc5 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/vec @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: vec![...] +# key: v +# uuid: v +# -- +vec![${1:}]
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/warn b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/warn new file mode 100644 index 0000000..acf5c5c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/warn @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: #[warn(lint)] +# key: warn +# -- +#[warn(${1:lint})]
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/warn! b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/warn! new file mode 100644 index 0000000..2f4885d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/warn! @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: #![warn(lint)] +# key: warn! +# -- +#![warn(${1:lint})]
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/while-let b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/while-let new file mode 100644 index 0000000..4e36327 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/while-let @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: while let PATTERN = EXPR { ... } +# key: whilel +# uuid: whilel +# -- +while let ${1:pattern} = ${2:expression} { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/@if b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/@if new file mode 100644 index 0000000..be5e360 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/@if @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: @if +# key: if +# uuid: if +# -- +@if ${1:condition} { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/@mixin b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/@mixin new file mode 100644 index 0000000..58dc216 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/@mixin @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: @mixin +# key: mix +# uuid: mix +# -- +@mixin ${1:mixin-name}($2) { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/@while b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/@while new file mode 100644 index 0000000..b26a377 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/@while @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: @while +# key: while +# uuid: while +# -- +@while ${1:condition} { + $0 +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/abs b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/abs new file mode 100644 index 0000000..7b34ae3 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/abs @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: abs($number) +# group: Number functions +# -- +abs(${1:$number})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/adjust-color b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/adjust-color new file mode 100644 index 0000000..5b55f18 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/adjust-color @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: adjust-color($color, [$r], [$g], [$b], [$hue], [$sat], [$light], [$alpha]) +# group: Other color functions +# -- +adjust-color(${1:$color}, ${2:[$r]}, ${3:[$g]}, ${4:[$b]}, ${5:[$hue]}, ${6:[$sat]}, ${7:[$light]}, ${8:[$alpha]})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/adjust-hue b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/adjust-hue new file mode 100644 index 0000000..ea12152 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/adjust-hue @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: adjust-hue($color, $degree) +# group: HSL functions +# -- +adjust-hue(${1:$color}, ${2:$degree})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/alpha b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/alpha new file mode 100644 index 0000000..48d6349 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/alpha @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: alpha($color) +# group: Opacity functions +# -- +alpha(${1:$color})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/append b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/append new file mode 100644 index 0000000..64d8256 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/append @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: append($list, $value, [$separator]) +# group: List functions +# -- +append(${1:$list}, ${2:$value}, ${3:[$sep]})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/blue b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/blue new file mode 100644 index 0000000..424b39b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/blue @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: blue($color) +# group: RGB functions +# -- +blue(${1:color})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/call b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/call new file mode 100644 index 0000000..1acaea6 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/call @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: call($name, ...) +# group: Introspection functions +# -- +call(${1:$name}, ${2:$args...})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/ceil b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/ceil new file mode 100644 index 0000000..c3bbab3 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/ceil @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: ceil($number) +# group: Number functions +# -- +ceil(${1:$number})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/change-color b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/change-color new file mode 100644 index 0000000..4ee4e09 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/change-color @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: change-color($color, [$r], [$g], [$b], [$hue], [$sat], [$light], [$alpha]) +# group: Other color functions +# -- +change-color(${1:$color}, ${2:[$r]}, ${3:[$g]}, ${4:[$b]}, ${5:[$hue]}, ${6:[$sat]}, ${7:[$light]}, ${8:[$alpha]})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/comparable b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/comparable new file mode 100644 index 0000000..8be68f3 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/comparable @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: comparable($number1, $number2) +# group: Introspection functions +# -- +comparable(${1:$number1}, ${2:$number2})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/complement b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/complement new file mode 100644 index 0000000..11f1892 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/complement @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: complement($color) +# group: HSL functions +# -- +complement(${1:$color})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/darken b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/darken new file mode 100644 index 0000000..b298470 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/darken @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: darken($color, $amount) +# group: HSL functions +# -- +darken(${1:$color}, ${2:$amount})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/desaturate b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/desaturate new file mode 100644 index 0000000..ca7bda5 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/desaturate @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: desaturate($color, $amount) +# group: HSL functions +# -- +desaturate(${1:$color}, ${2:$amount})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/each b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/each new file mode 100644 index 0000000..b54bd9f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/each @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: @each +# -- +@each \$${1:var} in ${2:list, of, things} { + $0 +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/else b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/else new file mode 100644 index 0000000..f823adb --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/else @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: @else +# -- +@else { + $0 +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/elseif b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/elseif new file mode 100644 index 0000000..6c9acac --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/elseif @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: @elseif +# -- +@else if ${1:condition} { + $0 +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/fade-in b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/fade-in new file mode 100644 index 0000000..0c7dc41 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/fade-in @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: fade-in($color, $amount) +# group: Opacity functions +# -- +fade-in(${1:$color}, ${2:$amount})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/fade-out b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/fade-out new file mode 100644 index 0000000..f9a9e8f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/fade-out @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: fade-out($color, $amount) +# group: Opacity functions +# -- +fade-out(${1:$color}, ${2:$amount})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/feature-exists b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/feature-exists new file mode 100644 index 0000000..bc7f752 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/feature-exists @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: feature-exists($feature) +# group: Introspection functions +# -- +feature-exists(${1:$feature})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/floor b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/floor new file mode 100644 index 0000000..22acf32 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/floor @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: floor($number) +# group: Number functions +# -- +floor(${1:$number})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/for b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/for new file mode 100644 index 0000000..63fd434 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/for @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: @for loop +# -- +@for \$i from ${1:1} through ${2:10} { + $0 +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/function-exists b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/function-exists new file mode 100644 index 0000000..7916323 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/function-exists @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: function-exists($name) +# group: Introspection functions +# -- +function-exists(${1:$name})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/global-variable-exists b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/global-variable-exists new file mode 100644 index 0000000..b9f6ccc --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/global-variable-exists @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: global-variable-exists($name) +# group: Introspection functions +# -- +global-variable-exists(${1:$name})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/grayscale b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/grayscale new file mode 100644 index 0000000..5ca9e11 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/grayscale @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: grayscale($color) +# group: HSL functions +# -- +grayscale(${1:$color})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/green b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/green new file mode 100644 index 0000000..0ed926e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/green @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: green($color) +# group: RGB functions +# -- +green(${1:color})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/hsl b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/hsl new file mode 100644 index 0000000..6f844fa --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/hsl @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: hsl($hue, $saturation, $lightness) +# group: HSL functions +# -- +hsl(${1:$hue}, ${2:$saturation}, ${3:$lightness})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/hsla b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/hsla new file mode 100644 index 0000000..b7b6cfa --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/hsla @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: hsl($hue, $saturation, $lightness, $alpha) +# group: HSL functions +# -- +hsla(${1:$hue}, ${2:$saturation}, ${3:$lightness}, ${4:alpha})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/hue b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/hue new file mode 100644 index 0000000..32502e3 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/hue @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: hue($color) +# group: HSL functions +# -- +hue(${1:$color})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/ie-hex-str b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/ie-hex-str new file mode 100644 index 0000000..51ba7a8 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/ie-hex-str @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: ie-hex-str($color) +# group: Other color functions +# -- +ie-hex-str(${1:$color})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/index b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/index new file mode 100644 index 0000000..3eb78d8 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/index @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: index($list, $value) +# group: List functions +# -- +index(${1:$list}, ${2:$value})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/inspect b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/inspect new file mode 100644 index 0000000..aa4bc42 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/inspect @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: inspect($value) +# group: Introspection functions +# -- +inspect(${1:$value})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/invert b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/invert new file mode 100644 index 0000000..e71b78e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/invert @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: invert($color) +# group: HSL functions +# -- +invert(${1:$color})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/join b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/join new file mode 100644 index 0000000..698e6fd --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/join @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: join($list1, $list2, [$separator]) +# group: List functions +# -- +join(${1:$list1}, ${2:$list2}, ${3:[$sep]})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/keywords b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/keywords new file mode 100644 index 0000000..cfdd889 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/keywords @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: keywords($args) +# group: Map functions +# -- +keywords(${1:$args})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/length b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/length new file mode 100644 index 0000000..2910f0e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/length @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: length($list) +# group: List functions +# -- +length(${1:$list})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/lighten b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/lighten new file mode 100644 index 0000000..69385ba --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/lighten @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: lighten($color, $amount) +# group: HSL functions +# -- +lighten(${1:$color}, ${2:$amount})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/lightness b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/lightness new file mode 100644 index 0000000..4ebd4a1 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/lightness @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: lightness($color) +# group: HSL functions +# -- +lightness(${1:$color})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/list-separator b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/list-separator new file mode 100644 index 0000000..b8ef5c9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/list-separator @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: list-separator($list) +# group: List functions +# -- +list-separator(${1:$list})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/map-get b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/map-get new file mode 100644 index 0000000..77d0b96 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/map-get @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: map-get($map, $key) +# group: Map functions +# -- +map-get(${1:$map}, ${2:$key})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/map-has-key b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/map-has-key new file mode 100644 index 0000000..4ff973e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/map-has-key @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: map-has-key($map, $key) +# group: Map functions +# -- +map-has-key(${1:$map}, ${2:$key})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/map-keys b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/map-keys new file mode 100644 index 0000000..2b66fd9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/map-keys @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: map-keys($map) +# group: Map functions +# -- +map-keys(${1:$map})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/map-merge b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/map-merge new file mode 100644 index 0000000..8842417 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/map-merge @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: map-merge($map1, $map2) +# group: Map functions +# -- +map-merge(${1:$map1}, ${2:$map2})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/map-remove b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/map-remove new file mode 100644 index 0000000..95e9f30 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/map-remove @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: map-remove($map, $key, ...) +# group: Map functions +# -- +map-remove(${1:$map}, ${2:$key})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/map-values b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/map-values new file mode 100644 index 0000000..7875e70 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/map-values @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: map-values($map) +# group: Map functions +# -- +map-values(${1:$map})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/max b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/max new file mode 100644 index 0000000..67d013f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/max @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: max($n1, $n2, ...) +# group: Number functions +# -- +max(${1:$n1}, ${2:$n2})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/min b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/min new file mode 100644 index 0000000..beca119 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/min @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: min($n1, $n2, ...) +# group: Number functions +# -- +min(${1:$n1}, ${2:$n2})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/mix b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/mix new file mode 100644 index 0000000..36dab32 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/mix @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: mix($color1, $color2, [$weight]) +# group: RGB functions +# -- +mix(${1:$color1}, ${2:$color2}${3:, ${4:$weight}})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/mixin-exists b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/mixin-exists new file mode 100644 index 0000000..12e70a6 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/mixin-exists @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: mixin-exists($name) +# group: Introspection functions +# -- +mixin-exists(${1:$name})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/nth b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/nth new file mode 100644 index 0000000..3dcee5d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/nth @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: nth($list, $n) +# group: List functions +# -- +nth(${1:$list}, ${2:$n})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/opacify b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/opacify new file mode 100644 index 0000000..cc4c397 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/opacify @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: opacify($color, $amount) +# group: Opacity functions +# -- +opacify(${1:$color}, ${2:$amount})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/opacity b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/opacity new file mode 100644 index 0000000..52319f1 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/opacity @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: opacity($color) +# group: Opacity functions +# -- +opacity(${1:$color})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/percentage b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/percentage new file mode 100644 index 0000000..fc4fd56 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/percentage @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: percentage($number) +# group: Number functions +# -- +percentage(${1:$number})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/quote b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/quote new file mode 100644 index 0000000..1b81e73 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/quote @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: quote($string) +# group: String functions +# -- +quote(${1:$string})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/random b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/random new file mode 100644 index 0000000..70de049 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/random @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: random([$limit]) +# group: Number functions +# -- +random(${1:[$limit]})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/red b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/red new file mode 100644 index 0000000..fefa406 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/red @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: red($color) +# group: RGB functions +# -- +red(${1:color})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/rgb b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/rgb new file mode 100644 index 0000000..c5fc5e8 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/rgb @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: rgb($red, $green, $blue) +# group: RGB functions +# -- +rgb(${1:$red}, ${2:$green}, ${3:$blue})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/rgba b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/rgba new file mode 100644 index 0000000..79675f9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/rgba @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: rgb($red, $green, $blue, $alpha) +# group: RGB functions +# -- +rgba(${1:$red}, ${2:$green}, ${3:$blue}, ${4:alpha})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/rgbao b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/rgbao new file mode 100644 index 0000000..e50f565 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/rgbao @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: rgba($color, $alpha) +# key: rgba +# uuid: rgba +# group: Opacity functions +# -- +rgba(${1:$color}, ${2:$alpha})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/round b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/round new file mode 100644 index 0000000..34299c4 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/round @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: round($number) +# group: Number functions +# -- +round(${1:$number})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/saturate b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/saturate new file mode 100644 index 0000000..73adcac --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/saturate @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: saturate($color, $amount) +# group: HSL functions +# -- +saturate(${1:$color}, ${2:$amount})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/saturation b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/saturation new file mode 100644 index 0000000..9d8715c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/saturation @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: saturation($color) +# group: HSL functions +# -- +saturation(${1:$color})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/scale-color b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/scale-color new file mode 100644 index 0000000..d5768d9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/scale-color @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: scale-color($color, [$r], [$g], [$b], [$sat], [$light], [$alpha]) +# group: Other color functions +# -- +scale-color(${1:$color}, ${2:[$r]}, ${3:[$g]}, ${4:[$b]}, ${5:[$sat]}, ${6:[$light]}, ${7:[$alpha]})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/set-nth b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/set-nth new file mode 100644 index 0000000..25b4810 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/set-nth @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: set-nth($list, $n, $value) +# group: List functions +# -- +set-nth(${1:$list}, ${2:$n}, ${3:$value})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/str-index b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/str-index new file mode 100644 index 0000000..567e1d9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/str-index @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: str-index($string, $substring) +# group: String functions +# -- +str-index(${1:$string}, ${2:$substring})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/str-insert b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/str-insert new file mode 100644 index 0000000..29537a4 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/str-insert @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: str-insert($string, $insert, $index) +# group: String functions +# -- +str-insert(${1:$string}, ${2:$insert}, ${3:$index})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/str-length b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/str-length new file mode 100644 index 0000000..16268f8 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/str-length @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: str-length($string) +# group: String functions +# -- +str-length(${1:$string})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/str-slice b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/str-slice new file mode 100644 index 0000000..b9295b7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/str-slice @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: str-slice($string, $start-at, [$end-at]) +# group: String functions +# -- +str-slice(${1:$string}, ${2:$start-at}${3:, ${4:$end-at}})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/to-lower-case b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/to-lower-case new file mode 100644 index 0000000..6846d33 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/to-lower-case @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: to-lower-case($string) +# group: String functions +# -- +to-lower-case(${1:$string})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/to-upper-case b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/to-upper-case new file mode 100644 index 0000000..6281ad1 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/to-upper-case @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: to-upper-case($string) +# group: String functions +# -- +to-upper-case(${1:$string})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/transparentize b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/transparentize new file mode 100644 index 0000000..260087c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/transparentize @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: transparentize($color, $amount) +# group: Opacity functions +# -- +transparentize(${1:$color}, ${2:$amount})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/type-of b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/type-of new file mode 100644 index 0000000..c810628 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/type-of @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: type-of($value) +# group: Introspection functions +# -- +type-of(${1:$value})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/unique-id b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/unique-id new file mode 100644 index 0000000..47e5b80 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/unique-id @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: unique-id() +# group: Misc functions +# -- +unique-id()
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/unit b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/unit new file mode 100644 index 0000000..5c6aa08 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/unit @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: unit($number) +# group: Introspection functions +# -- +unit(${1:$number})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/unitless b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/unitless new file mode 100644 index 0000000..318643d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/unitless @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: unitless($number) +# group: Introspection functions +# -- +unitless(${1:$number})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/unquote b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/unquote new file mode 100644 index 0000000..aeb5ba8 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/unquote @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: unquote($string) +# group: String functions +# -- +unquote(${1:$string})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/variable-exists b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/variable-exists new file mode 100644 index 0000000..1309b67 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/variable-exists @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: variable-exists($name) +# group: Introspection functions +# -- +variable-exists(${1:$name})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/zip b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/zip new file mode 100644 index 0000000..e24c5e9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/scss-mode/zip @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: zip($list1, $list2, ...) +# group: List functions +# -- +zip(${1:$list1}, ${2:$list2})
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/alias b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/alias new file mode 100644 index 0000000..4dc30ef --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/alias @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: alias +# key: alias +# uuid: alias +# -- +alias ${1:cmd}=$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/args b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/args new file mode 100644 index 0000000..196973f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/args @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: args +# key: args +# uuid: args +# -- +[ $# -lt ${1:2} ]
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/bang b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/bang new file mode 100644 index 0000000..9c825e4 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/bang @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bang +# key: #! +# uuid: #! +# -- +#!${1:/usr/bin/env `(symbol-name sh-shell)`} +$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/case b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/case new file mode 100644 index 0000000..276cdae --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/case @@ -0,0 +1,8 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: case +# key: case +# uuid: case +# -- +case ${1:var} in + ${2:match}) $0 ;; +esac
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/elif b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/elif new file mode 100644 index 0000000..127e26e --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/elif @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: elif +# key: elif +# uuid: elif +# -- +elif ${1:condition}; then + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/else b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/else new file mode 100644 index 0000000..974a23d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/else @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: else +# key: else +# uuid: else +# -- +else + $0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/f b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/f new file mode 100644 index 0000000..749a932 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/f @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: short function +# key: f +# uuid: f +# -- +${1:name}() { + $0 +} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/for b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/for new file mode 100644 index 0000000..f990ebf --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/for @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: for loop +# key: for +# uuid: for +# -- +for ${1:var} in ${2:stuff}; do + $0 +done
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/function b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/function new file mode 100644 index 0000000..2adefa2 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/function @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: function +# -- +function ${1:name} { + $0 +}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/gt b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/gt new file mode 100644 index 0000000..0a59165 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/gt @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: Greater than +# key: > +# uuid: > +# -- +"$1" -gt "$2" diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/if b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/if new file mode 100644 index 0000000..b832a61 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/if @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: if +# -- +if $1; then + $0 +fi diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/if-one-line b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/if-one-line new file mode 100644 index 0000000..9c038b0 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/if-one-line @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: if ...; then ...; fi +# key: if; +# uuid: if; +# -- +${1:condition} && ${0:echo 1} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/ife b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/ife new file mode 100644 index 0000000..ba0c866 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/ife @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: ife +# key: ife +# uuid: ife +# -- +if ${1:condition}; then + ${2:# code} +else + $0 +fi
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/local b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/local new file mode 100644 index 0000000..cd789e7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/local @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +# name: local var=value +# -- +local ${1:var}=${0:value} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/lt b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/lt new file mode 100644 index 0000000..22c70eb --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/lt @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: Less than +# key: < +# uuid: < +# -- +"$1" -lt "$2" diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/var b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/var new file mode 100644 index 0000000..4f803e6 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/sh-mode/var @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: VAR=value +# key: = +# uuid: = +# -- +${1:VAR}=${0:VALUE}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/snippet-mode/cont b/Emacs/.config/emacs/.config/yasnippet/snippets/snippet-mode/cont new file mode 100644 index 0000000..4453293 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/snippet-mode/cont @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: cont +# key: cont +# uuid: cont +# -- +# contributor: `user-full-name`
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/snippet-mode/elisp b/Emacs/.config/emacs/.config/yasnippet/snippets/snippet-mode/elisp new file mode 100644 index 0000000..724cf72 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/snippet-mode/elisp @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: elisp +# key: ` +# uuid: ` +# -- +\`$0\`
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/snippet-mode/field b/Emacs/.config/emacs/.config/yasnippet/snippets/snippet-mode/field new file mode 100644 index 0000000..e0df7df --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/snippet-mode/field @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name : ${ ... } field +# contributor : joaotavora +# key : $f +# key: field +# uuid: field +# -- +\${${1:${2:n}:}$3${4:\$(${5:lisp-fn})}\}$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/snippet-mode/group b/Emacs/.config/emacs/.config/yasnippet/snippets/snippet-mode/group new file mode 100644 index 0000000..ab73672 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/snippet-mode/group @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: group +# key: group +# uuid: group +# -- +# group : ${1:group}
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/snippet-mode/mirror b/Emacs/.config/emacs/.config/yasnippet/snippets/snippet-mode/mirror new file mode 100644 index 0000000..c09dce9 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/snippet-mode/mirror @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name : ${n:$(...)} mirror +# key : $m +# contributor : joaotavora +# key: mirror +# uuid: mirror +# -- +\${${2:n}:${4:\$(${5:reflection-fn})}\}$0
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/snippet-mode/vars b/Emacs/.config/emacs/.config/yasnippet/snippets/snippet-mode/vars new file mode 100644 index 0000000..fae94fb --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/snippet-mode/vars @@ -0,0 +1,12 @@ +# -*- mode: snippet -*- +# name: Snippet header +# key:# +# uuid: # +# -- +# -*- mode: snippet -*- +${1:# contributor: `(user-full-name)` +}# name: $2 +# key: ${3:trigger-key}${4: +# condition: t} +# -- +$0 diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/column b/Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/column new file mode 100644 index 0000000..849b43d --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/column @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +# name: , ColumnName ColumnType NOT NULL... +# -- + , ${1:Name} ${2:Type} ${3:NOT NULL} diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/constraint b/Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/constraint new file mode 100644 index 0000000..312190c --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/constraint @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +# name: CONSTRAINT [..] PRIMARY KEY ... +# -- +CONSTRAINT [${1:PK_Name}] PRIMARY KEY ${2:CLUSTERED} ([${3:ColumnName}]) diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/constraint.1 b/Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/constraint.1 new file mode 100644 index 0000000..f54ea0a --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/constraint.1 @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +# name: CONSTRAINT [..] FOREIGN KEY ... +# -- +CONSTRAINT [${1:FK_Name}] FOREIGN KEY ${2:CLUSTERED} ([${3:ColumnName}]) diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/create b/Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/create new file mode 100644 index 0000000..2d0ed21 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/create @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +# name: create table ... +# -- +CREATE TABLE [${1:dbo}].[${2:TableName}] +( + ${3:Id} ${4:INT IDENTITY(1,1)} ${5:NOT NULL} +$0 + CONSTRAINT [${6:PK_}] PRIMARY KEY ${7:CLUSTERED} ([$3]) +) +GO diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/create.1 b/Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/create.1 new file mode 100644 index 0000000..fb8b1ae --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/create.1 @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +# name: create procedure ... +# -- +CREATE PROCEDURE [${1:dbo}].[${2:Name}] +( + $3 $4 = ${5:NULL} ${6:OUTPUT} +) +AS +BEGIN +$0 +END +GO diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/references b/Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/references new file mode 100644 index 0000000..ec3e58f --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/references @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx> +# name: REFERENCES ... +# -- +REFERENCES ${1:TableName}([${2:ColumnName}]) diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/web-mode/video b/Emacs/.config/emacs/.config/yasnippet/snippets/web-mode/video new file mode 100644 index 0000000..5f7193b --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/web-mode/video @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: HTML5 video player +# -- +<video width="${1:560}" height="${2:340}" controls> + <source src="${3:path/to/myvideo}.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'> + <source src="$3.ogv" type='video/ogg; codecs="theora, vorbis"'> + ${0:Your browser does not support my HTML5 video player} +</video>
\ No newline at end of file diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/web-mode/vue b/Emacs/.config/emacs/.config/yasnippet/snippets/web-mode/vue new file mode 100644 index 0000000..aa3d9a7 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/web-mode/vue @@ -0,0 +1,18 @@ +# -*- mode: snippet -*- +# name: Vue Single-File Component +# uuid: vue +# condition: (equal web-mode-engine "vue") +# -- +<script> + export default { + name: '${0:`(file-name-base buffer-file-name)`}'$3 + } +</script> + +<template> + ${1:} +</template> + +<style scoped> + $2 +</style> diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 8f661e7..29482c6 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -849,9 +849,6 @@ as well. :hook (after-init-hook . auto-insert-mode)) #+end_src *** Yasnippet default -:PROPERTIES: -:header-args:emacs-lisp: :tangle no -:END: Setup global mode after evil mode has been loaded #+begin_src emacs-lisp (use-package yasnippet @@ -865,15 +862,6 @@ Setup global mode after evil mode has been loaded :config (yas-load-directory (no-littering-expand-etc-file-name "yasnippet/snippets"))) #+end_src -*** Yasnippet snippets -:PROPERTIES: -:header-args:emacs-lisp: :tangle no -:END: -Collection of snippets, activate after yasnippet has been loaded. -#+begin_src emacs-lisp -(use-package yasnippet-snippets - :after yasnippet) -#+end_src ** Emacs Mode-line :PROPERTIES: :HTML_CONTAINER: details diff --git a/Scripts/.local/src/programs b/Scripts/.local/src/programs new file mode 100644 index 0000000..390b836 --- /dev/null +++ b/Scripts/.local/src/programs @@ -0,0 +1,9 @@ +dmenu +dwm +dwmblocks +emacs +light +pfetch +programs +spotify +xboxdrv |