From 3d3a5e3b724b7d183dfc88de998b9bba3eff1432 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 15 Aug 2022 00:36:22 +0530 Subject: Register video link type. * ennum-html.el: Register video link type. (ennum-html-follow-video): New function. --- ennum-html.el | 8 ++++++++ 1 file changed, 8 insertions(+) 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) -- cgit v1.2.3