Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Emacs minor mode to wrap region with tag or punctuations
Emacs Lisp

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
features
README.markdown
wrap-region.el

README.markdown

Wrap Region

wrap-region is a minor mode that wraps text with punctuations. For some tagged markup modes, such as HTML and XML, it wraps a region with a tag instead of a punctuation.

Installation

Manually

First download the wrap-region.el file. If you use git you can fetch it from Github $ git clone git://github.com/rejeep/wrap-region.git ~/.emacs.d/packages/wrap-region

Make sure it's in Emacs load-path (add-to-list 'load-path "~/.emacs.d/packages/wrap-region")

Then require it (require 'wrap-region)

ELPA

wrap-region is in ELPA. If you use ELPA, I recommend you to fetch it from there.

Usage

To start wrap-region (wrap-region-mode t) or M-x wrap-region-mode

Start only in specific mode (add-hook 'ruby-mode-hook 'wrap-region)

Activate wrap-region in all buffers (wrap-region-global-mode t)

Try selecting a region and press on of the punctuation keys, for example ", { or (.

Something went wrong with that request. Please try again.