Created
June 11, 2020 16:51
-
-
Save linktohack/65d5f7c215771214f53365ddc83ec760 to your computer and use it in GitHub Desktop.
Org back link
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun my-org-occur-backlinks () | |
"Find links in org files which link to the current location." | |
(interactive) | |
(let ((id (org-id-get)) | |
(heading (nth 4 (org-heading-components)))) | |
(org-occur-in-agenda-files | |
(if id | |
(concat id "\\|" heading) | |
heading)))) | |
(define-key global-map (kbd "C-c b") 'my-org-occur-backlinks) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment