blob: 08b9303d0ff4e6785656f1915eed9de815690dad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
(setq ido-enable-prefix nil
ido-enable-flex-matching t
ido-default-file-method 'selected-window
ido-default-buffer-method 'selected-window
ido-create-new-buffer 'always
ido-use-filename-at-point 'guess
ido-auto-merge-work-directories-length -1
ido-max-prospects 10
ido-save-directory-list-file "~/.emacs.d/cache/ido.hist"
ido-max-directory-size 100000)
;; Disable ido faces to see flx highlights.
(setq ido-use-faces nil)
(setq ido-file-extensions-order
'(".org" ".txt" ".md" ".rst" ".tex" ".py" ".el" ".hs"))
(setq completion-ignored-extensions
(append '(".out" ".log" ".fls" ".fdb" ".fdb_latexmk")
completion-ignored-extensions))
(add-hook 'dired-mode-hook
(lambda ()
(set (make-local-variable 'ido-use-filename-at-point) nil)))
(ido-mode 1)
(ido-vertical-mode)
(ido-everywhere)
(flx-ido-mode)
(ido-ubiquitous-mode)
(ido-at-point-mode)
(key-chord-define-global "vv" 'ido-switch-buffer)
(provide 'init-ido)
|