In my Emacs, space key can indent correctly 1 line. If I select several lines, and press space key, the indenting does not work.
By following this link, I try C-M-\ or C-M-q, but C-M deletes directly the whole block selected.
Here is my .emacs, could anyone help?
You can select multiple rows (select the first row in the far left and hold down shift and select the last row) and then use the Indent/Outdent feature to change them.
You can select all and use SHIFT + TAB to unindent.
Put the cursor anywhere in the first line. Press V then jj to visually select the three lines. Press > to indent (shift text one ' shiftwidth ' to the right), or press < to shift left. Press . to repeat the indent, or u to undo if you have shifted too far.
Select multiply lines, then type C-u 8 C-x Tab, it will indent the region by 8 spaces.
C-u -4 C-x Tab will un-indent by 4 spaces
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With