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: Allan Gottlieb
Subject: Re: how to position cursor at top/middle/bottom of the current screen? ( H / M / L in Vi)
Date: Wed, 08 Oct 2008 21:55:27 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

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

allan




reply via email to

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