Embedding Youtube videos with org-mode links28 Jul 2015, by Artur Malabarba.
The Power of Org-links post series
If you’re a frequent reader, no doubt you noticed an embedded Youtube video on a
post a couple of weeks ago. Youtube makes it pretty simple to embed videos, they
give you the entire
iframe HTML code to use, but this wouldn’t really be Emacs
if we couldn’t make things just a little bit easier. Just add the snippet below
to your init file, and you’re good to go.
To use this, just write your org links in the following way (optionally adding a description).
When you export to HTML, this will produce that same inlined snippet that
Youtube specifies. The advantage (over simply writing out the
iframe) is that
this link can be clicked in
org-mode, and can be exported to other formats as