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.
source share