When doing literate programming in org-mode, I frequently use C-c '
[aka M-x org-edit-special
] to enter the source-block-edit-buffer, so that I have appropriate yasnippets etc.
I then accidentally save this buffer with :w
, and end up with files like
Network.org[*Org Src Network.org[ graphviz-dot ]*]
littering my folder.
How can I avoid saving these files? Ideally, I would want the attempt to save the source-block-edit-buffer trigger saving the "parent" org file.
Edit: I now realize after the answer from @lawlist, that I was not having this problem every-time I save. Only, when I was using the :w
evil ex mode command, not with C-x C-s
. I use both, depending which is easier in context to type. I always thought this was equivalent, so I did not mention it when I first submitted the question. Sorry, since this sightly shifts the topic of the question.