Add function to put ids on every heading in an Org file

This commit is contained in:
Jeremy Dormitzer 2020-02-04 11:21:56 -05:00
parent de348156e0
commit a77a4549a1

View File

@ -1390,6 +1390,17 @@ Always open directory links in Emacs instead of Finder:
(add-to-list 'org-file-apps '(directory . emacs)))
#+END_SRC
A function to add ids to every heading in an Org file:
#+BEGIN_SRC emacs-lisp
(defun org-get-create-ids-all ()
(interactive)
(save-excursion
(goto-char (point-max))
(while (outline-previous-heading)
(org-id-get-create))))
#+END_SRC
** Agenda files
#+BEGIN_SRC emacs-lisp
(defun agenda-files (&optional file)