Skip to content

Rectangle selection and editing operations for Emacs. Akin to Vim's "Visual-Block Mode".

Notifications You must be signed in to change notification settings

gbrener/rect-select

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

rect-select

Rectangle selection and editing operations for Emacs v23. Akin to Vim's "Visual-Block Mode". This was written before Emacs v24.4, which ended up adopting CUA-mode's rectangle-mark mode.

Motivation

  • Marking a rectangular region visually before operating on it
  • Typing in parallel
  • Deleting in parallel
  • Copying and pasting in parallel

Installation

  1. Place rectangle-select.el in your home directory, or any other directory on your Emacs load-path. To extend your load-path, add (add-to-list 'load-path "path/to/rectangle-select.el") to your .emacs file.
  2. Add (require 'rectangle-select) to your .emacs file after rectangle-select.el is in your load-path.
  3. Restart Emacs, or do an M-x eval-buffer while in your .emacs buffer.

Usage

To enter rectangle-select mode:

C-x <Spacebar> - As you move your cursor, the rectangular region will appear.

While in rectangle-select mode:

Type! - it will be in parallel.

Delete! - it too, will be in parallel.

C-w, C-y, etc..

Customize

M-x customize - search for "rect-select"

About

Rectangle selection and editing operations for Emacs. Akin to Vim's "Visual-Block Mode".

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published