Add flx to list of default packages

This commit is contained in:
Bozhidar Batsov 2013-07-13 10:01:19 +03:00
parent e70cd713f1
commit f341074dd8
4 changed files with 22 additions and 1 deletions

View file

@ -430,6 +430,18 @@ you don't like that simply add this to your personal config:
'move-beginning-of-line)
```
### Poor ido matching performance on large datasets
Prelude swaps the default `ido` flex matching with the more powerful
[ido-flx](https://github.com/lewang/flx). This might introduce some
performance problems with huge datasets. If you experience lag in
`ido`, please, report an issue upstream. You can always disable the
improved matching algorithm like this:
```lisp
(flx-ido-mode -1)
```
### Windows compatibility
While everything in Prelude should work fine in Windows, I test it only

View file

@ -213,6 +213,7 @@ Will only occur if prelude-whitespace is also enabled."
;; 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
@ -222,6 +223,10 @@ Will only occur if prelude-whitespace is also enabled."
ido-default-file-method 'selected-window)
(ido-mode +1)
(ido-ubiquitous +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)

View file

@ -42,7 +42,7 @@
(defvar prelude-packages
'(ace-jump-mode ack-and-a-half dash diminish elisp-slime-nav
expand-region flycheck gist
expand-region flx flycheck gist
git-commit-mode gitconfig-mode gitignore-mode grizzl
guru-mode helm helm-projectile ido-ubiquitous
key-chord magit rainbow-mode

View file

@ -72,6 +72,10 @@ by Prelude.")
(add-to-list 'load-path prelude-vendor-dir)
(prelude-add-subfolders-to-load-path prelude-vendor-dir)
;; reduce the frequency of garbage collection by making it happen on
;; each 50MB of allocated data (the default is on every 0.76MB)
(setq gc-cons-threshold 50000000)
;; the core stuff
(require 'prelude-packages)
(require 'prelude-ui)