Move def-text-obj! to macros-evil
This commit is contained in:
parent
026592739e
commit
391d392dce
2 changed files with 5 additions and 4 deletions
|
@ -195,10 +195,6 @@ Examples:
|
||||||
(after! evil
|
(after! evil
|
||||||
(defalias 'ex! 'evil-ex-define-cmd)
|
(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!')
|
;; Register keywords for proper indentation (see `map!')
|
||||||
(put ':prefix 'lisp-indent-function 'defun)
|
(put ':prefix 'lisp-indent-function 'defun)
|
||||||
(put ':map 'lisp-indent-function 'defun)
|
(put ':map 'lisp-indent-function 'defun)
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
;;; macros-evil.el
|
;;; 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
|
;;;###autoload
|
||||||
(defmacro def-tmp-excmd! (cmd-on cmd-off &rest commands)
|
(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."
|
"Creates a toggle for a set of ex commands, named CMD-ON and CMD-OFF."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue