feature/evil: refactor how evil-snipe + bindings are autoloaded
This commit is contained in:
parent
eece13f2ca
commit
227e7b095d
2 changed files with 11 additions and 11 deletions
|
@ -307,6 +307,7 @@ the new algorithm is confusing, like in python or ruby."
|
|||
(def-package! evil-snipe
|
||||
:commands (evil-snipe-mode evil-snipe-override-mode
|
||||
evil-snipe-local-mode evil-snipe-override-local-mode)
|
||||
:hook (doom-post-init . evil-snipe-mode)
|
||||
:init
|
||||
(setq evil-snipe-smart-case t
|
||||
evil-snipe-scope 'line
|
||||
|
@ -316,8 +317,8 @@ the new algorithm is confusing, like in python or ruby."
|
|||
evil-snipe-aliases '((?\[ "[[{(]")
|
||||
(?\] "[]})]")
|
||||
(?\; "[;:]")))
|
||||
(add-hook 'doom-post-init-hook #'evil-snipe-mode)
|
||||
(add-hook 'doom-post-init-hook #'evil-snipe-override-mode))
|
||||
:config
|
||||
(evil-snipe-override-mode +1))
|
||||
|
||||
|
||||
(def-package! evil-surround
|
||||
|
|
|
@ -446,15 +446,14 @@
|
|||
|
||||
;; evil-snipe
|
||||
(:after evil-snipe
|
||||
(:after evil-easymotion
|
||||
;; Binding to switch to evil-easymotion/avy after a snipe
|
||||
:map evil-snipe-parent-transient-map
|
||||
;; switch to evil-easymotion/avy after a snipe
|
||||
"C-;" (λ! (require 'evil-easymotion)
|
||||
(call-interactively
|
||||
(evilem-create #'evil-snipe-repeat
|
||||
:bind ((evil-snipe-scope 'whole-buffer)
|
||||
(evil-snipe-enable-highlight)
|
||||
(evil-snipe-enable-incremental-highlight)))))))
|
||||
(evil-snipe-enable-incremental-highlight))))))
|
||||
|
||||
;; evil-surround
|
||||
:v "S" #'evil-surround-region
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue