diff options
Diffstat (limited to 'org')
-rw-r--r-- | org/jao-org-links.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/org/jao-org-links.el b/org/jao-org-links.el index 1ce7ab3..4f8d606 100644 --- a/org/jao-org-links.el +++ b/org/jao-org-links.el @@ -5,7 +5,7 @@ ;; doc links (defvar jao-org--sink-dir "./") -(org-add-link-type "doc" 'jao-org-follow-doc 'identity) + (defun jao-org-follow-doc (link) (let ((dest-path (concat "./doc/" (and (boundp 'docs-dir) @@ -34,6 +34,7 @@ (insert (format "[[doc:%s][%s]]" (jao-org--title->file title) title))) (defun jao-org-links-setup (sink-dir) + (org-add-link-type "doc" 'jao-org-follow-doc 'identity) (setq jao-org--sink-dir (file-name-as-directory sink-dir))) (defun jao-org-insert-safari-link () |