default/config: explicitly use :states #1084

The 'motion alias didn't appear to be working.
This commit is contained in:
Henrik Lissner 2018-12-29 20:56:12 -05:00
parent 937252af4e
commit 747c040c0e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -755,7 +755,7 @@ customized by changing `+default-repeat-forward-key' and
(let ((fn-sym (intern (format "+default*repeat-%s" (doom-unquote command))))) (let ((fn-sym (intern (format "+default*repeat-%s" (doom-unquote command)))))
`(progn `(progn
(defun ,fn-sym (&rest _) (defun ,fn-sym (&rest _)
(define-key! 'motion (define-key! :states 'motion
(car +default-repeat-keys) #',next-func (car +default-repeat-keys) #',next-func
(cdr +default-repeat-keys) #',prev-func)) (cdr +default-repeat-keys) #',prev-func))
(advice-add #',command :before #',fn-sym)))) (advice-add #',command :before #',fn-sym))))