* Indent region by one tabstop
@ 2012-04-19 22:00 BDB
2012-04-19 23:19 ` Drew Adams
` (4 more replies)
0 siblings, 5 replies; 10+ messages in thread
From: BDB @ 2012-04-19 22:00 UTC (permalink / raw)
To: help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Indent region by one tabstop
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>
` (3 subsequent siblings)
4 siblings, 0 replies; 10+ messages in thread
From: Drew Adams @ 2012-04-19 23:19 UTC (permalink / raw)
To: 'BDB', help-gnu-emacs
> 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.
Use `indent-rigidly' with the value of `tab-width'?
(defun my-indent-a-tab-width (start end)
(interactive "r")
(indent-rigidly start end tab-width))
^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <mailman.262.1334877565.751.help-gnu-emacs@gnu.org>]
* Re: Indent region by one tabstop
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 2:09 ` Jambunathan K
2012-04-20 3:07 ` Teemu Likonen
2012-04-20 22:48 ` Mark Skilbeck
4 siblings, 0 replies; 10+ messages in thread
From: Jambunathan K @ 2012-04-20 2:09 UTC (permalink / raw)
To: BDB; +Cc: help-gnu-emacs
BDB <noemail@yahoo.com> writes:
> 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 can also try
C-h K C-x r o
C-h K C-x r k
Btw, it takes some time to get used to rectangle editing.
--
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Indent region by one tabstop
2012-04-19 22:00 Indent region by one tabstop BDB
` (2 preceding siblings ...)
2012-04-20 2:09 ` Jambunathan K
@ 2012-04-20 3:07 ` Teemu Likonen
2012-04-21 6:16 ` Andreas Röhler
2012-04-20 22:48 ` Mark Skilbeck
4 siblings, 1 reply; 10+ messages in thread
From: Teemu Likonen @ 2012-04-20 3:07 UTC (permalink / raw)
To: BDB; +Cc: help-gnu-emacs
* BDB [2012-04-19 22:00:56 +0000] 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.
Here's my proposed improvement:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8196
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Indent region by one tabstop
2012-04-19 22:00 Indent region by one tabstop BDB
` (3 preceding siblings ...)
2012-04-20 3:07 ` Teemu Likonen
@ 2012-04-20 22:48 ` Mark Skilbeck
4 siblings, 0 replies; 10+ messages in thread
From: Mark Skilbeck @ 2012-04-20 22:48 UTC (permalink / raw)
To: BDB; +Cc: help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2012-04-21 7:30 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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.