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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie: Interactive goto-line ?!


From: Floyd Davidson
Subject: Re: Newbie: Interactive goto-line ?!
Date: Tue, 24 Feb 2004 09:35:39 -0900
User-agent: gnus 5.10.6/XEmacs 21.4.15/Linux 2.6.0

Karel Kubat <address@hidden> wrote:
>Hi all,
>
>A newbie question: I'm tired of typing "^X goto-line", so what I want is the
>same functionality, but in fewer keystrokes. E.g, after hitting M-g (or
>whatever).
>
>When I try to bind goto-line to some key, or when I try to defun a new
>function and bind that one to some key, then the following happens: the
>interpreter tells me that there's no argument. As expected; the docs say
>that goto-line needs an argument. But how do I make all this interactive,
>just as "^X goto-line" works?
>
>Thanks in advance!

I'm not sure what the default bindings are, but I've always used
any emacs with M-g bound to the goto-line function.  That means
going to line 214 is as easy as the key sequence 'ESC 214 ESG g'

This is what is in my .emacs file:

 (define-key esc-map  "g" 'goto-line)

--
Floyd L. Davidson           <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska)                         address@hidden


reply via email to

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