From: Don Armstrong Date: Wed, 31 Jan 2018 00:51:45 +0000 (-0800) Subject: add command to replace ids X-Git-Url: https://git.donarmstrong.com/?p=lib.git;a=commitdiff_plain;h=b9500414bd9d45de03af08f48d2aa3e508ddd409;ds=sidebyside add command to replace ids --- diff --git a/emacs_el/configuration/don-configuration.org b/emacs_el/configuration/don-configuration.org index 57eb668..8ff96f7 100644 --- a/emacs_el/configuration/don-configuration.org +++ b/emacs_el/configuration/don-configuration.org @@ -1433,6 +1433,11 @@ From http://julien.danjou.info/projects/emacs-packages#rainbow-mode, this colori do not already have one." (interactive) (org-map-entries 'org-id-get-create)) + (defun dla/org-update-ids-to-headlines-in-file () + "Add or replace ID properties to all headlines in the current file + (or narrowed region)." + (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 ()