From f1166d30ccabdb208b0263d87fd9366fa9a2f325 Mon Sep 17 00:00:00 2001 From: Jacob Gerlach Date: Wed, 18 Mar 2015 09:58:00 -0400 Subject: [PATCH] Add support to link to named elements * lisp/org.el (org-store-link): Store links to named elements. Before falling back to the current headline, check if point is at a named element, and if so store the element name as the link. TINYCHANGE --- lisp/org.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lisp/org.el b/lisp/org.el index b1999dc..0a37a2f 100755 --- a/lisp/org.el +++ b/lisp/org.el @@ -9838,6 +9838,11 @@ active region." (concat "file:" (abbreviate-file-name (buffer-file-name (buffer-base-buffer)))))))) + + ((org-element-property :name (org-element-at-point)) + ;; At a named element, link to the name + (setq cpltxt (org-element-property :name (org-element-at-point)))) + (t ;; Just link to current headline (setq cpltxt (concat "file:" -- 1.9.1