From 68f5e704711726b8e5f015ccc191ba6aa0bbbae8 Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Sat, 7 Mar 2015 23:56:17 -0500 Subject: [PATCH] Tweak the paste micro-state to allow to repeat the last pasted text --- spacemacs/packages.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/spacemacs/packages.el b/spacemacs/packages.el index b43a6d9c7..2805f3016 100644 --- a/spacemacs/packages.el +++ b/spacemacs/packages.el @@ -680,10 +680,15 @@ which require an initialization must be listed explicitly in the list.") "Initate the paste micro-state after the execution of evil-visual-paste" (spacemacs/paste-micro-state)) (spacemacs|define-micro-state paste - :doc "Type [p] or [P] to paste again and ycle between previous or next copied text" + :doc (concat "Type [p] or [P] to paste the previous or " + "next copied text, [C-p] or [C-P] to paste the same text " + "before of after the point.") + :use-minibuffer t :bindings ("p" evil-paste-pop) - ("P" evil-paste-pop-next)) + ("P" evil-paste-pop-next) + ("C-p" evil-paste-after) + ("C-P" evil-paste-before)) ;; define text objects (defmacro spacemacs|define-and-bind-text-object (key name start-regex end-regex)