[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tips for quick jumping back and forth
From: |
Edward at Work |
Subject: |
Re: Tips for quick jumping back and forth |
Date: |
Wed, 11 Jul 2012 17:04:07 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Friday, July 6, 2012 10:43:59 PM UTC-7, C K Kashyap wrote:
> Dear Emacs friends,
>
> </div>
> I need some tips for quick jumping around. As in, say I'm editing a line
> and need to go up a couple of paragraphs to edit something and then resume at
> my original position. </div>
>
> The way I used to accomplish this in Vi was using mm to mark the current
> position into m register and then go somewhere and come back by pressing
> 'm</div>
>
> </div>
> Now, I know that in emacs I can do it using C-x-r-<SPC> to mark a
> position into a register and then jump back to it usng C-x-r-j ... is there a
> better way? Rather, what's a better way?</div>
>
>
> </div>
> Regards,</div>
> Kashyap</div>
The simplest solution, provided you know ahead of time you're coming back, is
to 1) set the mark (C-space) (set-mark-command), 2) Go do what you need to do
wherever you need to do it, & finally 3) return by exchanging the point (where
you are) with the mark (C-x C-x) (exchange-point-and-mark).
Edward
- Re: Tips for quick jumping back and forth, (continued)
Re: Tips for quick jumping back and forth, B. T. Raven, 2012/07/08
Re: Tips for quick jumping back and forth, Dmitry Gutov, 2012/07/11
- Re: Tips for quick jumping back and forth, Eric Abrahamsen, 2012/07/11
- RE: Tips for quick jumping back and forth, Drew Adams, 2012/07/11
- Re: Tips for quick jumping back and forth, Dmitry Gutov, 2012/07/11
- RE: Tips for quick jumping back and forth, Drew Adams, 2012/07/11
- Re: Tips for quick jumping back and forth, Dmitry Gutov, 2012/07/11
- RE: Tips for quick jumping back and forth, Drew Adams, 2012/07/11
- Re: Tips for quick jumping back and forth, Dmitry Gutov, 2012/07/12
Re: Tips for quick jumping back and forth,
Edward at Work <=