From 4e7e288fa4c440f5d116cace293b06fc96a97668 Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Tue, 21 Apr 2015 23:31:55 -0400 Subject: [PATCH] Move `SPC x y` and `SPC x p` to `SPC b Y` and `SPC b P` --- doc/DOCUMENTATION.md | 4 ++-- spacemacs/keybindings.el | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/DOCUMENTATION.md b/doc/DOCUMENTATION.md index c7f81b7f6..6f80c734c 100644 --- a/doc/DOCUMENTATION.md +++ b/doc/DOCUMENTATION.md @@ -1432,9 +1432,11 @@ Key Binding | Description SPC b M | swap windows using [ace-swap-window][ace-window] SPC b n | switch to next buffer SPC b p | switch to previous buffer +SPC b P | copy clipboard and replace buffer (useful when pasting from a browser) SPC b r | rename the current buffer SPC b R | revert the current buffer (reload from disk) SPC b w | toggle read-only (writable state) +SPC b Y | copy whole buffer to clipboard (useful when copying to a browser) z f | Make current function or comments visible in buffer as much as possible #### Buffers manipulation manipulation micro-state @@ -1885,8 +1887,6 @@ Text related commands (start with `x`): SPC x t l | swap (transpose) the current line with the previous one SPC x w c | count the number of words in the selection region SPC x w C | count the number of occurrences per word in the select region -SPC x y | copy whole buffer to clipboard (useful when copying to a browser) -SPC x p | copy clipboard and replace buffer (useful when pasting from a browser) ### Smartparens Strict mode diff --git a/spacemacs/keybindings.el b/spacemacs/keybindings.el index f4af93711..601998520 100644 --- a/spacemacs/keybindings.el +++ b/spacemacs/keybindings.el @@ -64,8 +64,10 @@ "b C-k" 'kill-matching-buffers-rudely "bn" 'switch-to-next-buffer "bp" 'switch-to-prev-buffer + "bP" 'copy-clipboard-to-whole-buffer "bR" 'spacemacs/safe-revert-buffer "br" 'rename-current-buffer-file + "bY" 'copy-whole-buffer-to-clipboard "bw" 'toggle-read-only) ;; Cycling settings ----------------------------------------------------------- (evil-leader/set-key "Tn" 'spacemacs/cycle-spacemacs-theme) @@ -292,13 +294,11 @@ Ensure that helm is required before calling FUNC." ;; text ----------------------------------------------------------------------- (evil-leader/set-key "xdw" 'delete-trailing-whitespace - "xp" 'copy-clipboard-to-whole-buffer "xtc" 'transpose-chars "xtl" 'transpose-lines "xtw" 'transpose-words "xU" 'upcase-region "xu" 'downcase-region - "xy" 'copy-whole-buffer-to-clipboard "xwC" 'count-words-analysis "xwc" 'count-words-region) ;; google translate -----------------------------------------------------------