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

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

scroll buffer so that current line becomes first visible line


From: Will Willis
Subject: scroll buffer so that current line becomes first visible line
Date: Thu, 23 Apr 2009 21:18:20 -0500

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?

Thanks,
Will




reply via email to

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