Skip to content

Commit

Permalink
Remap visual state s to evil-surround
Browse files Browse the repository at this point in the history
After change made in emacs-evil/evil-surround#48
  • Loading branch information
syl20bnr committed Dec 17, 2014
1 parent 9ec8038 commit a37e22a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spacemacs/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,13 @@ 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)
;; `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))))

(defun spacemacs/init-evil-terminal-cursor-changer ()
(unless (display-graphic-p)
Expand Down

0 comments on commit a37e22a

Please sign in to comment.