Merge pull request #305 from toctan/master

Add smex and ido-ubiquitous for better `M-x`
This commit is contained in:
Bozhidar Batsov 2013-04-28 06:23:51 -07:00
commit c0742219a6
2 changed files with 10 additions and 3 deletions

View file

@ -209,6 +209,13 @@ Will only occur if prelude-whitespace is also enabled."
ido-save-directory-list-file (expand-file-name "ido.hist" prelude-savefile-dir)
ido-default-file-method 'selected-window)
(ido-mode +1)
(ido-ubiquitous +1)
;; smex, remember recently and most frequently used commands
(setq smex-save-file (concat user-emacs-directory ".smex-items"))
(smex-initialize)
(global-set-key (kbd "M-x") 'smex)
(global-set-key (kbd "M-X") 'smex-major-mode-commands)
;; auto-completion in minibuffer
(icomplete-mode +1)

View file

@ -44,9 +44,9 @@
'(ace-jump-mode ack-and-a-half dash diminish elisp-slime-nav
expand-region flycheck gist
git-commit-mode gitconfig-mode gitignore-mode
guru-mode helm helm-projectile
key-chord magit melpa
rainbow-mode solarized-theme undo-tree
guru-mode helm helm-projectile ido-ubiquitous
key-chord magit melpa rainbow-mode
smex solarized-theme undo-tree
volatile-highlights yasnippet zenburn-theme)
"A list of packages to ensure are installed at launch.")