Variable: ido-default-file-method
ido-default-file-method is a customizable variable defined in
ido.el.gz.
Value
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 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
Source Code
;; Defined in /usr/src/emacs/lisp/ido.el.gz
;; Examples for setting the value of ido-ignore-buffers
;;(defun ido-ignore-c-mode (name)
;; "Ignore all c mode buffers -- example function for ido."
;; (with-current-buffer name
;; (derived-mode-p 'c-mode)))
;;
;;(setq ido-ignore-buffers '("\\` " ido-ignore-c-mode))
;; Examples for setting the value of ido-ignore-files
;;(setq ido-ignore-files '("\\` " "\\.c\\'" "\\.h\\'"))
(defcustom ido-default-file-method 'raise-frame
"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 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"
:type '(choice (const :tag "Visit in selected window" selected-window)
(const :tag "Visit in other window" other-window)
(const :tag "Display (no select) in other window" display)
(const :tag "Visit in other frame" other-frame)
(const :tag "Ask to visit in other frame" maybe-frame)
(const :tag "Raise frame if already visited" raise-frame)))