From a02fc189aba6fbb44608eca2e783b018b619606b Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 12 Sep 2020 09:50:47 +0200 Subject: [PATCH] Keep org links after insertion --- init.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 618eb1f..6e59cf4 100644 --- a/init.el +++ b/init.el @@ -757,7 +757,6 @@ With given ARG, display files in `db/important-document-path’." (use-package org :pin "gnu" - :commands (org-store-link) :bind (:map org-mode-map ([remap org-return] . org-return-indent)) :init (progn @@ -933,6 +932,10 @@ With given ARG, display files in `db/important-document-path’." ;; This is different in the original implementation (org-entry-get pom property)))))) +(use-package ol + :init (setq org-link-keep-stored-after-insertion t) + :commands (org-store-link)) + (use-package org-id :custom (org-id-link-to-org-use-id 'create-if-interactive-and-no-custom-id))