GNU Emacs Manual. Node: Horizontal Scrolling

PREVScrolling UPDisplay NEXTFollow Mode

9.2: Horizontal Scrolling

Horizontal scrolling means shifting all the lines sideways within a window---so that some of the text near the left margin is not displayed at all.

C-x <

Scroll text in current window to the left (scroll-left).

C-x > Scroll to the right (scroll-right).

When a window has been scrolled horizontally, text lines are truncated rather than continued (see Continuation Lines), with a `$' appearing in the first column when there is text truncated to the left, and in the last column when there is text truncated to the right.

The command C-x < (scroll-left) scrolls the selected window to the left by n columns with argument n. This moves part of the beginning of each line off the left edge of the window. With no argument, it scrolls by almost the full width of the window (two columns less, to be precise).

C-x > (scroll-right) scrolls similarly to the right. The window cannot be scrolled any farther to the right once it is displayed normally (with each line starting at the window's left margin); attempting to do so has no effect. This means that you don't have to calculate the argument precisely for C-x >; any sufficiently large argument will restore the normal display.

You can request automatic horizontal scrolling by enabling Hscroll mode. When this mode is enabled, Emacs scrolls a window horizontally whenever that is necessary to keep point visible and not too far from the left or right edge. The command to enable or disable this mode is M-x hscroll-mode.

PREVScrolling UPDisplay NEXTFollow Mode