From b9500414bd9d45de03af08f48d2aa3e508ddd409 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Tue, 30 Jan 2018 16:51:45 -0800 Subject: [PATCH] add command to replace ids --- emacs_el/configuration/don-configuration.org | 5 +++++ 1 file changed, 5 insertions(+) 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 () -- 2.39.2