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]> |
> 3.- repeat-maps: Never used them, but happy to learn how to use them :-) > > My main concern is that I don't know how to write one for the situation: > > Currently, I'm using C-S-up and C-S-down and I think I would be able to > write a repeat-map for this. However, suppose user uses C-S-up and > C-S-down to mark paragraphs and wants to remap move-lines-up and > move-lines-down. Is there a way to reflect the new bindings in a repeat map? 'repeat-mode' is based on command names, so no problem to remap commands to other keys. 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.