Sébastien Lerique <s...@eauchat.org> writes: > ... > Now this obviously doesn't work, primarily because I have no > `org-marker` defined as no agenda line is selected. > > I then went over the "org-roam-ui-follow-mode" code, little of which I > could use for this as most of the follow-mode looks simpler, directly > using the network instead of having to manage windows. > > Would anyone have some advice to set this up? How to replace the use of > `marker` and read the current org position instead?
You can do something like (save-excursion (org-back-to-heading t) (point-marker)) This will move point back to the beginning of current heading, return marker corresponding to that point, and move back. Hope it helps. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>