Attempt to resolve the snipe/surround fiasco
Loading them serially seems to fix it.
This commit is contained in:
parent
7e2ae8beac
commit
b5282059f2
1 changed files with 10 additions and 8 deletions
|
@ -647,14 +647,15 @@ Consult users will also want the embark-consult package.
|
||||||
Doom introduced me to [[https://github.com/hlissner/evil-snipe][evil-snipe]] which is similar to =f= and =t=, but does two characters, and can, when configured, search more than the current line:
|
Doom introduced me to [[https://github.com/hlissner/evil-snipe][evil-snipe]] which is similar to =f= and =t=, but does two characters, and can, when configured, search more than the current line:
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package evil-snipe
|
(use-package evil-snipe
|
||||||
:init
|
:after evil
|
||||||
(setq evil-snipe-scope 'visible)
|
:init
|
||||||
:config
|
(setq evil-snipe-scope 'visible)
|
||||||
(evil-define-key '(normal motion operator visual)
|
:config
|
||||||
"s" #'evil-snipe-s
|
(evil-define-key '(normal motion operator visual)
|
||||||
"S" #'evil-snipe-S)
|
"s" #'evil-snipe-s
|
||||||
(evil-snipe-mode +1))
|
"S" #'evil-snipe-S)
|
||||||
|
(evil-snipe-mode +1))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
It highlights all potential matches, use ~;~ to skip to the next match, and ~,~ to jump back.
|
It highlights all potential matches, use ~;~ to skip to the next match, and ~,~ to jump back.
|
||||||
|
@ -663,6 +664,7 @@ I like both [[https://github.com/emacs-evil/evil-surround][evil-surround]] and H
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package evil-surround
|
(use-package evil-surround
|
||||||
|
:after evil-snipe
|
||||||
:config
|
:config
|
||||||
(dolist (state '(normal motion operator visual))
|
(dolist (state '(normal motion operator visual))
|
||||||
(evil-define-key state evil-surround-mode-map "z" 'evil-surround-edit)
|
(evil-define-key state evil-surround-mode-map "z" 'evil-surround-edit)
|
||||||
|
|
Loading…
Reference in a new issue