Add flx to list of default packages
This commit is contained in:
parent
e70cd713f1
commit
f341074dd8
4 changed files with 22 additions and 1 deletions
12
README.md
12
README.md
|
@ -430,6 +430,18 @@ you don't like that simply add this to your personal config:
|
||||||
'move-beginning-of-line)
|
'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
|
### Windows compatibility
|
||||||
|
|
||||||
While everything in Prelude should work fine in Windows, I test it only
|
While everything in Prelude should work fine in Windows, I test it only
|
||||||
|
|
|
@ -213,6 +213,7 @@ Will only occur if prelude-whitespace is also enabled."
|
||||||
;; ido-mode
|
;; ido-mode
|
||||||
(require 'ido)
|
(require 'ido)
|
||||||
(require 'ido-ubiquitous)
|
(require 'ido-ubiquitous)
|
||||||
|
(require 'flx-ido)
|
||||||
(setq ido-enable-prefix nil
|
(setq ido-enable-prefix nil
|
||||||
ido-enable-flex-matching t
|
ido-enable-flex-matching t
|
||||||
ido-create-new-buffer 'always
|
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-default-file-method 'selected-window)
|
||||||
(ido-mode +1)
|
(ido-mode +1)
|
||||||
(ido-ubiquitous +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
|
;; smex, remember recently and most frequently used commands
|
||||||
(require 'smex)
|
(require 'smex)
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
|
|
||||||
(defvar prelude-packages
|
(defvar prelude-packages
|
||||||
'(ace-jump-mode ack-and-a-half dash diminish elisp-slime-nav
|
'(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
|
git-commit-mode gitconfig-mode gitignore-mode grizzl
|
||||||
guru-mode helm helm-projectile ido-ubiquitous
|
guru-mode helm helm-projectile ido-ubiquitous
|
||||||
key-chord magit rainbow-mode
|
key-chord magit rainbow-mode
|
||||||
|
|
4
init.el
4
init.el
|
@ -72,6 +72,10 @@ by Prelude.")
|
||||||
(add-to-list 'load-path prelude-vendor-dir)
|
(add-to-list 'load-path prelude-vendor-dir)
|
||||||
(prelude-add-subfolders-to-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
|
;; the core stuff
|
||||||
(require 'prelude-packages)
|
(require 'prelude-packages)
|
||||||
(require 'prelude-ui)
|
(require 'prelude-ui)
|
||||||
|
|
Loading…
Reference in a new issue