I'm using the clocking functionality quite extensively, and I built a number of tools (outside of Emacs) that will look for clocked-in tasks. The problem is that these tools will parse the file on disk, and therefore only pick up the clock entries if the buffer was saved in the meantime. I could just save the buffer manually, but I'm also using org-mru-clock
, so it might not always be evident which buffer to save.
So I wanted to ask whether there is an easy way to hook into the clock-in/-out events to determine the buffer the task is in, and just save it.
org-clock-in
andorg-clock-out
tosave-buffer
at the outset, and several examples of how this might work can be found by Googling: advice before emacs ... – lawlist Apr 16 '18 at 14:35