unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* scroll buffer so that current line becomes first visible line
@ 2009-04-24  2:18 Will Willis
  2009-04-24  2:49 ` Xiao-Yong Jin
  0 siblings, 1 reply; 7+ messages in thread
From: Will Willis @ 2009-04-24  2:18 UTC (permalink / raw)
  To: help-gnu-emacs

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




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-04-24 15:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.5917.1240539505.31690.help-gnu-emacs@gnu.org>
2009-04-24  8:35 ` scroll buffer so that current line becomes first visible line Tim X
2009-04-24 11:17   ` Will Willis
2009-04-24 14:01   ` Drew Adams
2009-04-24 15:28 ` Giorgos Keramidas
2009-04-24  2:18 Will Willis
2009-04-24  2:49 ` Xiao-Yong Jin
2009-04-24  8:38   ` Nikolaj Schumacher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).