Mail Archives: djgpp/2000/04/06/17:22:28
> 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 -