Don't lazy load keybindings for evil surround

This commit is contained in:
Hoyon Mak 2019-02-11 14:06:36 +00:00 committed by duianto
parent b1b483e4ae
commit beab291332
2 changed files with 6 additions and 4 deletions

View File

@ -912,6 +912,7 @@ Other:
- Stopped configuring =fci-rule-color=, which was overriding themes that
configured it (thanks to Victor Cuadrado Juan)
- Added ranger-mode to golden-ratio-exclude-modes (thanks to Langston Barrett)
- Fixed evil surround bindings (thanks to Hoyon Mak)
*** Layer changes and fixes
**** Ansible
- Improvements:

View File

@ -298,6 +298,11 @@
:defer t
:init
(progn
;; `s' for surround instead of `substitute'
;; see motivation here:
;; https://github.com/syl20bnr/spacemacs/blob/develop/doc/DOCUMENTATION.org#the-vim-surround-case
(evil-define-key 'visual evil-surround-mode-map "s" 'evil-surround-region)
(evil-define-key 'visual evil-surround-mode-map "S" 'evil-substitute)
(spacemacs|add-transient-hook evil-visual-state-entry-hook
(lambda () (require 'evil-surround))
lazy-load-evil-surround)
@ -306,10 +311,6 @@
lazy-load-evil-surround-2))
:config
(progn
;; `s' for surround instead of `substitute'
;; see motivation for this change in the documentation
(evil-define-key 'visual evil-surround-mode-map "s" 'evil-surround-region)
(evil-define-key 'visual evil-surround-mode-map "S" 'evil-substitute)
(global-evil-surround-mode 1))))
(defun spacemacs-evil/init-evil-terminal-cursor-changer ()