Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"open buffer here" in emacs (ido-mode)

Tags:

emacs

elisp

I am using emacs in ido-mode. When selecting a desired buffer, instead of the buffer showing up in the current window I will be taken to a separate frame and window in which the buffer is already open. Is there a way to modify (turn off) this behavior? It seems like something I expect from (pop-to-buffer) but in ido.el there is no such reference that I can find. I think it's an ido-mode "feature" because it does not happen when I start emacs with the -q option. Thanks much in advance...

like image 826
hatmatrix Avatar asked Feb 24 '10 09:02

hatmatrix


1 Answers

ido-default-buffer-method may be what you are looking for, it has the same possible values as ido-default-file-method, and directs you to its help, which is:

ido-default-file-method is a variable defined in `ido.el'.
Its value is raise-frame

Documentation:
How to visit a new file when using `ido-find-file'.
Possible values:
`selected-window' Show new file in selected window
`other-window'    Show new file in another window (same frame)
`display'     Display file in another window without selecting to it
`other-frame'     Show new file in another frame
`maybe-frame'     If a file is visible in another frame, prompt to ask if you
                  you want to see the file in the same window of the current
                  frame or in the other frame
`raise-frame'     If a file is visible in another frame, raise that
                  frame; otherwise, visit the file in the same window
like image 111
giorgian Avatar answered Nov 08 '22 13:11

giorgian