emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Remove file to original state after org-capture-kill?
@ 2021-04-15  5:25 arozbiz
  0 siblings, 0 replies; only message in thread
From: arozbiz @ 2021-04-15  5:25 UTC (permalink / raw)
  To: Emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 600 bytes --]

I have an org-capture template that looks like this:

'(("j" "Journal"
  entry (file+headline find-file-function "Journal")
  "* %?")

(I create separate Org files for each day, which the find-file-function
returns the path for.)

If I call org-capture "j" on a file that doesn't have a "Journal" headline,
it will create one for me (the desired behavior). But if I abort the
org-capture the "Journal" headline will not be deleted. Is there a way to
change this? I.e., I would like, after I call org-capture-kill, for the
file to return to the state it was before I called org-capture.

Thanks,
Alan

[-- Attachment #2: Type: text/html, Size: 815 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-15  5:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15  5:25 Remove file to original state after org-capture-kill? arozbiz

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).