Minor refactor

This commit is contained in:
Henrik Lissner 2018-03-18 03:36:05 -04:00
parent 5d69851f39
commit 1b5758a6da
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 3 additions and 3 deletions

View file

@ -310,7 +310,7 @@ Example
(dolist (keymap doom--keymaps)
(push `(define-key ,keymap ,key ,def) forms)))
(t
(push `(,(if doom--local 'local-set-key 'global-set-key) ,key ,def)
(push `(,(if doom--local #'local-set-key #'global-set-key) ,key ,def)
forms))))
(setq states '()
doom--local nil

View file

@ -80,8 +80,8 @@
(let ((fn-sym (intern (format "+evil*repeat-%s" command))))
`(progn
(defun ,fn-sym (&rest _)
(define-key evil-motion-state-map (kbd ";") ',next-func)
(define-key evil-motion-state-map (kbd ",") ',prev-func))
(define-key evil-motion-state-map ";" ',next-func)
(define-key evil-motion-state-map "," ',prev-func))
(advice-add #',command :before #',fn-sym))))
;; n/N