Results 1 to 3 of 3

Thread: Emacs: save position of the cursor and go to it later

  1. #1
    Join Date
    Aug 2005
    Beans
    27

    Emacs: save position of the cursor and go to it later

    Hi,
    often, when working on a buffer, I need to go to another location, modify the buffer there, and then jump back where I was working. Is there a way to automate the process of marking the place and jumping back?
    I know the existence of bookmarks, but it is a little bit too much overhead (setting the name of the bookmark, go and modify, asking to go back to bookmark-name, write something, then setting again another bookmark, and so on...)
    The go to line seems to be a better solution, but still too much overhead

    I know that some modes, like ebib, go back to where you started the search when it is done, and in my dreams I would like to have a keyboard shortcut for marking the place and one to go back there.

    Any suggestion?

  2. #2
    Join Date
    Aug 2005
    Location
    Fargo, ND, USA
    Beans
    1,499
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Emacs: save position of the cursor and go to it later

    I use this: http://www.emacswiki.org/emacs/VisibleBookmarks. I like it because it's simple and gives a visual indicator.

    See also: http://www.emacswiki.org/emacs/BreadcrumbForEmacs
    Help yourself: Search the community docs or try other resources.
    Quote Originally Posted by Henry Spencer
    Those who do not understand Unix are condemned to reinvent it, poorly.
    Let science use your computer when you aren't: Folding@Home.

  3. #3
    Join Date
    Aug 2005
    Beans
    27

    Re: Emacs: save position of the cursor and go to it later

    Thanks!
    I have to admit that breadcrumb looks really nice, but as I wanted something really really simple I went for visible bookmarks and it works like a charm after 15 secs of configuring.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •