unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Mark Skilbeck <m@iammark.us>
To: BDB <noemail@yahoo.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Indent region by one tabstop
Date: Fri, 20 Apr 2012 23:48:37 +0100	[thread overview]
Message-ID: <20120420224837.GA3549@mark-laptop> (raw)
In-Reply-To: <slrnjp12os.t3f.noemail@us.news.astraweb.com>

On Thu, Apr 19, 2012 at 10:00:56PM +0000, BDB wrote:
> Is there a way to make emacs move a region of code left or right by one
> tabstop?  I don't want to use emacs' built in indentation because it's
> not indenting the lines where I want them to be.

You might want to take a look at replace-rectangle. For example, mark a region
from in the first column of the first lane to the first column of the last line.
Then, using replace-rectangle, insert a tab.

- mgsk.



      parent reply	other threads:[~2012-04-20 22:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-19 22:00 Indent region by one tabstop BDB
2012-04-19 23:19 ` Drew Adams
     [not found] ` <mailman.262.1334877565.751.help-gnu-emacs@gnu.org>
2012-04-20  0:04   ` BDB
2012-04-20  2:05     ` Drew Adams
2012-04-20  2:09 ` Jambunathan K
2012-04-20  3:07 ` Teemu Likonen
2012-04-21  6:16   ` Andreas Röhler
2012-04-21  7:01     ` Teemu Likonen
2012-04-21  7:30       ` Andreas Röhler
2012-04-20 22:48 ` Mark Skilbeck [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=20120420224837.GA3549@mark-laptop \
    --to=m@iammark.us \
    --cc=help-gnu-emacs@gnu.org \
    --cc=noemail@yahoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).