There are quite a few commands I run in org-mode to jump to
headlines: org-clock-goto org-capture-goto-last-stored, etc.
Sometimes, I would prefer that those "jump" commands would use
a new window to perform the jump.
In my quest to learn Lisp a bit better, I'd like to ask for recommended
way(s) to set some kind of flag "e.g. use-other-window", and "wrap"
the various jump commands with code to switch to the other window (or create one)
and then call the function.
For example, something like:
(def decorator njn-switch-or-create-window() )
(if use-other-window ( switch or create window))
(call original function)
(decorate (org-tags-view, org-clock-goto, org-capture-goto-last-stored
I *know* Lisp has a bunch of ways of doing this, but I would
like to hear the "best" way to attempt something like this :)