Re: move-lines.el: a lazy programmer's package to move lines around
Juri Linkov <[email protected]>
| Newsgroups | gmane.emacs.devel |
|---|---|
| Organization | LINKOV.NET |
| Message-ID | <[email protected]> |
>> Or you can directly use 'set-transient-map' like in 'indent-rigidly'. >> IOW, we need to generalize 'indent-rigidly' that moves the selected text >> only horizontally to a new command that will move the selected region >> in any direction in which the cursor moves until exiting the transient mode. > > Thanks for the pointer… I’ll study it. You could even try to generalize is so that any cursor motion would move the selected region with it, e.g. by activating 'post-command-hook'. This would work like 'mouse-drag-and-drop-region' but without its complexity, by just moving the region while moving point. This will be very useful.