From 66969266eeadcde70d9e5dbb1a73c67d2350cf3a Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 17 Jul 2017 00:27:29 +0100 Subject: [PATCH] dot/emacs: Turn on the fancy Ido toys. If we have `ido-completing-read+' then we can safely turn on Magit's Ido support (which apparently depends on that package to sort out some edge cases). The `ido-ubiquitous' package extends Ido goodness to other commands, and depends on `ido-completing-read+' to do its dirty work anyway, so if we can enable that then it's safe to throw Magit's switch. Finally, `smex' brings Ido goodness to M-x. For safety's sake, leave traditional `execute-extended-command' on C-c M-x. --- dot/emacs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dot/emacs b/dot/emacs index bb9808f..2ab6381 100644 --- a/dot/emacs +++ b/dot/emacs @@ -586,8 +586,12 @@ (trap (windmove-default-keybindings)) (setq windmove-wrap-around t) -(trap (ido-mode)) +(trap (require 'ido) (ido-mode 1) + (require 'ido-ubiquitous) (ido-ubiquitous-mode 1) + (setq magit-completing-read-function 'magit-ido-completing-read) + (require 'smex) (smex-initialize) (global-set-key [?\M-x] 'smex)) (progn + (global-set-key [?\C-c ?\M-x] 'execute-extended-command) (global-set-key [?\e ?\e] 'mdw-wrong) (global-set-key [?\e ?\C-\] ?\C-\]] 'keyboard-escape-quit) (global-set-key [?\C-c ?w left] 'windmove-left) -- 2.11.0