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: Pascal J. Bourguignon
Subject: Re: how to move the contents of the buffer one line up/down?
Date: Mon, 14 Jul 2008 13:51:01 +0200
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.2 (gnu/linux)

Tamas K Papp <address@hidden> 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>


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

There is no worse tyranny than to force a man to pay for what he does not
want merely because you think it would be good for him. -- Robert Heinlein


reply via email to

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