1. hekevintran
  2. .emacs.d


hekevintran  committed 2e87f63

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

  • Participants
  • Parent commits 74c29af
  • Branches default

Comments (0)

Files changed (1)

File init.el

View file
 (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)