diff options
author | Reuben Thomas <rrt@sc3d.org> | 2012-07-14 10:19:07 +0800 |
---|---|---|
committer | Chong Yidong <cyd@gnu.org> | 2012-07-14 10:19:07 +0800 |
commit | be755c79bdba0a187af6541b0fea7d55d5b23754 (patch) | |
tree | cb266a82ec694a44d3714c59e7b122d640fae16b /lisp/bindings.el | |
parent | ed9265fc7dc83341b2a807f114dcdd4d170d7e0e (diff) | |
download | emacs-be755c79bdba0a187af6541b0fea7d55d5b23754.tar.gz |
* rect.el (copy-rectangle-as-kill): New command.
* lisp/rect.el, lisp/register.el: Move bindings to bindings.el.
* lisp/bindings.el: Consolidate ctl-x-r-map bindings. Bind
copy-rectangle-as-kill to C-x r w.
Fixes: debbugs:739
Diffstat (limited to 'lisp/bindings.el')
-rw-r--r-- | lisp/bindings.el | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/lisp/bindings.el b/lisp/bindings.el index 96700c6dc26..e0555a17b15 100644 --- a/lisp/bindings.el +++ b/lisp/bindings.el @@ -1183,7 +1183,30 @@ if `inhibit-field-text-motion' is non-nil." (define-key ctl-x-5-map "m" 'compose-mail-other-frame) -(defvar ctl-x-r-map (make-sparse-keymap) +(defvar ctl-x-r-map + (let ((map (make-sparse-keymap))) + (define-key map "c" 'clear-rectangle) + (define-key map "k" 'kill-rectangle) + (define-key map "d" 'delete-rectangle) + (define-key map "y" 'yank-rectangle) + (define-key map "o" 'open-rectangle) + (define-key map "t" 'string-rectangle) + (define-key map "N" 'rectangle-number-lines) + (define-key map "\M-w" 'copy-rectangle-as-kill) + (define-key map "\C-@" 'point-to-register) + (define-key map [?\C-\ ] 'point-to-register) + (define-key map " " 'point-to-register) + (define-key map "j" 'jump-to-register) + (define-key map "s" 'copy-to-register) + (define-key map "x" 'copy-to-register) + (define-key map "i" 'insert-register) + (define-key map "g" 'insert-register) + (define-key map "r" 'copy-rectangle-to-register) + (define-key map "n" 'number-to-register) + (define-key map "+" 'increment-register) + (define-key map "w" 'window-configuration-to-register) + (define-key map "f" 'frame-configuration-to-register) + map) "Keymap for subcommands of C-x r.") (define-key ctl-x-map "r" ctl-x-r-map) |