Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/xuchunyang/swap-regions.el
- Owner: xuchunyang
- License: gpl-3.0
- Created: 2016-03-30T07:05:24.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-15T13:46:36.000Z (over 6 years ago)
- Last Synced: 2024-10-16T01:45:55.400Z (3 months ago)
- Language: Emacs Lisp
- Homepage:
- Size: 249 KB
- Stars: 6
- Watchers: 3
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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).