summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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