Move current line or region.
Clone or download this repository (path of the folder is the <path-to-move-text> used below).
In your ~/.emacs, add the following two lines:
(add-to-list 'load-path "<path-to-move-text>") ; add move-text to your load-path
(require 'move-text)Bind your favorite key to functions:
| Function | Description |
|---|---|
| move-text-up | Move current line or region up |
| move-text-down | Move current line or region down |