Using bookmarks to open a file, but always at a given position

When using bookmarks to open a file, is there a way to always open at a specific position in the file?

+4
source share
2 answers

The default behavior of Emacs when bookmarking with Cx rm is to bookmark the file and position. So, if you use this command (a set of bookmarks), it will have the behavior you are asking for.

If you are Ch k Cx rm to view the documentation:

Cx rm runs the bookmark-set command, which is an interactive compiled Lisp function in `bookmark.el '.

It is associated with Cx rm,.

(bookmark set and optional NAME NO-RENEW)

Bookmark NAME at your current location.

+5
source

It can even set two positions (area) if you use Bookmark + .

+1
source

All Articles