delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/07/13:15:00

Date: Wed, 5 Apr 2000 11:52:45 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: dennis51 AT my-deja DOT com
cc: djgpp AT delorie DOT com
Subject: Re: Emacs help (was Re: DJGPP for Linux?)
In-Reply-To: <8cebbj$ifi$1@nnrp1.deja.com>
Message-ID: <Pine.SUN.3.91.1000405115154.20661T-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019