Skip to content

Commit 7d68f61

Browse files
committed
Bind cross-window motions in normal state only
1 parent 3429de4 commit 7d68f61

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

evil-easymotion.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,10 @@
200200
(cl-defmacro evilem-define (key motion &key pre-hook post-hook bind scope
201201
all-windows)
202202
"Automatically create and bind an evil motion"
203-
`(define-key evil-motion-state-map ,key
203+
`(define-key ,(if all-windows
204+
'evil-normal-state-map
205+
'evil-motion-state-map)
206+
,key
204207
(evilem-create ,motion
205208
:pre-hook ,pre-hook
206209
:post-hook ,post-hook

0 commit comments

Comments
 (0)