[Top][All Lists]

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

Re: Add -other-{window, frame} variants of project-prefix-map commands

From: Juri Linkov
Subject: Re: Add -other-{window, frame} variants of project-prefix-map commands
Date: Mon, 06 Jul 2020 03:23:44 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

>> It seems like it would be a good idea to have
>> C-x 4 p f
>> be like
>> C-x 4 4 C-x p f
>> C-x 5 p e
>> be like
>> C-x 5 5 C-x p e
>> etc., since many of the commands in project-prefix-map involve switching
>> to another buffer.  Certainly project-switch-project, project-find-file
>> and project-switch-to-buffer would be wanted.
>> Rather than add definitions of project-find-file-other-window,
>> project-eshell-other-frame etc., maybe
>> `display-buffer-override-next-command' could be used so that pressing
>> C-x 4 p really is just like pressing C-x 4 4 C-x p.
>> The only disadvantage I can see is that commands like C-x 4 p k would
>> also be bound and those don't really make sense.
>> What would be the cleanest way to try to do this?
> Install the GNU ELPA package other-frame-window; that adds those key
> prefixes to all commands.

The advantage of other-frame-window is the dedicated keymap that
makes all commands to display their buffers in other-window/frame.
I think that Emacs core can't have such keymap.

reply via email to

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