From 3a829ce89e7b347f317d0263794e93c02bdeb995 Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Fri, 25 Sep 2015 00:26:37 -0400 Subject: [PATCH] core: fix key bindings in visual state for evilified buffers --- core/core-evilify-keymap.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/core-evilify-keymap.el b/core/core-evilify-keymap.el index 86665d004..487494ed1 100644 --- a/core/core-evilify-keymap.el +++ b/core/core-evilify-keymap.el @@ -182,12 +182,13 @@ Each pair KEYn FUNCTIONn is defined in MAP after the evilification of it." (defun spacemacs//evilify-wrapper (map map-symbol map-value event evil-value evil-event) "Define a wrapper for the passed event." - (eval `(defun ,(spacemacs//evilify-wrapper-name + (eval `(evil-define-command ,(spacemacs//evilify-wrapper-name map-symbol map-value event evil-value evil-event) () ,(spacemacs//evilify-wrapper-documentation map-value event evil-value evil-event) + :keep-visual t (interactive) - (if (eq 'evilified evil-state) + (if (memq evil-state '(evilified visual)) ;; evilified state ,(if evil-value (spacemacs//evilify-call evil-value event)