Nafiz Islam <nafiz.islam1...@gmail.com> writes: > The problem with my implementation is that it modifies the org file before > prompting the user for item entry. As a result, if I cancel/abort my > org-capture, that modification will still be present.
You can make use of `org-capture-put' and :hook capture property to mark a custom region to be killed on abort via `org-capture-mark-kill-region'. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>