Skip to content
Discussion options

You must be logged in to vote

Can you try this?

(defun denote-link-ol-store (&optional _interactive?)
  "Handler for `org-store-link' adding support for denote: links.
Optional INTERACTIVE? is used by `org-store-link'.

Also see the user option `denote-org-store-link-to-heading'."
  (when-let* ((file (buffer-file-name))
              ((file-regular-p file))
              ((denote-file-is-in-denote-directory-p file))
              ((denote-file-has-denoted-filename-p file))
              (file-id (denote-retrieve-filename-identifier file))
              (description (denote-get-link-description file)))
    (let ((heading-links (and denote-org-store-link-to-heading
                              (derived-mode-p 'org-mode)…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jarofromel
Comment options

Answer selected by jarofromel
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants