Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xuchunyang/swap-regions.el

Swap text in two regions
https://github.com/xuchunyang/swap-regions.el

Last synced: about 1 month ago
JSON representation

Swap text in two regions

Awesome Lists containing this project

README

        

# swap-regions.el [![MELPA](http://melpa.org/packages/swap-regions-badge.svg)](http://melpa.org/#/swap-regions) [![Build Status](https://travis-ci.org/xuchunyang/swap-regions.el.svg?branch=master)](https://travis-ci.org/xuchunyang/swap-regions.el)

You can swap text in two regions using

M-x swap-regions [select the first region] C-M-c [select the second region] C-M-c

Note that C-M-c runs `exit-recursive-edit` which is bound
by default in vanilla Emacs. And while you are selecting regions, you
can run any Emacs command thanks to [Recursive
Editing](https://www.gnu.org/software/emacs/manual/html_node/elisp/Recursive-Editing.html).