Mail Archives: djgpp/2000/04/07/13:15:00
On Wed, 5 Apr 2000 dennis51 AT my-deja DOT com wrote:
> Please tell me how to solve the following problem with emacs:
Questions about Emacs usage that are unrelated to DJGPP should be
posted to the gnu.emacs.help or comp.emacs news groups.
> If I am using emacs on a 500 line file, and line 250 is in the
> center of the screen, and the curser is on line 250, and I press
> Page Up and then Page Down, I see that line 250 is again at the
> center of the screen, but the curser is now near the top of the
> screen.
>
> What I want, is that after pressing Page Up n times followed by
> pressing Page Down n times, the screen and curser be in
> exactly the same position as before.
Put the following in your .emacs file:
(setq scroll-preserve-screen-position t)
This variable is described in the on-line manual under "Scrolling".
It is also easy to find using the "M-x apropos" command.
- Raw text -