make custom-id links have a message.
authorJohn Kitchin <jkitchin@andrew.cmu.edu>
Mon, 26 Jan 2015 22:14:53 +0000 (17:14 -0500)
committerJohn Kitchin <jkitchin@andrew.cmu.edu>
Mon, 26 Jan 2015 22:14:53 +0000 (17:14 -0500)
org-ref.org

index db0e205..0582874 100644 (file)
@@ -3107,6 +3107,12 @@ To get a lighter weight message about the label, ref and cite links, we define a
                                (> count 1))
                        "s")))))
 
                                (> count 1))
                        "s")))))
 
+        ((string= type "custom-id")
+         (save-excursion
+           (org-open-link-from-string
+            (format "[[#%s]]" (org-element-property :path object)))
+           (message "%s" (org-get-heading))))
+
          ;; check if the bibliography files exist.
         ((string= type "bibliography")
          (let* ((bibfile)
          ;; check if the bibliography files exist.
         ((string= type "bibliography")
          (let* ((bibfile)