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

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

Re: scroll buffer so that current line becomes first visible line


From: Will Willis
Subject: Re: scroll buffer so that current line becomes first visible line
Date: Fri, 24 Apr 2009 06:17:23 -0500

Thank you all for the help!!

-Will

On Fri, Apr 24, 2009 at 3:35 AM, Tim X <timx@nospam.dev.null> wrote:
> Will Willis <will.willis@gmail.com> writes:
>
>> Hello, Is there a command/key binding to scroll my buffer so that the
>> current line (the one with my cursor) becomes the first visible line
>> in the window. This is akin to C-l, but instead of centering to the
>> point, sticking the current line at the top of the window. I'm _not_
>> looking to move the point to the first line (M-0 M-r).
>>
>> I'm not sure how this would work for shorter files, say only a few
>> lines long, would a buffer who's length is shorter than the window
>> height be able to scroll?
>>
> maybe of no real help, but....
>
> Emacs 23 (CVS emacs) has re-worked C-l. When you press it the first
> time, it centers (old behavior). Press it again and the line is put  at
> the top of the buffer, hit it a third time and it goes to the
> bottom. I've found it really useful.
>
> It may be possible to retro-fit it to emacs 22?
>
> Tim
>
>
> --
> tcross (at) rapttech dot com dot au
>




reply via email to

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