emacs-devel
[Top][All Lists]
Advanced

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

Re: Universal/prefix argument for "other window" redirection?


From: Arthur Miller
Subject: Re: Universal/prefix argument for "other window" redirection?
Date: Thu, 08 Apr 2021 18:11:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> What I would like is to have all the cursor motion stuff, expression
>> evals etc, work on in other window so I don't need to switch back and
>> forth two buffers (I like to work with two buffers side-by-side). I
>> wonder if there is already something I could use; prefix
>> command/universal prefix whatever, to autmoatically modify behaviour of
>> interactive commands involved or do I have to write my own (if it's
>> possible :))?
>
> OT1H you mention universal-prefix (which only affects the very next
> command) but OTOH you say "all the cursor motion stuff ...".
>
> For the "all the cursor ..." case, it seems you're saying all the
> commands should operate on the other window, which is exactly what you
> get after `C-x o`, so your description needs more details to know what
> you really mean.

Haha, yes, I think I myself need more details to know what I mean :).

I don't know myself what I really want. I find myself switching a lot
between two windows, which sometimes feels redundant. Maybe it is just
the shortcut, C-x o, or in my case C-v o. After playing with Gregory's
example, I am thinking of just binding the other-window to the `ยง` key.
Maybe that itself will be enough for somewhat "smoother" experience.

> I don't think there's already what you want.
> Gregory's code is a workable starting point for the "just the next
> command" case.  Another direction might be the `vcursor.el` approach.

Indeed, Gregory's code seems to be very nice tool for some quick
fixes. I'll take a look at vcursor.el too. Thanks.



reply via email to

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