summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-02-28 19:20:48 -0500
committerKyle Meyer <kyle@kyleam.com>2014-02-28 19:27:25 -0500
commitd1b1f3cfc5dae803460113afef1047018c045036 (patch)
tree4d4d4182a71d14f1381800ecc374f92da10c60ba
parente3af0ee7c0a2a4a80c74102ffd37f04e84b9fa06 (diff)
downloademacs.d-d1b1f3cfc5dae803460113afef1047018c045036.tar.gz
Always switch to buffer in new window
The default file and buffer switching methods for ido will raise a frame if the buffer is already present somewhere else. With `selected-window', the buffer is always shown in the current window, which behaves better with multiple screens.
-rw-r--r--lisp/init-ido.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/init-ido.el b/lisp/init-ido.el
index 5c37e71..fc63bfb 100644
--- a/lisp/init-ido.el
+++ b/lisp/init-ido.el
@@ -3,6 +3,8 @@
(setq ido-enable-prefix nil
ido-enable-flex-matching t
+ ido-default-file-method 'selected-window
+ ido-default-buffer-method 'selected-window
ido-create-new-buffer 'always
ido-use-filename-at-point 'guess
ido-max-prospects 10