GNU Emacs Manual - Continuation Lines

Go to the first, previous, next, last section, table of contents.

## Continuation Lines

If you add too many characters to one line without breaking it with `RET`, the line will grow to occupy two (or more) lines on the screen, with a ``\'` at the extreme right margin of all but the last of them. The ``\'` says that the following screen line is not really a distinct line in the text, but just the continuation of a line too long to fit the screen. Continuation is also called line wrapping.

Sometimes it is nice to have Emacs insert newlines automatically when a line gets too long. Continuation on the screen does not do that. Use Auto Fill mode (see section Filling Text) if that's what you want.

As an alternative to continuation, Emacs can display long lines by truncation. This means that all the characters that do not fit in the width of the screen or window do not appear at all. They remain in the buffer, temporarily invisible. ``$'` is used in the last column instead of ``\'` to inform you that truncation is in effect.

Truncation instead of continuation happens whenever horizontal scrolling is in use, and optionally in all side-by-side windows (see section Multiple Windows). You can enable truncation for a particular buffer by setting the variable `truncate-lines` to non-`nil` in that buffer. (See section Variables.) Altering the value of `truncate-lines` makes it local to the current buffer; until that time, the default value is in effect. The default is initially `nil`. See section Local Variables.

See section Variables Controlling Display, for additional variables that affect how text is displayed.

Go to the first, previous, next, last section, table of contents.