From: rearman Date: Tue, 4 Jun 2024 15:54:09 +0000 (-0400) Subject: Disable auto-creation of org-ids X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=ef2f7cd047d3f1d845d8eb2a6ff232ba1ad33151;p=emacsinit.git Disable auto-creation of org-ids --- 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)))