Move def-text-obj! to macros-evil

This commit is contained in:
Henrik Lissner 2016-05-29 14:12:53 -04:00
parent 026592739e
commit 391d392dce
2 changed files with 5 additions and 4 deletions

View file

@ -195,10 +195,6 @@ Examples:
(after! evil
(defalias 'ex! 'evil-ex-define-cmd)
(defsubst def-text-obj! (key inner-fn &optional outer-fn)
(define-key evil-inner-text-objects-map key inner-fn)
(define-key evil-outer-text-objects-map key (or outer-fn inner-fn)))
;; Register keywords for proper indentation (see `map!')
(put ':prefix 'lisp-indent-function 'defun)
(put ':map 'lisp-indent-function 'defun)

View file

@ -1,5 +1,10 @@
;;; macros-evil.el
;;;###autoload
(defsubst def-text-obj! (key inner-fn &optional outer-fn)
(define-key evil-inner-text-objects-map key inner-fn)
(define-key evil-outer-text-objects-map key (or outer-fn inner-fn)))
;;;###autoload
(defmacro def-tmp-excmd! (cmd-on cmd-off &rest commands)
"Creates a toggle for a set of ex commands, named CMD-ON and CMD-OFF."