Skip to content

Commit 6d5cb58

Browse files
committed
Fix the loading of avy, fixes #37
1 parent 72129a6 commit 6d5cb58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

evil-easymotion.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@
122122
sort-key
123123
collect-postprocess)
124124
"Repeatedly execute func, and collect the cursor positions into a list"
125-
(require 'avy)
126125
(cl-letf ((points nil)
127126
(point nil)
128127
(avy-all-windows all-windows)
@@ -179,6 +178,7 @@
179178
'evil-define-command
180179
'evil-define-motion)
181180
,name (&optional _count)
181+
(require 'avy)
182182
(avy-with ,name
183183
(evil-without-repeat
184184
(setq evil-this-type 'inclusive)
@@ -208,6 +208,7 @@
208208
"Automatically define a plain easymotion for `func', naming it `name'"
209209
`(defun ,name ()
210210
(interactive)
211+
(require 'avy)
211212
(avy-with ,name
212213
(cl-letf* ,bind
213214
,(when pre-hook `(funcall ,(if (functionp pre-hook)

0 commit comments

Comments
 (0)