summaryrefslogtreecommitdiffstats
path: root/2020
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2020-12-01 14:31:24 -0500
committerSacha Chua <sacha@sachachua.com>2020-12-01 14:31:24 -0500
commit15e723f568f163b9e82d1d2228c04e2aa7c80092 (patch)
tree8afc942fc7046353b5c34c338e1e42da496c14f3 /2020
parente688d1ae0c33baf70dc8a5e486d33e1a02cf2ea7 (diff)
downloademacsconf-wiki-15e723f568f163b9e82d1d2228c04e2aa7c80092.tar.xz
emacsconf-wiki-15e723f568f163b9e82d1d2228c04e2aa7c80092.zip
Add code for adding video links
Diffstat (limited to '')
-rw-r--r--2020/submissions.org18
1 files changed, 18 insertions, 0 deletions
diff --git a/2020/submissions.org b/2020/submissions.org
index cc6af7e3..9479941c 100644
--- a/2020/submissions.org
+++ b/2020/submissions.org
@@ -3315,7 +3315,25 @@ Talk page: <https://emacsconf.org/2020/schedule/%s>
** Copy the pad
+** Yasnippet for adding video links to the individual talk page
+#+begin_example
+# -*- mode: snippet -*-
+# name: vid
+# key: vid
+# --
+[[!template id=vid src="`(current-kill 0)`"]]
+[Download $2.webm video, 720p, $1](`(current-kill 0)`)
+#+end_example
+
+or with the source code from the directory listing:
+
+#+begin_example
+(while (re-search-forward "<a href=\"\\(.*\\)?\">.*?\\([0-9]+[MB]\\)" nil t)
+ (replace-match "[[!template id=vid src=\"https://mirror.csclub.uwaterloo.ca/emacsconf/2020/\\1\"]]
+[Download .webm video, 720p, \\2B](https://mirror.csclub.uwaterloo.ca/emacsconf/2020/\\1)
+"))
+#+end_example
* COMMENT Possible rough flow suggested by Sacha