From 2150f17b40311b7d9d055da9fd83a9ed87d06b58 Mon Sep 17 00:00:00 2001 From: Matthias Pall Gissurarson Date: Mon, 15 Dec 2014 20:22:25 +0000 Subject: [PATCH] Fixed evil-surround inconsistency --- spacemacs/packages.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spacemacs/packages.el b/spacemacs/packages.el index e5a40ec89..6946b92b3 100644 --- a/spacemacs/packages.el +++ b/spacemacs/packages.el @@ -705,7 +705,10 @@ determine the state to enable when escaping from the insert state.") (defun spacemacs/init-evil-surround () (use-package evil-surround - :init (global-evil-surround-mode 1))) + :init (progn + (global-evil-surround-mode 1) + (evil-define-key 'visual evil-surround-mode-map "s" 'evil-substitute) + (evil-define-key 'visual evil-surround-mode-map "S" 'evil-surround-region)))) (defun spacemacs/init-evil-terminal-cursor-changer () (unless (display-graphic-p)