[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Open buffers, etc in other window

From: Nathan Neff
Subject: Re: [O] Open buffers, etc in other window
Date: Wed, 14 Aug 2019 15:57:33 -0500

I just found the term I'm looking for:  "advice" -- here's an unrelated

On Wed, Aug 14, 2019 at 3:36 PM Nathan Neff <address@hidden> wrote:
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

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]