At times, I need to use the same link at multiple places in a long document. For
those cases it would be useful to have link IDs like in markdown.
Then, anywhere in the document, you define your link label like this, on a line by itself:
The solution I came up with defines three different functions, so I’ll let you
follow the link instead of clogging up this blog post. The result is that you
can define link IDs like this anywhere in your document (probably the top or the
bottom).
And then you can use that URL in links throughout the document by writing them
like this.
Markdown style link IDs in org-mode
10 Aug 2015, by Artur Malabarba.The Power of Org-links post series
Link handling and exporting is one of the most versatile aspects of org-mode. Did you know you can make org-mode understand Markdown style link IDs?
You should already know org-links can do absolutely anything, but it takes a little creativity to know how to apply that. Here's the question by Kaushal that prompted this over at Emacs.StackExchange.
The solution I came up with defines three different functions, so I’ll let you follow the link instead of clogging up this blog post. The result is that you can define link IDs like this anywhere in your document (probably the top or the bottom).
And then you can use that URL in links throughout the document by writing them like this.
Tags: org-mode, init.el, emacs,
A comment-or-uncomment-sexp command »
« Transposing keybinds in Emacs
Related Posts
Define context-aware keys in Emacs in org-mode
Changing the org-mode ellipsis in org-mode
Better time-stamps in org-export in org-mode
Content © 2019, All rights reserved. Icons under CC3.0.