From: Don Armstrong Date: Tue, 3 May 2022 23:33:30 +0000 (-0700) Subject: put ids on every headline in org files X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1220982759272139b85373b40a9e9e41eee36314;p=lib.git put ids on every headline in org files --- diff --git a/emacs_el/configuration/don-configuration.org b/emacs_el/configuration/don-configuration.org index fa43522..c1ee1c1 100644 --- a/emacs_el/configuration/don-configuration.org +++ b/emacs_el/configuration/don-configuration.org @@ -1849,9 +1849,9 @@ From http://julien.danjou.info/projects/emacs-packages#rainbow-mode, this colori (interactive) (org-map-entries '(lambda () (org-id-get-create t)))) ; if we wanted to do this to every buffer, do the following: - ; (add-hook 'org-mode-hook - ; (lambda () - ; (add-hook 'before-save-hook 'my/org-add-ids-to-headlines-in-file nil 'local))) + (add-hook 'org-mode-hook + (lambda () + (add-hook 'before-save-hook 'my/org-add-ids-to-headlines-in-file nil 'local))) #+END_SRC ** Org ID locations #+BEGIN_SRC emacs-lisp