From b0fda84a828afec2855726feae54db036a661e64 Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Sat, 7 Mar 2015 17:57:01 -0500 Subject: [PATCH] Add advice for evil-visual-paste to initiate the paste micro-state Also rework the documentation string --- spacemacs/packages.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spacemacs/packages.el b/spacemacs/packages.el index 920a3f7fb..b43a6d9c7 100644 --- a/spacemacs/packages.el +++ b/spacemacs/packages.el @@ -676,8 +676,11 @@ which require an initialization must be listed explicitly in the list.") (defadvice evil-paste-after (after spacemacs/evil-paste-after activate) "Initate the paste micro-state after the execution of evil-paste-after" (spacemacs/paste-micro-state)) + (defadvice evil-visual-paste (after spacemacs/evil-visual-paste activate) + "Initate the paste micro-state after the execution of evil-visual-paste" + (spacemacs/paste-micro-state)) (spacemacs|define-micro-state paste - :doc "keep pressing [p] or [P] to cycle between previous or next yanked text" + :doc "Type [p] or [P] to paste again and ycle between previous or next copied text" :bindings ("p" evil-paste-pop) ("P" evil-paste-pop-next))