Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit af728fd7dde0dd05ea731d6217d6f33bd32af132 1 parent 68cb6a3
Jordan Ritter authored November 08, 2010

Showing 2 changed files with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 1  .emacs
  2. 1  .emacs.d/keys.el
1  .emacs
@@ -7,6 +7,7 @@
7 7
 ;;; C-x r k       - cut rectangle (set-mark first) [remove columns from lines]
8 8
 ;;; C-x r o       - insert rectangle (set-mark first) [add columns to lines]
9 9
 ;;; C-x r y       - yank rectangle (at cursor h-coord)
  10
+;;; C-x r i       - string rectangle (replace rect with string; prefix if point at beg-of-line)
10 11
 ;;; C-x n n       - narrow view
11 12
 ;;; C-x n w       - widen (un-narrow) view
12 13
 ;;; C-x RET f     - choose coding system ("unix" == dos2unix)
1  .emacs.d/keys.el
@@ -7,6 +7,7 @@
7 7
 (global-set-key (kbd "C-c C-c")     'eval-buffer)
8 8
 (global-set-key (kbd "C-x C-x")     'end-of-buffer)
9 9
 (global-set-key (kbd "C-x C-p")     'beginning-of-buffer)
  10
+(global-set-key (kbd "C-x r i")     'string-rectangle)
10 11
 (global-set-key (kbd "M-r")         'revert-buffer)
11 12
 (global-set-key (kbd "M-g")         'goto-line)
12 13
 (global-set-key (kbd "C-M-\\")      'indent-region)

0 notes on commit af728fd

Please sign in to comment.
Something went wrong with that request. Please try again.