How to center a label on a specific position?

In Emacs, how do I set a label to refer to a certain position in the file and return to that point using that label?

  • For e.g. I want to label the position 3rd column in line 2 using say "l2c3" and then from any position in the file, be able to invoke something like "goto l2c3" to get me back at that position. I remember using this in the past but am unable to recall how I did it. Something to do with markers?

  • Answer:

    What you're looking for is bookmarks. C-x r m <RET>  to set-up a bookmark and C-x r b <name of the bookmark> to go back to it. http://www.gnu.org/software/emacs/manual/html_node/emacs/Bookmarks.html

Eric Arnal at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.