all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* add an empty line at the begin of a rectangle
@ 2017-12-10 17:59 Rainer Stengele
  2017-12-10 18:36 ` Kaushal Modi
  0 siblings, 1 reply; 2+ messages in thread
From: Rainer Stengele @ 2017-12-10 17:59 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I believe a simple question but I cannot find a solution:

I want to add an empty line at the begin of a rectangle and thus shift the while rest of only that column in the buffer down by 1 row.
Example:

Having:

AAAA 0000
BBBB 1111
CCCC 2222
      3333

I want to get:

      0000
AAAA 1111
BBBB 2222
CCCC 3333

Thank you.
Regards, Rainer




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: add an empty line at the begin of a rectangle
  2017-12-10 17:59 add an empty line at the begin of a rectangle Rainer Stengele
@ 2017-12-10 18:36 ` Kaushal Modi
  0 siblings, 0 replies; 2+ messages in thread
From: Kaushal Modi @ 2017-12-10 18:36 UTC (permalink / raw)
  To: Rainer Stengele; +Cc: help-gnu-emacs

On Sun, Dec 10, 2017 at 1:00 PM Rainer Stengele <rainer.stengele@online.de>
wrote:

> Hi,
>
> I believe a simple question but I cannot find a solution:
>
> I want to add an empty line at the begin of a rectangle and thus shift the
> while rest of only that column in the buffer down by 1 row.
> Example:
>
> Having:
>
> AAAA 0000
> BBBB 1111
> CCCC 2222
>       3333
>
> I want to get:
>
>       0000
> AAAA 1111
> BBBB 2222
> CCCC 3333
>

I believe you simply

1. Select the rectangle:
AAAA
BBBB
CCCC
2. Cut the rectangle: C-x r k
3. Move point to the starting of the line containing "1111".
4. Paste the rectangle back: C-x r y



-- 

Kaushal Modi


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-10 18:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-10 17:59 add an empty line at the begin of a rectangle Rainer Stengele
2017-12-10 18:36 ` Kaushal Modi

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.