Emacs Function to Assign Org-Mode Property to Matching Criteria

Open link in next tab

Emacs Function to Assign Org-Mode Property to Matching Criteria

https://takeonrules.com/2024/02/24/emacs-function-to-assign-org-mode-property-to-matching-criteria/

Yesterday, I wrote my Update on the Campaign Status Document. I had manually set the alignment of several Non-Player Characters (NPCs 📖) ; but I thought “Maybe I should instead clear those out and randomize?” And I started thinking about how I might automatically update (or add) new properties. What I wanted was to select a top-level headline, select a property name, and pick a random table. (Sidenote: As per my random-tables Emacs package 📖 .

Emacs Function to Assign Org-Mode Property to Matching Criteria

Some Emacs Lisp to help me populate random information into my Campaign Status document. This delves into the org-element-map function and some querying of information to pick the right elements.