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

[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: David Lam
Subject: Re: how to position cursor at top/middle/bottom of the current screen? ( H / M / L in Vi)
Date: Sun, 12 Oct 2008 20:03:42 -0700

whoa wait thats tons easier

i.e.

M-0 M-r  =  H
M-- M-r   =  L

On Thu, Oct 9, 2008 at 5:43 AM, Stephen Berman <stephen.berman@gmx.net> wrote:
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





reply via email to

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