[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] kill contents of a headline, but retain properties
From: |
Nicolas Goaziou |
Subject: |
Re: [O] kill contents of a headline, but retain properties |
Date: |
Fri, 07 Aug 2015 15:01:08 +0200 |
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