Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I make Emacs automatically scroll horizontally?

0
Posted

How can I make Emacs automatically scroll horizontally?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123