]> git.donarmstrong.com Git - org-ref.git/commitdiff
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 db0e205a640c15f9b5c004c4bcf59adf8a33d4fc..05828740cf76a05a5d81c8d8476965f5fe01bb47 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")))))
 
+        ((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)