Alex Rivera | Logout

Emacs Shift-Tab to left shift the block

Asked 2010-02-12T05:59:35.083
34

How can I get Emacs to ShiftTab to move the selected text to the left by 4 spaces?

Edit
Report

1 Answer

57

To do that, I use the command indent-rigidly, bound to C-x TAB. Give it the argument -4 to move the selected region to the left by four spaces: C-u -4 C-x TAB.

http://www.gnu.org/s/emacs/manual/html_node/elisp/Region-Indent.html

answered 2010-02-12T15:38:40.543

Your Answer