In Emacs, how can I have the same buffer open in multiple frames (when using ido/iswitch)?
Asked Answered
G

2

12

In emacs, I'd like to open the same buffer in multiple frames. Before I used ido, this was easy: I'd just switch to the buffer in one frame with C-x b, then focus a different frame in my window manager, and then open the buffer in that other frame too (with C-x b again.) But, now that I use ido for fuzzy completion in C-x b, when I try to open the second copy of the buffer, it just sends the focus back to the first frame and frustrates me.

Is there a variable I can set to control this behavior?

Ideally, I'd like C-x b ENTER to not be biased at all by the other buffers that are open (normally, it tries to default to a buffer that is not open in any window.)

Gag answered 10/7, 2010 at 0:6 Comment(0)
W
17

It looks like

(setq ido-default-buffer-method 'selected-window)

is what you need.

Wunder answered 10/7, 2010 at 1:7 Comment(3)
FYI for iswitchb, it's (setq iswitchb-default-method 'samewindow)Incivility
This only applies to opening buffers with C-x b. For opening files with C-x C-f, add this too: (setq ido-default-buffer-method 'selected-window)Calcutta
HXCaine: s/ido-default-buffer-method/ido-default-file-method/Growth
U
1

I use C-r in Ido to search backward through it's list. The buffer that I want has usually been pushed to the end of the list. I do tend to use multiple window splits (verticle and horizontal) instead of multiple frames.

Unvoiced answered 13/7, 2010 at 22:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.