1

I had this once upon a time but I have misplaced the bit that did it. In an arbitrary file at point I want to make an external file orgmode link that sticks around long enough to paste elsewhere. I am sure someone did this before as I used to have it. But alas, I have misplaced it.

  • 1
    You don't mean org-store-link, org-insert-link? What do you mean by link that sticks around long enough to paste elsewhere? – theldoria Dec 1 '16 at 22:06
  • Exactly. I had such a thing once upon a time that I saw on one such emacs list as this. But I have misplaced it. One command created the link at the point in the file where my cursor was. Then I would move to my org file to paste it in and be prompted to chose which with the default being the most recent. I would get a prompt to give it a label (second part of mypellink). – Samantha Atkins Dec 14 '16 at 2:42
4

Use org-store-link to store the position of your current emacs buffer file and in your org file org-insert-link to insert the stored link. This prompts you with a selection of links and a query for the description to insert.

| improve this answer | |
  • It is often recommended to bind org-store-link to C-c l, since org-insert-link is bound to C-c C-l by default. – Erik Sjöstrand Dec 14 '16 at 9:34
  • Thanks! And here I was thinking it was more complicated. – Samantha Atkins Dec 17 '16 at 11:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.