emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: org-set-properties for various (all) headings


From: Kaushal Modi
Subject: Re: org-set-properties for various (all) headings
Date: Tue, 19 Jul 2022 12:30:35 -0400

On Tue, Jul 19, 2022, 10:54 AM Uwe Brauer <oub@mat.ucm.es> wrote:


#+begin_src elisp :noexport
(defun my-set-property-at-heading ()
  "Function to be called at the beginning of an Org heading."
  (interactive)
  (let ((el (org-element-at-point)))
    (org-set-property "New" (org-element-property "[ ]" el)))))
(org-map-entries #'my-set-property-at-heading)

#+end_src

Try replacing the `org-set-property` form to:

(org-set-property "New" "[]")

[Not tested, typing from phone.]

reply via email to

[Prev in Thread] Current Thread [Next in Thread]