New answers tagged


org-capture-prepare-finalize-hook worked for me, not org-capture-after-finalize-hook.


Do you not want the action taken, if the user switches buffer? If so, just use this in the timer: (when (derived-mode-p 'THE-MODE-WHERE-IT-SHOULD-BE-DONE) <your code to do it>) or: (when (eq (current-buffer) <the buffer where it should be done>) <your code to do it>) or something else similar (e.g. conditional on a given file or ...

Top 50 recent answers are included