help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: yank without indentation?


From: Robert Thorpe
Subject: Re: yank without indentation?
Date: Thu, 05 Jun 2014 23:26:39 +0100

Jacob Gerlach <address@hidden> writes:

> I run in to this problem sometimes when yanking a piece of code with
> certain indentation into a new place where it should have different (more
> or less) indentation. My solution is:
>
> C-y
> C-x C-x (exchange-point-and-mark) to re-highlight the yanked text
> <TAB> to properly indent it for the new contexxt

That's what I do.  Another possibility is using the region rectange
commands C-x r k and C-x r y.

BR,
Robert Thorpe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]