From 29ecf79c2ebe4d690196a03f119a4f643882de62 Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Sun, 8 Mar 2015 22:10:15 -0400 Subject: [PATCH] Remove C-p and C-P in paste micro-state, use `.` instead --- doc/DOCUMENTATION.md | 5 +---- spacemacs/packages.el | 7 ++----- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/doc/DOCUMENTATION.md b/doc/DOCUMENTATION.md index fd10c64f6..2ab78fb37 100644 --- a/doc/DOCUMENTATION.md +++ b/doc/DOCUMENTATION.md @@ -1662,12 +1662,9 @@ Key Binding | Description p or P | paste the text before or after point and initiate the `paste` micro-state p | in micro-state: replace paste text with the previously copied one P | in micro-state: replace paste text with the next copied one -C-p | in micro-state: paste the last paste text after point -C-P | in micro-state: paste the last paste text before point +. | paste the same text and leave the micro-state Any other key | leave the micro-state -**Tips** If you want to paste several the same text you can use . - ### Text manipulation commands Text related commands (start with `x`): diff --git a/spacemacs/packages.el b/spacemacs/packages.el index 6d7169d27..80311543a 100644 --- a/spacemacs/packages.el +++ b/spacemacs/packages.el @@ -682,17 +682,14 @@ which require an initialization must be listed explicitly in the list.") (defun spacemacs//paste-ms-doc () "The documentation for the paste micro-state." (format (concat "[%s/%s] 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.") + "next copied text, [.] to paste the same text") (length kill-ring-yank-pointer) (length kill-ring))) (spacemacs|define-micro-state paste :doc (spacemacs//paste-ms-doc) :use-minibuffer t :bindings ("p" evil-paste-pop) - ("P" evil-paste-pop-next) - ("C-p" evil-paste-after) - ("C-P" evil-paste-before)) + ("P" evil-paste-pop-next)) ;; define text objects (defmacro spacemacs|define-and-bind-text-object (key name start-regex end-regex)