In <firstname.lastname@example.org>, Pawel Chmielewski wrote:
> Olivier Laurent wrote:
>> How can I go to line 41 with emacs?
> M-x goto-line
> and then enter line number.
(global-set-key "\M-g" 'goto-line)
into your .emacs. Then you can type alt-g 15, and off you go to
Franz M. Sauerzopf
Atominstitut, TU Wien
email@example.com (Olivier Laurent) wrote in message news:<firstname.lastname@example.org>...
> 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 :-)
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).
email@example.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.