How can I make Emacs automatically scroll horizontally?
In Emacs 21 and later, this is on by default: if the variable truncate-lines is non-nil in the current buffer, Emacs automatically scrolls the display horizontally when point moves off the left or right edge of the window. In Emacs 20, use the hscroll-mode. Here is some information from the documentation, available by typing C-h f hscroll-mode RET: Automatically scroll horizontally when the point moves off the left or right edge of the window. • Type M-x hscroll-mode to enable it in the current buffer. • Type M-x hscroll-global-mode to enable it in every buffer. • turn-on-hscroll is useful in mode hooks as in: (add-hook ‘text-mode-hook ‘turn-on-hscroll) • hscroll-margin controls how close the cursor can get to the edge of the window. • hscroll-step-percent controls how far to jump once we decide to do so.