Re: move-lines.el: a lazy programmer's package to move lines around

Pedro Andres Aranda Gutierrez <[email protected]>
Newsgroups gmane.emacs.devel
Message-ID <[email protected]>
Thanks for the pointer… I’ll study it.
/PA
Enviado desde mi iPhone

> El 1 sept 2026, a las 19:24, Juri Linkov <[email protected]> escribió:
> 
> 
>> 
>> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.