feature/evil: conform to v2 module format

This commit is contained in:
Henrik Lissner 2017-02-03 19:24:04 -05:00
parent 5dc174f41c
commit 28931e6523
2 changed files with 17 additions and 7 deletions

View file

@ -141,3 +141,16 @@ evil-window-move-* (e.g. `evil-window-move-far-left')"
(switch-to-buffer this-buffer))
(select-window that-window))))
;;;###autoload (autoload '+evil:macro-on-all-lines "feature/evil/autoload" nil t)
(evil-define-operator +evil:macro-on-all-lines (beg end &optional macro)
"Apply macro to each line."
:motion nil
:move-point nil
(interactive "<r><a>")
(unless (and beg end)
(setq beg (region-beginning)
end (region-end)))
(evil-ex-normal beg end
(concat "@"
(single-key-description
(or macro (read-char "@-"))))))