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
|
(def-package! evil-snipe
|
||||||
:commands (evil-snipe-mode evil-snipe-override-mode
|
:commands (evil-snipe-mode evil-snipe-override-mode
|
||||||
evil-snipe-local-mode evil-snipe-override-local-mode)
|
evil-snipe-local-mode evil-snipe-override-local-mode)
|
||||||
|
:hook (doom-post-init . evil-snipe-mode)
|
||||||
:init
|
:init
|
||||||
(setq evil-snipe-smart-case t
|
(setq evil-snipe-smart-case t
|
||||||
evil-snipe-scope 'line
|
evil-snipe-scope 'line
|
||||||
|
@ -316,8 +317,8 @@ the new algorithm is confusing, like in python or ruby."
|
||||||
evil-snipe-aliases '((?\[ "[[{(]")
|
evil-snipe-aliases '((?\[ "[[{(]")
|
||||||
(?\] "[]})]")
|
(?\] "[]})]")
|
||||||
(?\; "[;:]")))
|
(?\; "[;:]")))
|
||||||
(add-hook 'doom-post-init-hook #'evil-snipe-mode)
|
:config
|
||||||
(add-hook 'doom-post-init-hook #'evil-snipe-override-mode))
|
(evil-snipe-override-mode +1))
|
||||||
|
|
||||||
|
|
||||||
(def-package! evil-surround
|
(def-package! evil-surround
|
||||||
|
|
|
@ -446,15 +446,14 @@
|
||||||
|
|
||||||
;; evil-snipe
|
;; evil-snipe
|
||||||
(:after evil-snipe
|
(:after evil-snipe
|
||||||
(:after evil-easymotion
|
|
||||||
;; Binding to switch to evil-easymotion/avy after a snipe
|
|
||||||
:map evil-snipe-parent-transient-map
|
:map evil-snipe-parent-transient-map
|
||||||
|
;; switch to evil-easymotion/avy after a snipe
|
||||||
"C-;" (λ! (require 'evil-easymotion)
|
"C-;" (λ! (require 'evil-easymotion)
|
||||||
(call-interactively
|
(call-interactively
|
||||||
(evilem-create #'evil-snipe-repeat
|
(evilem-create #'evil-snipe-repeat
|
||||||
:bind ((evil-snipe-scope 'whole-buffer)
|
:bind ((evil-snipe-scope 'whole-buffer)
|
||||||
(evil-snipe-enable-highlight)
|
(evil-snipe-enable-highlight)
|
||||||
(evil-snipe-enable-incremental-highlight)))))))
|
(evil-snipe-enable-incremental-highlight))))))
|
||||||
|
|
||||||
;; evil-surround
|
;; evil-surround
|
||||||
:v "S" #'evil-surround-region
|
:v "S" #'evil-surround-region
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue