all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Thorpe <rt@robertthorpeconsulting.com>
To: Jacob Gerlach <jacobgerlach@gmail.com>
Cc: eric@ericabrahamsen.net, help-gnu-emacs@gnu.org
Subject: Re: yank without indentation?
Date: Thu, 05 Jun 2014 23:26:39 +0100	[thread overview]
Message-ID: <87d2envvq8.fsf@robertthorpeconsulting.com> (raw)
In-Reply-To: <CAA6UvuFa_a-yiiOPvcKcsXyq+BOBz63dW-Szf-X8RobwxLRcMA@mail.gmail.com> (message from Jacob Gerlach on Thu, 5 Jun 2014 15:25:05 -0400)

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.  Another possibility is using the region rectange
commands C-x r k and C-x r y.

BR,
Robert Thorpe



  reply	other threads:[~2014-06-05 22:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-05 15:13 yank without indentation? Eric Abrahamsen
2014-06-05 15:18 ` Thorsten Jolitz
2014-06-05 15:31   ` Nicolas Richard
2014-06-06  0:36     ` Eric Abrahamsen
2014-06-05 19:19 ` Grant Rettke
2014-06-05 19:25 ` Jacob Gerlach
2014-06-05 22:26   ` Robert Thorpe [this message]
2014-06-06  6:27     ` Eli Zaretskii
2014-06-05 23:29   ` Drew Adams
2014-06-06  0:40     ` Eric Abrahamsen
2014-06-10  0:00   ` Ken Goldman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d2envvq8.fsf@robertthorpeconsulting.com \
    --to=rt@robertthorpeconsulting.com \
    --cc=eric@ericabrahamsen.net \
    --cc=help-gnu-emacs@gnu.org \
    --cc=jacobgerlach@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.