help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to achieve desired automatic scrolling behavior


From: Frank Fischer
Subject: Re: How to achieve desired automatic scrolling behavior
Date: Wed, 29 May 2013 17:55:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> Date: Wed, 29 May 2013 09:57:32 -0400
>> From: Barry OReilly <gundaetiapo@gmail.com>
>> 
>> One would think scroll-conservatively==1 would fit the bill, but it doesn't
>> when lines wrap. If I arrow down (actually: Evil's j command) I'm fine
>> until I hit a line that wraps visually, then I get an undesired recenter.
>
> I don't understand why: did you disable visual-line-mode (it is ON by
> default)?  Or maybe Evil does something with the related commands and
> features?  Because by default, pressing the down arrow key once moves
> 1 _screen_ line down, which still fits the scroll-conservatively==1
> condition, and should give you the behavior you want.

By default, Evil's "j" command moves by "physical" lines, not be screen
lines even if visual-line-mode is enabled. Please use "gj" instead (or
rebind "j", e.g. (define-key evil-motion-mode-map "j" "gj")).

Best regards,
Frank




reply via email to

[Prev in Thread] Current Thread [Next in Thread]