[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to position cursor at top/middle/bottom of the current screen? (
From: |
Stephen Berman |
Subject: |
Re: how to position cursor at top/middle/bottom of the current screen? ( H / M / L in Vi) |
Date: |
Thu, 09 Oct 2008 14:43:23 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
On Wed, 08 Oct 2008 21:55:27 -0400 Allan Gottlieb <gottlieb@nyu.edu> wrote:
> At Wed, 08 Oct 2008 16:54:34 -0700 David Lam <david.k.lam1@gmail.com> wrote:
>
>> hey cool thanks... this mailing list is helpful wooo ->
>>
>> ;; from Emacs Mailing list on 10/8/2008 4pm!!!
>> ;; 'H' in vi
>> (defun move-to-window-first-line ()
>> (interactive)
>> (move-to-window-line 0))
>>
>> ;; 'L' in vi
>> (defun move-to-window-last-line ()
>> (interactive)
>> (move-to-window-line -1))
>
> So these are already bound to keys
>
> C-U 0 M-r move to first line
> C-U - 1 M-r move to first line
>
> When in X these can be shortened to
>
> M-0 M-r
> M-- 1 M-r that one is meta minus, followed by 1, followed by meta r
The latter can be shorter:
M-- M-r
Steve Berman