Minor, general refactor

This commit is contained in:
Henrik Lissner 2018-06-07 02:49:32 +02:00
parent 37946080e2
commit b207c4040b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 9 additions and 9 deletions

View file

@ -98,8 +98,9 @@ customized by changing `+default-repeat-forward-key' and
(let ((fn-sym (intern (format "+evil*repeat-%s" (doom-unquote command)))))
`(progn
(defun ,fn-sym (&rest _)
(define-key evil-motion-state-map +default-repeat-forward-key #',next-func)
(define-key evil-motion-state-map +default-repeat-backward-key #',prev-func))
(define-key! evil-motion-state-map
+default-repeat-forward-key #',next-func
+default-repeat-backward-key #',prev-func))
(advice-add #',command :before #',fn-sym)))))
;; n/N