Permalink
Browse files

Add keybinding for string-rectangle (insert/overwrite rect with string).

  • Loading branch information...
1 parent 68cb6a3 commit af728fd7dde0dd05ea731d6217d6f33bd32af132 @jpr5 jpr5 committed Nov 8, 2010
Showing with 2 additions and 0 deletions.
  1. +1 −0 .emacs
  2. +1 −0 .emacs.d/keys.el
View
@@ -7,6 +7,7 @@
;;; C-x r k - cut rectangle (set-mark first) [remove columns from lines]
;;; C-x r o - insert rectangle (set-mark first) [add columns to lines]
;;; C-x r y - yank rectangle (at cursor h-coord)
+;;; C-x r i - string rectangle (replace rect with string; prefix if point at beg-of-line)
;;; C-x n n - narrow view
;;; C-x n w - widen (un-narrow) view
;;; C-x RET f - choose coding system ("unix" == dos2unix)
View
@@ -7,6 +7,7 @@
(global-set-key (kbd "C-c C-c") 'eval-buffer)
(global-set-key (kbd "C-x C-x") 'end-of-buffer)
(global-set-key (kbd "C-x C-p") 'beginning-of-buffer)
+(global-set-key (kbd "C-x r i") 'string-rectangle)
(global-set-key (kbd "M-r") 'revert-buffer)
(global-set-key (kbd "M-g") 'goto-line)
(global-set-key (kbd "C-M-\\") 'indent-region)

0 comments on commit af728fd

Please sign in to comment.