Hello,
Dumb question:
How can I go to line 41 with emacs?
I tried M-x (press Escape then press x) then I type the line's number
and hit enter but emacs keeps saying "No match"?
Thanks :-)
Olivier
|
|
0
|
|
|
|
Reply
|
oliderid
|
7/1/2003 10:19:23 AM |
|
In <bdrnns$mub$1@flis.man.torun.pl>, Pawel Chmielewski wrote:
> Olivier Laurent wrote:
>> How can I go to line 41 with emacs?
> M-x goto-line
> and then enter line number.
> Pawel
or, put
(global-set-key "\M-g" 'goto-line)
into your .emacs. Then you can type alt-g 15, and off you go to
line-number 15.
Good luck
Franz
--
Franz M. Sauerzopf
Atominstitut, TU Wien
|
|
0
|
|
|
|
Reply
|
Franz
|
7/1/2003 11:28:24 AM
|
|
oliderid@yahoo.co.uk (Olivier Laurent) wrote in message news:<8d63e22a.0307010219.4a904ac8@posting.google.com>...
> Hello,
>
> Dumb question:
>
> How can I go to line 41 with emacs?
>
> I tried M-x (press Escape then press x) then I type the line's number
> and hit enter but emacs keeps saying "No match"?
>
> Thanks :-)
>
> Olivier
goto-line can be used as previous posters have mentioned.
I find it more useful to store places in buffer I frequently need to
go to in registers.
f.e.g. To store a position in a buffer in register 1 use C-x r SPC 1
To jump back to it use C-x r j 1
If you only need to view or edit in just two locations at the same
time set mark in one with C-SPC then jump back to it using C-x C-x
(exchange point and mark).
|
|
0
|
|
|
|
Reply
|
robert
|
7/2/2003 7:58:02 AM
|
|
robert.thorpe@antenova.com (Rob Thorpe) writes:
> I find it more useful to store places in buffer I frequently need to
> go to in registers.
Bookmarks are also useful for this. I'm currently trying to get used
to using them more often.
--
~/.signature
|
|
0
|
|
|
|
Reply
|
kai
|
7/2/2003 6:54:56 PM
|
|