summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--emacsconf.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/emacsconf.el b/emacsconf.el
index 5737616..3dadca7 100644
--- a/emacsconf.el
+++ b/emacsconf.el
@@ -111,6 +111,16 @@
(setq value (or value (org-read-property-value prop)))
(org-entry-put (point) prop value))))
+
+(defun emacsconf-complete-slug ()
+ (emacsconf-get-slug-from-string (emacsconf-complete-talk)))
+
+(with-eval-after-load 'org
+ (org-link-set-parameters
+ "emacsconf"
+ :follow #'emacsconf-go-to-talk
+ :complete (lambda () (concat "emacsconf:" (emacsconf-complete-slug)))))
+
(defun emacsconf-complete-talk ()
(let ((choices (with-current-buffer (find-file-noselect emacsconf-org-file)
(save-excursion