aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-06-20 09:16:34 -0700
committerGravatar Tom Willemse2022-06-20 09:16:34 -0700
commitcc3aa6f532ed83b3dba618f2baf1b13992936fcd (patch)
tree62f804b9db8694977034a0a2766c7c5cdc5f5454
parentf0bf02d9ecd307bbc2bac5f265c6b95415d9d31f (diff)
downloademacs-config-cc3aa6f532ed83b3dba618f2baf1b13992936fcd.tar.gz
emacs-config-cc3aa6f532ed83b3dba618f2baf1b13992936fcd.zip
[oni-org] Use IDs for org-mode links if a heading has one
I don't want to set it up to always use an ID just yet because I'm not sure how well that will work with programs like Orgzly and Orgro which don't support using ID.
-rw-r--r--oni-org/oni-org.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el
index 3a8658d..dcb1736 100644
--- a/oni-org/oni-org.el
+++ b/oni-org/oni-org.el
@@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2022.0620.091137
+;; Version: 2022.0620.091626
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org org-contrib org-bullets org-edna diminish all-the-icons olivetti)
;; This program is free software; you can redistribute it and/or modify
@@ -525,6 +525,8 @@ also move point to the start of the heading."
(with-eval-after-load 'org-edna (diminish 'org-edna-mode))
+(with-eval-after-load 'org-id
+ (setq org-id-link-to-org-use-id 'use-existing))
;;;; Agenda