[Fix ] Extract ido config into a module

This should make it simpler to disable ido completely if you want to use
an alternative library (like `icomplete` or `icicles` for instance).
This commit is contained in:
Bozhidar Batsov 2013-12-06 17:10:04 +02:00
parent d4a5224330
commit 3cdb7f32ad
5 changed files with 72 additions and 31 deletions

View file

@ -211,32 +211,6 @@ The body of the advice is in BODY."
;; keep in mind known issues with zsh - see emacs wiki
(setq tramp-default-method "ssh")
;; ido-mode
(require 'ido)
(require 'ido-ubiquitous)
(require 'flx-ido)
(setq ido-enable-prefix nil
ido-enable-flex-matching t
ido-create-new-buffer 'always
ido-use-filename-at-point 'guess
ido-max-prospects 10
ido-save-directory-list-file (expand-file-name "ido.hist" prelude-savefile-dir)
ido-default-file-method 'selected-window
ido-auto-merge-work-directories-length -1)
(ido-mode +1)
(ido-ubiquitous-mode +1)
;; smarter fuzzy matching for ido
(flx-ido-mode +1)
;; disable ido faces to see flx highlights
(setq ido-use-faces nil)
;; smex, remember recently and most frequently used commands
(require 'smex)
(setq smex-save-file (expand-file-name ".smex-items" prelude-savefile-dir))
(smex-initialize)
(global-set-key (kbd "M-x") 'smex)
(global-set-key (kbd "M-X") 'smex-major-mode-commands)
(set-default 'imenu-auto-rescan t)
;; flyspell-mode does spell-checking on the fly as you type

View file

@ -43,11 +43,11 @@
(defvar prelude-packages
'(ace-jump-mode ack-and-a-half anzu dash diminish elisp-slime-nav
epl expand-region flx-ido flycheck gist
epl expand-region flycheck gist
gitconfig-mode gitignore-mode grizzl
guru-mode projectile ido-ubiquitous
guru-mode projectile
magit move-text rainbow-mode
smartparens smex undo-tree
smartparens undo-tree
volatile-highlights zenburn-theme)
"A list of packages to ensure are installed at launch.")