From ef2f7cd047d3f1d845d8eb2a6ff232ba1ad33151 Mon Sep 17 00:00:00 2001 From: rearman Date: Tue, 4 Jun 2024 11:54:09 -0400 Subject: [PATCH] Disable auto-creation of org-ids --- init.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.org b/init.org index 83dd99f..439e1af 100644 --- a/init.org +++ b/init.org @@ -1620,7 +1620,7 @@ Also add that defun to =safe-local-variables= so that emacs will run it. :PROPERTIES: :ID: b40f11e3-8569-4fcd-b083-f1b682f23dc1 :END: -Generate an ID when I capture someting, and when I try to link to it. Stolen from [[https://stackoverflow.com/questions/13340616/assign-ids-to-every-entry-in-org-mode][Stack Overflow]] +Generate an ID when I capture someting, and when I try to link to it. #+BEGIN_SRC emacs-lisp (setq org-id-link-to-org-use-id t) #+END_SRC @@ -1639,7 +1639,7 @@ Automatically generate unique IDs if not already created. Stolen from [[https:/ #+END_SRC Run this on save of any org-mode file -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle no (add-hook 'org-mode-hook (lambda () (add-hook 'before-save-hook 're/org-auto-generate-ids-in-file nil 'local))) -- 2.39.5