|
From: | Matt Price |
Subject: | Re: [O] kill contents of a headline, but retain properties |
Date: | Fri, 7 Aug 2015 10:21:30 -0400 |
Hello,
Matt Price <address@hidden> writes:
> I have a headline like this:
>
> * Gradebook
> :PROPERTIES:
> :CUSTOM_ID: gradebook
> :END:
>
> some content etc etc etc.
>
> I would like to be able to replace the contents of that headline
> automatically, but retain the properties.
(org-link-search "[[#gradebook]]")
(delete-region (org-end-of-meta-data)
(progn (outline-next-heading) (point)))
You can also create contents with a dynamic block, which will replace
contents at each update.
Regards,
--
Nicolas Goaziou
[Prev in Thread] | Current Thread | [Next in Thread] |