emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Open buffers, etc in other window
@ 2019-08-14 20:36 Nathan Neff
  2019-08-14 20:57 ` Nathan Neff
  0 siblings, 1 reply; 2+ messages in thread
From: Nathan Neff @ 2019-08-14 20:36 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 877 bytes --]

Hello all,

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
njn-switch-or-create-window

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 :)

Thanks,
--Nate

[-- Attachment #2: Type: text/html, Size: 1284 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-08-14 20:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-14 20:36 Open buffers, etc in other window Nathan Neff
2019-08-14 20:57 ` Nathan Neff

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).