On Fri, 16 Nov 2007 10:27:13 -0200 "Rodrigo Canellas" rodrigo.canellas@gmail.com wrote:
'emacs' indents the lines inside the selected block. For example:
int f() { int j = 3; int r =-9;
int y = j * r; return y; }
Suppose indentation length is 2, that command in 'emacs' would do:
int f() { int j = 3; int r =-9;
int y = j * r;
return y; }
Try the 'Smart line indent' keybinding command. You will need to define a shortcut for it first (I use Ctrl-Alt-I). This will indent all selected lines to the same level as the preceding line. Then you can indent the block manually using ctrl-i or tab (or add shift for unindent).
Regards, Nick