From f4ff6e2e46e5933d4405074cd1b8dc044e44239c Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Sun, 21 Sep 2025 13:45:36 -0400 Subject: emacsconf-org-insert-description --- emacsconf.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'emacsconf.el') diff --git a/emacsconf.el b/emacsconf.el index b2889f2..35233f6 100644 --- a/emacsconf.el +++ b/emacsconf.el @@ -479,10 +479,16 @@ FILENAME specifies an extra string to add to the file prefix if needed." (format "[%s](%s \"%s\")" desc path (plist-get talk :title))) (_ path)))) +(defun emacsconf-org-insert-description (link desc) + (unless desc + (when (string-match "emacsconf:\\(.+\\)" link) + (plist-get (emacsconf-search-talk-info (match-string 1 link)) :title)))) + (with-eval-after-load 'org (org-link-set-parameters "emacsconf" :follow #'emacsconf-go-to-talk + :insert-description #'emacsconf-org-insert-description :complete (lambda () (concat "emacsconf:" (emacsconf-complete-slug))) :export #'emacsconf-export-slug)) -- cgit v1.2.3