diff options
author | Arun Isaac | 2022-08-15 00:36:22 +0530 |
---|---|---|
committer | Arun Isaac | 2022-08-15 16:38:44 +0530 |
commit | 3d3a5e3b724b7d183dfc88de998b9bba3eff1432 (patch) | |
tree | dda49698d183e6af2af0727e751a070cbe6e236c | |
parent | 4f3636c18512a4e46c30136b2f0919a973e38067 (diff) | |
download | ennum-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.el | 8 |
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) |