Skip to content

Instantly share code, notes, and snippets.

@nfedyashev
Created November 7, 2019 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nfedyashev/6b94cb70c6c418b05486a302a7dc4510 to your computer and use it in GitHub Desktop.
Save nfedyashev/6b94cb70c6c418b05486a302a7dc4510 to your computer and use it in GitHub Desktop.
loop through all outline headings in the current file and add an ID if there's not already one there:
(require 'org-id)
(save-excursion
(goto-char (point-max))
(while (outline-previous-heading)
(org-id-get-create)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment