You might want to check out linkd: https://www.emacswiki.org/emacs/linkd.el
It does a lot of what you describe independently of org-mode. John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Wed, May 16, 2018 at 12:37 PM, Samuel Wales <samolog...@gmail.com> wrote: > i'm not sure if i understand the goal. is it babel-only? > > this email might be off-topic. > > what i want is links, using something like org-id, > > - from non-org [for example, a link in file.el in a comment] > - to non-org [for example, a named or id'ed location in the same file] > - or to org [e.g. an org-id'ed org entry, or a named or id'ed > location in a babel block] > > that can be, if needed, effectively, bidirectional. thus, you could > document a function in file.el using a subtree in main.org and bounce > between the function and the documentation because there is a link for > each. > > non-org [e.g. file.el] can be an original file [i.e. no babel > anywhere] or the result of tangling from babel. > > i find that org-link-minor-mode is /highly/ useful for the non-org > part of this, but it doesn't support all of the above functionality > automatically. > > i'd want a general package that is like org-link-minor-mode, but takes > care of supporting the user by creating good ids and links as needed. > > -- > The Kafka Pandemic: <http://thekafkapandemic.blogspot.com> > > The disease DOES progress. MANY people have died from it. And ANYBODY > can get it at any time. >