From cb338d7e314f4d29333f59a947ef27c9d22c6958 Mon Sep 17 00:00:00 2001 From: Sean Allred Date: Wed, 9 Nov 2016 21:03:43 -0600 Subject: Support Org 9 Fix #324 --- sx-interaction.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sx-interaction.el b/sx-interaction.el index 7b33322..f9c7ec5 100644 --- a/sx-interaction.el +++ b/sx-interaction.el @@ -227,8 +227,15 @@ Element can be a question, answer, or comment." (org-store-link-props :type 'http :link .link :description .title))))) + (eval-after-load "org" - '(add-to-list 'org-store-link-functions #'sx-org-get-link)) + '(cond + ((fboundp 'org-link-set-parameters) + (org-link-set-parameters + "sx" :store #'sx-org-get-link)) + ((boundp 'org-store-link-functions) + (add-to-list 'org-store-link-functions + #'sx-org-get-link)))) ;;; Displaying -- cgit v1.2.3