emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nathan Neff <nathan.neff@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Open buffers, etc in other window
Date: Wed, 14 Aug 2019 15:36:05 -0500	[thread overview]
Message-ID: <CAC=HedBxz4M+8x2DQwfM_oF23ffsA_3tOkzo1OdPOokpzuv4bg@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2019-08-14 20:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-14 20:36 Nathan Neff [this message]
2019-08-14 20:57 ` Open buffers, etc in other window Nathan Neff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAC=HedBxz4M+8x2DQwfM_oF23ffsA_3tOkzo1OdPOokpzuv4bg@mail.gmail.com' \
    --to=nathan.neff@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).