Skip to content

Commit 884dccd

Browse files
committed
Make collector variable names plural
1 parent 7d68f61 commit 884dccd

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

evil-easymotion.el

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
(evilem--collect f scope all-windows))
147147
func))))
148148

149-
(cl-defmacro evilem-make-motion (name func &key pre-hook post-hook bind scope
149+
(cl-defmacro evilem-make-motion (name funcs &key pre-hook post-hook bind scope
150150
all-windows)
151151
"Automatically define an evil easymotion for `func', naming it `name'"
152152
`(evil-define-motion ,name (_count)
@@ -156,12 +156,12 @@
156156
,(when pre-hook `(funcall ,(if (functionp pre-hook)
157157
pre-hook
158158
`(lambda () ,pre-hook))))
159-
(evilem--jump (evilem--collect ,func ,scope ,all-windows))
159+
(evilem--jump (evilem--collect ,funcs ,scope ,all-windows))
160160
,(when post-hook `(funcall ,(if (functionp post-hook)
161161
post-hook
162162
`(lambda () ,post-hook))))))))
163163

164-
(cl-defmacro evilem-make-motion-plain (name func &key pre-hook post-hook bind scope
164+
(cl-defmacro evilem-make-motion-plain (name funcs &key pre-hook post-hook bind scope
165165
all-windows)
166166
"Automatically define a plain easymotion for `func', naming it `name'"
167167
`(defun ,name ()
@@ -170,41 +170,41 @@
170170
,(when pre-hook `(funcall ,(if (functionp pre-hook)
171171
pre-hook
172172
`(lambda () ,pre-hook))))
173-
(evilem--jump (evilem--collect ,func ,scope ,all-windows))
173+
(evilem--jump (evilem--collect ,funcs ,scope ,all-windows))
174174
,(when post-hook `(funcall ,(if (functionp post-hook)
175175
post-hook
176176
`(lambda () ,post-hook)))))))
177177

178-
(cl-defmacro evilem-create (motion &key pre-hook post-hook bind scope
178+
(cl-defmacro evilem-create (motions &key pre-hook post-hook bind scope
179179
all-windows)
180180
`(evilem-make-motion
181-
,(intern (evilem--make-name motion))
182-
,motion
181+
,(intern (evilem--make-name motions))
182+
,motions
183183
:pre-hook ,pre-hook
184184
:post-hook ,post-hook
185185
:bind ,bind
186186
:scope ,scope
187187
:all-windows ,all-windows))
188188

189-
(cl-defmacro evilem-create-plain (motion &key pre-hook post-hook bind scope
189+
(cl-defmacro evilem-create-plain (motions &key pre-hook post-hook bind scope
190190
all-windows)
191191
`(evilem-make-motion-plain
192-
,(intern (evilem--make-name motion))
193-
,motion
192+
,(intern (evilem--make-name motions))
193+
,motions
194194
:pre-hook ,pre-hook
195195
:post-hook ,post-hook
196196
:bind ,bind
197197
:scope ,scope
198198
:all-windows ,all-windows))
199199

200-
(cl-defmacro evilem-define (key motion &key pre-hook post-hook bind scope
200+
(cl-defmacro evilem-define (key motions &key pre-hook post-hook bind scope
201201
all-windows)
202202
"Automatically create and bind an evil motion"
203203
`(define-key ,(if all-windows
204204
'evil-normal-state-map
205205
'evil-motion-state-map)
206206
,key
207-
(evilem-create ,motion
207+
(evilem-create ,motions
208208
:pre-hook ,pre-hook
209209
:post-hook ,post-hook
210210
:bind ,bind

0 commit comments

Comments
 (0)