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
|
||||
(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)
|
||||
|
|
|
@ -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."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue