From: Mark Wooding Date: Sun, 16 Jul 2017 23:27:29 +0000 (+0100) Subject: dot/emacs: Turn on the fancy Ido toys. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/66969266eeadcde70d9e5dbb1a73c67d2350cf3a 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. --- 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)