Surround and snipe now work correctly together
This commit is contained in:
parent
3a927e756a
commit
7b732934d5
1 changed files with 5 additions and 5 deletions
|
@ -747,8 +747,8 @@ Doom introduced me to [[https://github.com/hlissner/evil-snipe][evil-snipe]] whi
|
||||||
(setq evil-snipe-scope 'visible)
|
(setq evil-snipe-scope 'visible)
|
||||||
:config
|
:config
|
||||||
(evil-define-key '(normal motion operator visual)
|
(evil-define-key '(normal motion operator visual)
|
||||||
"s" #'evil-snipe-s
|
"s" #'evil-snipe-s
|
||||||
"S" #'evil-snipe-S)
|
"S" #'evil-snipe-S)
|
||||||
(evil-snipe-mode +1))
|
(evil-snipe-mode +1))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
@ -760,9 +760,9 @@ I like both [[https://github.com/emacs-evil/evil-surround][evil-surround]] and H
|
||||||
(use-package evil-surround
|
(use-package evil-surround
|
||||||
:after evil-snipe
|
:after evil-snipe
|
||||||
:config
|
:config
|
||||||
(dolist (state '(normal motion operator visual))
|
(evil-define-key '(normal motion operator visual) evil-surround-mode-map
|
||||||
(evil-define-key state evil-surround-mode-map "z" 'evil-surround-edit)
|
"z" 'evil-surround-edit
|
||||||
(evil-define-key state evil-surround-mode-map "Z" 'evil-Surround-edit))
|
"Z" 'evil-Surround-edit)
|
||||||
(global-evil-surround-mode 1))
|
(global-evil-surround-mode 1))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
Notes:
|
Notes:
|
||||||
|
|
Loading…
Reference in a new issue