I like to use org-refile to refile notes during the capture process. But, since org-refile does not saves the file after the refiling is done, the file ends up being locked up and I need to visit the file and manually save the buffer in order to access it from another emacs process or another application. Emacs also ask me if I want to save the file upon exit.
Is there anyway to make org-refile save the file automatically after the capture process is done?
I also note that after refiling there is no buffer opened associated with the file, still, if I visit the file the buffer appears as modified and the changes are not saved.
:after
toorg-refile
to save the current buffer if it's associated with a file. See Advising Emacs Lisp Functions. – rasmus Jan 6 '16 at 1:04org-mode
? You can find yourorg-mode
version withM-x org-version
. For me, usingorg-refile
from theorg-capture
buffer works fine, and the first thing I see in the echo area isWrote /path/to/my/org/file
indicating that the file was indeed saved after capture. My suspicion is that whatever file you are refiling to is open in another emacs frame/instance. Could this be the case? – elethan Jan 6 '16 at 2:09org-after-refile-insert-hook
runs after the entry is put in the new location, but before it is removed from the old. – erikstokes Jan 6 '16 at 2:38