Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Drag stuff around in Emacs
Emacs Lisp Cucumber Makefile

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.markdown
drag-stuff.el

README.markdown

Drag Stuff

Drag Stuff is a minor mode for Emacs that makes it possible to drag stuff, such as words, region and lines, around in Emacs.

Installation

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

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

Then require it (require 'drag-stuff)

Usage

To start drag-stuff (drag-stuff-mode t) or M-x drag-stuff-mode

Or if you want it to be done automatically (add-hook 'find-file-hook 'drag-stuff-mode)

Drag line

To drag a line up and down. Put the cursor on that line and press and .

Drag lines

To drag several lines up and down. Select the lines you want to drag and press and .

Drag region

A region can be dragged to the left and right. Select the region you want to drag and press and .

Drag word

To drag a word. Just place the cursor on the word and press and .

Something went wrong with that request. Please try again.