New answers tagged hooks
1
org-capture-prepare-finalize-hook worked for me,
not org-capture-after-finalize-hook.
0
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
Related Tags
hooks × 292org-mode × 28
minor-mode × 16
elisp × 15
init-file × 14
key-bindings × 12
buffers × 11
window × 8
major-mode × 8
themes × 8
advice × 8
files × 7
buffer-local × 7
spacemacs × 6
saving × 6
magit × 5
evil × 5
frames × 5
use-package × 5
kill-buffer × 5
exit × 5
debugging × 4
faces × 4
emacsclient × 4
functions × 4