diff options
author | Vasilij Schneidermann <mail@vasilij.de> | 2020-08-29 02:23:51 +0200 |
---|---|---|
committer | Vasilij Schneidermann <mail@vasilij.de> | 2020-08-29 02:23:51 +0200 |
commit | 68f5b349a6ef4b8daa0140c52e317566a4d38c91 (patch) | |
tree | d1529a222ed893ed07b616c73fafea6b9fcc9219 /nov.el | |
parent | f546fd16c75d4900e4518e2e36b634602072a7d1 (diff) |
Support Org versions < 9.0
Diffstat (limited to 'nov.el')
-rw-r--r-- | nov.el | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -857,10 +857,15 @@ See also `nov-bookmark-make-record'." :link (format "nov:%s::%d:%d" nov-file-name nov-documents-index (point)) :description (format "EPUB file at %s" nov-file-name)))) -(org-link-set-parameters - "nov" - :follow 'nov-org-link-follow - :store 'nov-org-link-store) +(cond + ((version< org-version "9.0") + (org-add-link-type "nov" 'nov-org-link-follow) + (add-hook 'org-store-link-functions 'nov-org-link-store)) + (t + (org-link-set-parameters + "nov" + :follow 'nov-org-link-follow + :store 'nov-org-link-store))) ;;; Imenu interop |