Surround and snipe now work correctly together

This commit is contained in:
Howard Abrams 2021-12-27 09:48:02 -08:00
parent 3a927e756a
commit 7b732934d5

View file

@ -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: