aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-08-15 00:36:22 +0530
committerArun Isaac2022-08-15 16:38:44 +0530
commit3d3a5e3b724b7d183dfc88de998b9bba3eff1432 (patch)
treedda49698d183e6af2af0727e751a070cbe6e236c
parent4f3636c18512a4e46c30136b2f0919a973e38067 (diff)
downloadennum-3d3a5e3b724b7d183dfc88de998b9bba3eff1432.tar.gz
ennum-3d3a5e3b724b7d183dfc88de998b9bba3eff1432.tar.lz
ennum-3d3a5e3b724b7d183dfc88de998b9bba3eff1432.zip
Register video link type.
* ennum-html.el: Register video link type. (ennum-html-follow-video): New function.
-rw-r--r--ennum-html.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/ennum-html.el b/ennum-html.el
index ac3f0c3..eebedcd 100644
--- a/ennum-html.el
+++ b/ennum-html.el
@@ -365,6 +365,14 @@
:export 'ennum-html-export-thumbnail
:follow 'ennum-html-follow-image)
+(defun ennum-html-follow-video (path)
+ (ennum-html-follow (expand-file-name path
+ (ennum-setting :video-directory))))
+
+(org-link-set-parameters
+ "video"
+ :follow 'ennum-html-follow-video)
+
(defun ennum-html-export-static (path desc backend)
(pcase backend
((or 'ennum-html 'html)