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

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

Re: yank without indentation?


From: Eli Zaretskii
Subject: Re: yank without indentation?
Date: Fri, 06 Jun 2014 09:27:45 +0300

> From: Robert Thorpe <rt@robertthorpeconsulting.com>
> Date: Thu, 05 Jun 2014 23:26:39 +0100
> Cc: eric@ericabrahamsen.net, help-gnu-emacs@gnu.org
> 
> Jacob Gerlach <jacobgerlach@gmail.com> 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.

This is shorter: "C-y C-M-\".

And if you need to change the indentation, "C-y C-u 2 C-x TAB" (in
this case will increase indentation by 2 columns, but the number 2 is
just an example).



reply via email to

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