]> git.donarmstrong.com Git - lib.git/commitdiff
put ids on every headline in org files
authorDon Armstrong <don@donarmstrong.com>
Tue, 3 May 2022 23:33:30 +0000 (16:33 -0700)
committerDon Armstrong <don@donarmstrong.com>
Tue, 3 May 2022 23:33:30 +0000 (16:33 -0700)
emacs_el/configuration/don-configuration.org

index fa43522166be2abdc82b397ce1a5d9aa1812ffb9..c1ee1c1f57150fac5fdc94e9d82bc5cbbbcb8ce3 100644 (file)
@@ -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