delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/06/17:22:28

Date: Thu, 6 Apr 2000 22:19:09 +0500
Message-Id: <200004061719.WAA02943@midpec.com>
From: Prashant TR <tr AT midpec DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <8cebbj$ifi$1@nnrp1.deja.com> (dennis51@my-deja.com)
Subject: Re: Emacs help (was Re: DJGPP for Linux?)
References: <38D40C75 DOT 84380B1B AT bigfoot DOT com> <Pine DOT SUN DOT 3 DOT 91 DOT 1000319114736 DOT 13844T-100000 AT is> <8cebbj$ifi$1 AT nnrp1 DOT deja DOT com>
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

> Please tell me how to solve the following problem with emacs:
> 
> 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.  (I am willing to live
> with this NOT being the case if I press Page Up (or Page Down) so
> many times that I "go off the end of the file".)
> 
> Does anyone know how I can get this to work the way I want?

Ok. A much simpler way than pressing PgUp back n times. When you're at your
250th line, press C-@ (Mark beginning of block). Now go *wherever* you want.
When you want to get back to that place, just type C-x-C-x and you'll get back
to the original position. Ain't EMACS cool?

- Raw text -


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