Skip to content

Instantly share code, notes, and snippets.

@tleen
Created August 8, 2013 13:10
Show Gist options
  • Save tleen/6184436 to your computer and use it in GitHub Desktop.
Save tleen/6184436 to your computer and use it in GitHub Desktop.
Narrowing a region in emacs

Handy emacs command which will limit your operations (and visibility) to a selected region. Good for regional search/replace and the like.

  1. Mark your region
  2. C-x n n / narrow-to-region
  3. Do what you are going to do
  4. C-x n w / widen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment