Date: Wed, 5 Apr 2000 11:52:45 +0200 (IST) From: Eli Zaretskii 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.