From 10acc2e6d80d875dc16e336917ea1db03255ccfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D0=B0?= =?UTF-8?q?=D1=80=20=D0=A1=D0=B8=D0=BC=D0=B8=D1=9B?= Date: Mon, 10 Oct 2016 13:16:27 +0100 Subject: [PATCH 1/6] Added '->' & '->>' snippets Nothing complicated, but nice to have. Chose the names after the macros themselves instead of 'thread-(first|last)' so that when people see the snippet file names it'll be very obvious what the snippets provide. --- snippets/clojure-mode/-> | 4 ++++ snippets/clojure-mode/->> | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 snippets/clojure-mode/-> create mode 100644 snippets/clojure-mode/->> diff --git a/snippets/clojure-mode/-> b/snippets/clojure-mode/-> new file mode 100644 index 0000000..84d3229 --- /dev/null +++ b/snippets/clojure-mode/-> @@ -0,0 +1,4 @@ +# name: -> +# key: -> +# -- +(-> $1) \ No newline at end of file diff --git a/snippets/clojure-mode/->> b/snippets/clojure-mode/->> new file mode 100644 index 0000000..41f5db3 --- /dev/null +++ b/snippets/clojure-mode/->> @@ -0,0 +1,4 @@ +# name: ->> +# key: ->> +# -- +(->> $1) \ No newline at end of file From 3ddbec7b930162a580632441591c0bcf152559f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D0=B0?= =?UTF-8?q?=D1=80=20=D0=A1=D0=B8=D0=BC=D0=B8=D1=9B?= Date: Mon, 17 Oct 2016 08:53:19 +0100 Subject: [PATCH 2/6] Added `testing' snippet Although there is already `test' snippet, we don't have `testing' snippet, so adding it now --- snippets/clojure-mode/testing | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 snippets/clojure-mode/testing diff --git a/snippets/clojure-mode/testing b/snippets/clojure-mode/testing new file mode 100644 index 0000000..6d6f5e8 --- /dev/null +++ b/snippets/clojure-mode/testing @@ -0,0 +1,4 @@ +# name: testing +# key: testing +# -- +(testing "$1")$> From 6ca562198a1958ee9ce8e8ef716355daf1ee9760 Mon Sep 17 00:00:00 2001 From: Max Penet Date: Mon, 24 Oct 2016 07:40:49 +0200 Subject: [PATCH 3/6] Revert "Added '->' & '->>' snippets" --- snippets/clojure-mode/-> | 4 ---- snippets/clojure-mode/->> | 4 ---- 2 files changed, 8 deletions(-) delete mode 100644 snippets/clojure-mode/-> delete mode 100644 snippets/clojure-mode/->> diff --git a/snippets/clojure-mode/-> b/snippets/clojure-mode/-> deleted file mode 100644 index 84d3229..0000000 --- a/snippets/clojure-mode/-> +++ /dev/null @@ -1,4 +0,0 @@ -# name: -> -# key: -> -# -- -(-> $1) \ No newline at end of file diff --git a/snippets/clojure-mode/->> b/snippets/clojure-mode/->> deleted file mode 100644 index 41f5db3..0000000 --- a/snippets/clojure-mode/->> +++ /dev/null @@ -1,4 +0,0 @@ -# name: ->> -# key: ->> -# -- -(->> $1) \ No newline at end of file From 6846fed1b26d211e7d06c2273ec8059f93b932e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D0=B0?= =?UTF-8?q?=D1=80=20=D0=A1=D0=B8=D0=BC=D0=B8=D1=9B?= Date: Mon, 24 Oct 2016 07:20:42 +0100 Subject: [PATCH 4/6] Adding back snippets for '->' & '->>' They were removed because the snippet files were as the macros, with '>' in the name, which Microsoft Windows can't have as a file name. I've added them back but with their full name instead. --- snippets/clojure-mode/thread-first | 4 ++++ snippets/clojure-mode/thread-last | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 snippets/clojure-mode/thread-first create mode 100644 snippets/clojure-mode/thread-last diff --git a/snippets/clojure-mode/thread-first b/snippets/clojure-mode/thread-first new file mode 100644 index 0000000..84d3229 --- /dev/null +++ b/snippets/clojure-mode/thread-first @@ -0,0 +1,4 @@ +# name: -> +# key: -> +# -- +(-> $1) \ No newline at end of file diff --git a/snippets/clojure-mode/thread-last b/snippets/clojure-mode/thread-last new file mode 100644 index 0000000..41f5db3 --- /dev/null +++ b/snippets/clojure-mode/thread-last @@ -0,0 +1,4 @@ +# name: ->> +# key: ->> +# -- +(->> $1) \ No newline at end of file From 199cde62dbf9aa42a52537a5f9011520995e5184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D0=B0?= =?UTF-8?q?=D1=80=20=D0=A1=D0=B8=D0=BC=D0=B8=D1=9B?= Date: Mon, 24 Oct 2016 08:09:04 +0100 Subject: [PATCH 5/6] Added condp snippet Took it from David Nolan's snippet collection: https://github.com/swannodette/clojure-snippets/blob/master/condp --- snippets/clojure-mode/condp | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 snippets/clojure-mode/condp diff --git a/snippets/clojure-mode/condp b/snippets/clojure-mode/condp new file mode 100644 index 0000000..1718f6f --- /dev/null +++ b/snippets/clojure-mode/condp @@ -0,0 +1,5 @@ +#name: condp +#key: condp +# -- +(condp ${1:pred} ${2:expr} + $0) \ No newline at end of file From 7009cb501a2ca64c4d4f2cca65345c11a50f9d4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D0=B0?= =?UTF-8?q?=D1=80=20=D0=A1=D0=B8=D0=BC=D0=B8=D1=9B?= Date: Mon, 24 Oct 2016 08:09:53 +0100 Subject: [PATCH 6/6] Added cond snippet I'm adding this snippet so that this clojure mode snippet collection has the most up to date and thorough snippet collection --- snippets/clojure-mode/cond | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 snippets/clojure-mode/cond diff --git a/snippets/clojure-mode/cond b/snippets/clojure-mode/cond new file mode 100644 index 0000000..5917c12 --- /dev/null +++ b/snippets/clojure-mode/cond @@ -0,0 +1,7 @@ +# name: cond +# key: cond +# -- +(cond + ($1) $2 + ($3) $4 + :else $5) \ No newline at end of file