From ff1dab3f6b0d35ffac7c88ee0c003a8b13d4e05f Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 24 Apr 2024 04:06:56 +0530 Subject: (Emacs/snippets)~Modified some C++ snippets to be easier to use --- Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/class | 3 +-- Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/copy | 2 +- Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/copy_if | 2 +- Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/count | 2 +- Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/delete | 2 +- Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/enum | 1 + Emacs/.config/emacs/.config/yasnippet/snippets/c++-mode/equal | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'Emacs') 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 -- cgit v1.2.3-13-gbd6f