aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2016-11-09 21:03:43 -0600
committerSean Allred <code@seanallred.com>2016-11-09 21:03:43 -0600
commitcb338d7e314f4d29333f59a947ef27c9d22c6958 (patch)
tree6ac061d6f7926a2b6e1a58b09ad424e14f3e15e7
parent87dfd1e2ce093d53c0919dac7899bbf06bd96224 (diff)
Support Org 9
Fix #324
-rw-r--r--sx-interaction.el9
1 files changed, 8 insertions, 1 deletions
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