feature/evil: conform to v2 module format
This commit is contained in:
parent
5dc174f41c
commit
28931e6523
2 changed files with 17 additions and 7 deletions
|
@ -141,3 +141,16 @@ evil-window-move-* (e.g. `evil-window-move-far-left')"
|
||||||
(switch-to-buffer this-buffer))
|
(switch-to-buffer this-buffer))
|
||||||
(select-window that-window))))
|
(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 "@-"))))))
|
||||||
|
|
|
@ -14,8 +14,7 @@
|
||||||
;; evil-mode
|
;; evil-mode
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(use-package! evil
|
(use-package! evil :demand t
|
||||||
:demand t
|
|
||||||
:init
|
:init
|
||||||
(setq evil-want-C-u-scroll t
|
(setq evil-want-C-u-scroll t
|
||||||
evil-want-visual-char-semi-exclusive t
|
evil-want-visual-char-semi-exclusive t
|
||||||
|
@ -30,7 +29,7 @@
|
||||||
evil-insert-skip-empty-lines t)
|
evil-insert-skip-empty-lines t)
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(def-popup!
|
(set! :popup
|
||||||
("*evil-registers*" :size 0.3)
|
("*evil-registers*" :size 0.3)
|
||||||
("*Command Line*" :size 8))
|
("*Command Line*" :size 8))
|
||||||
|
|
||||||
|
@ -287,16 +286,14 @@ if on a delimiter, jump to the matching one (`evilmi-jump-items')."
|
||||||
(+evil--textobj! "B" 'evil-textobj-anyblock-inner-block 'evil-textobj-anyblock-a-block))
|
(+evil--textobj! "B" 'evil-textobj-anyblock-inner-block 'evil-textobj-anyblock-a-block))
|
||||||
|
|
||||||
|
|
||||||
(use-package! evil-search-highlight-persist
|
(use-package! evil-search-highlight-persist :demand t
|
||||||
:demand t
|
|
||||||
:commands (evil-textobj-anyblock-inner-block evil-textobj-anyblock-a-block)
|
:commands (evil-textobj-anyblock-inner-block evil-textobj-anyblock-a-block)
|
||||||
:config
|
:config
|
||||||
(global-evil-search-highlight-persist t)
|
(global-evil-search-highlight-persist t)
|
||||||
(advice-add 'evil-force-normal-state :after 'evil-search-highlight-persist-remove-all))
|
(advice-add 'evil-force-normal-state :after 'evil-search-highlight-persist-remove-all))
|
||||||
|
|
||||||
|
|
||||||
(use-package! evil-snipe
|
(use-package! evil-snipe :demand t
|
||||||
:demand t
|
|
||||||
:init
|
:init
|
||||||
(setq evil-snipe-smart-case t
|
(setq evil-snipe-smart-case t
|
||||||
evil-snipe-repeat-keys nil ; using space to repeat
|
evil-snipe-repeat-keys nil ; using space to repeat
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue