[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: scroll buffer so that current line becomes first visible line
From: |
Drew Adams |
Subject: |
RE: scroll buffer so that current line becomes first visible line |
Date: |
Fri, 24 Apr 2009 07:01:55 -0700 |
> 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?
Yes, this is originally from my code, and it is available for Emacs 22,21, 20
here: http://www.emacswiki.org/emacs/misc-cmds.el.
So, to move the current line to the top, use C-l C-l.
To move it to the bottom, use C-l C-l C-l.