diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-24 04:06:56 +0530 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-24 04:06:56 +0530 |
commit | ff1dab3f6b0d35ffac7c88ee0c003a8b13d4e05f (patch) | |
tree | 630c10494c84ec3735ec6a209bacc2e3e2339165 /Emacs/.config | |
parent | 8ea2b51e5afbf413b3c46f2c532b052b1028bec6 (diff) | |
download | dotfiles-ff1dab3f6b0d35ffac7c88ee0c003a8b13d4e05f.tar.gz dotfiles-ff1dab3f6b0d35ffac7c88ee0c003a8b13d4e05f.tar.bz2 dotfiles-ff1dab3f6b0d35ffac7c88ee0c003a8b13d4e05f.zip |
(Emacs/snippets)~Modified some C++ snippets to be easier to use
Diffstat (limited to 'Emacs/.config')
7 files changed, 7 insertions, 7 deletions
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/class b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/class index dcd73f9..83ba750 100644 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/class +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/class @@ -5,5 +5,4 @@ class ${1:Name} { public: ${1:$(yas/substr yas-text "[^: ]*")}(); ${2:virtual ~${1:$(yas/substr yas-text "[^: ]*")}();} - $0 -};
\ No newline at end of file +};$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 index 6db7b97..18653db 100644 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/copy +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/copy @@ -1,5 +1,5 @@ # -*- mode: snippet -*- # name: copy -# key: cpy +# key: copy # -- 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_if b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/copy_if index 611aa75..f1cb633 100644 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/copy_if +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/copy_if @@ -1,6 +1,6 @@ # -*- mode: snippet -*- # name: copy_if -# key: cpi +# key: copy_if # -- std::copy_if(std::begin(${1:container}), std::end($1), std::begin($2), []($3) { diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/count b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/count index 95936e2..d6ae58a 100644 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/count +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/count @@ -1,5 +1,5 @@ # -*- mode: snippet -*- # name: count -# key: cnt +# key: count # -- 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/delete b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/delete index cf0376c..1a7d1fe 100644 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/delete +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/delete @@ -1,6 +1,6 @@ # -*- mode: snippet -*- # name: delete -# key: dl +# key: delete # uuid: dl # -- delete ${1:pointer};
\ 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 index 99f9923..14032a0 100644 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/enum +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/enum @@ -1,4 +1,5 @@ # -*- mode: snippet -*- # name: enum +# key: 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 index 09cfb44..1317962 100644 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/equal +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/equal @@ -1,6 +1,6 @@ # -*- mode: snippet -*- # name: equal -# key: eql +# key: equal # -- if (std::equal(std::begin(${1:container}), std::end($1), std::begin($2))) { $3 |