Commits

hekevintran  committed 2e87f63

use ido-mode's `maybe-frame' feature when opening files and switching buffers

  • Participants
  • Parent commits 74c29af

Comments (0)

Files changed (1)

 (ido-mode t)
 ;; enable fuzzy matching
 (setq ido-enable-flex-matching t)
-;; when visiting a file or buffer, show it in the selected window
-(setq ido-default-file-method 'selected-window)
-(setq ido-default-buffer-method 'selected-window)
+;; use `maybe-frame' so that when visiting a file or buffer, ask if you you want to see the file in the same window of the current frame or in the other frame
+(setq ido-default-file-method 'maybe-frame)
+(setq ido-default-buffer-method 'maybe-frame)
 
 ;; minibuffer completion
 (icomplete-mode t)