From 27ee08010c5dc36f9aad828fa18bb57c108a3416 Mon Sep 17 00:00:00 2001 From: noa@gaiwan.org Date: Thu, 8 Aug 2024 15:44:21 +0000 Subject: Use org ids instead of searching for headings in org links --- config.org | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config.org b/config.org index e6d88ea..c7bc545 100644 --- a/config.org +++ b/config.org @@ -561,6 +561,12 @@ I thought it would be a good idea to have the ability to set headings in my note (org-fc-directories (expand-file-name "~/data/notes/"))) #+end_src +When creating links between org documents, it's better to create and use unique ids rather than search for a headline, because that headline could change. + +#+begin_src elisp + (setopt org-id-link-to-org-use-id 'create-if-interactive) +#+end_src + If we enable this, emphasis markers will be hidden for a more word processor feel. This has the downside of meaning you have to delete a hidden character to get rid of bold or italic text. I don't have much of a problem with seeing the emphasis markers so i'm willing to put up with any aesthetic shortcomings for a better user experience. The package org-appear solves this by hiding them, but showing them when the point is over them, but i don't think having a whole package just for that is worth it. #+begin_src elisp -- cgit 1.4.1-2-gfad0