Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I already use scroll-conservatively to smooth the vertical scrolling behaviour of Emacs. The horizontal scrolling is still pretty bad. The screen jumps by many columns, and I often lose track of where I am.

Is it possible to make this more smoothly?

share|improve this question
    
Horizontal scrolling? You are not using visual-line-mode? –  choroba Aug 15 '13 at 8:31
    
Oh no, I dislike that mode. :) –  Arne Aug 15 '13 at 11:16
add comment

1 Answer

up vote 1 down vote accepted

There appears no direct equivalent of scroll-conservatively for horizontal scrolling, but customizing hscroll-step (and perhaps also hscroll-margin) should produce something at least close to the same behavior. From the manual:

The variable hscroll-margin controls how close point can get to the window's left and right edges before automatic scrolling occurs. It is measured in columns. For example, if the value is 5, then moving point within 5 columns of an edge causes horizontal scrolling away from that edge.

The variable hscroll-step determines how many columns to scroll the window when point gets too close to the edge. Zero, the default value, means to center point horizontally within the window. A positive integer value specifies the number of columns to scroll by. A floating-point number specifies the fraction of the window's width to scroll by.

share|improve this answer
    
Works perfectly. –  Arne Aug 21 '13 at 14:25
    
@Arne Excellent! Glad to hear it. –  Aaron Miller Aug 21 '13 at 14:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.