Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Drag stuff around in Emacs
Emacs Lisp
branch: master

This branch is 62 commits behind rejeep:master

Add support for user-specified modifier keys.

Just set `drag-stuff-modifier' to a symbol or list of symbols
representing the modifier keys you want before loading `drag-stuff'.
latest commit ac95272f74
@mkhl authored
Failed to load latest commit information.


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.


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

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

Then require it (require 'drag-stuff)


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

Or if you want it to be done automatically (drag-stuff-global-mode t)

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.