Usual, then reindents by the same amount all the lines in the ![]() TAB with a numeric argument reindents the current line as Indentation of its first line, move point to that first line and typeĬ-u TAB. If you like the relative indentation within a grouping but not the To correct the overall indentation as well, type TAB ![]() Indent-pp-sexp in Lisp mode, c-indent-exp in C mode,Įtc. The function thatĬ-M-q runs depends on the major mode it is Indentation of the line where the grouping starts). Grouping, without affecting its overall indentation (i.e., the This changes the relative indentation within the Position point before the beginning of the grouping and typeĬ-M-q. To reindent the contents of a single parenthetical grouping, Lines that start inside comments and strings. Shift all the lines in the region rigidly sideways, but do not alter ![]() Shift an entire parenthetical grouping rigidly sideways so that its Reindent all the lines within one parenthetical grouping. In addition, Emacs provides the following commands for indenting Region is non-empty, TAB indents every line in the region.Īlternatively, the command C-M-\ ( indent-region) indentsĮvery line in the region, whether or not the mark is active One way to do this is to use the mark when the mark is active and the Sometimes, you may want to reindent several lines of code at a time. Next: Customizing Lisp Indentation, Previous: Basic Program Indentation Commands, Up: Indentation for Programs 26.3.2 Indenting Several Lines
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |