dot/emacs: Get with the program and switch to Ido for buffer completion.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 16 Jul 2017 22:56:54 +0000 (23:56 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 16 Jul 2017 22:56:54 +0000 (23:56 +0100)
Bonus: it does filename completion too.  Downside: it needed a good
kicking not to do completely stupid things.

dot/emacs

index 757306b..bb9808f 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
 (setq next-line-add-newlines nil)      ;Don't add weird newlines
 (setq split-height-threshold nil)      ;Reuse windows where sensible
 (setq display-buffer-reuse-frames nil  ;Don't confuse me by showing buffers
-      iswitchb-default-method 'samewindow) ;in other random frames
+      iswitchb-default-method 'samewindow ;in other random frames
+      ido-default-file-method 'selected-window
+      ido-default-buffer-method 'selected-window)
+(setq ido-enable-flex-matching t
+      ido-confirm-unique-completion t
+      ido-use-filename-at-point t)
 (setq dired-deletion-confirmer         ;Make deletion easier in dired
       (symbol-function 'y-or-n-p)
       dired-listing-switches "-alF"    ;Do `ls -F' things in dired windows
 (trap
   (windmove-default-keybindings))
 (setq windmove-wrap-around t)
-(trap (iswitchb-mode))
+(trap (ido-mode))
 (progn
   (global-set-key [?\e ?\e] 'mdw-wrong)
   (global-set-key [?\e ?\C-\] ?\C-\]] 'keyboard-escape-quit)