help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to move the contents of the buffer one line up/down?


From: Tamas K Papp
Subject: Re: how to move the contents of the buffer one line up/down?
Date: 14 Jul 2008 11:55:44 GMT
User-agent: Pan/0.132 (Waxed in Black)

On Mon, 14 Jul 2008 13:51:01 +0200, Pascal J. Bourguignon wrote:

> Tamas K Papp <tkpapp@gmail.com> writes:
> 
>> Hi,
>>
>> I know that I can "center" my cursor with C-l.  But sometimes it would
>> be really useful to do the following: have the contents of the buffer
>> move up or down a couple of lines, with the cursor staying in the same
>> place.
>>
>> What function would do that?  Then I could bind it to a key.
> 
> scroll-up and scroll-down
> 
> C-u 3 M-x scroll-up RET
> 
> C-u 6 M-x scroll-down RET
> 
> Also, since they're often bound to <next> and <prior> you can just type:
> 
> C-3 <prior>  or C-6 <next>

Thanks Peter and Pascal!

Sorry for my ignorance, but on most standard PC keyboards, <prior> and 
<next> would be PgUp and PgDown?

Tamas


reply via email to

[Prev in Thread] Current Thread [Next in Thread]