-
Notifications
You must be signed in to change notification settings - Fork 7
/
my-ido.el
32 lines (27 loc) · 1.21 KB
/
my-ido.el
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
;; Ido
(require 'ido)
(ido-mode 1)
;; Display results vertically
(require 'ido-vertical-mode)
(ido-vertical-mode)
(setq ido-enable-prefix nil
ido-enable-flex-matching t
ido-case-fold t ;; ignore case
ido-auto-merge-work-directories-length -1 ;; disable auto-merge (it's confusing)
ido-create-new-buffer 'always ;; create new files easily
ido-use-filename-at-point nil ;; don't try to be smart about what I want
ido-everywhere t
)
;; I like visual matching (colors)
(setq ido-use-faces t)
;; Ido buffer intuitive navigation
(add-hook 'ido-setup-hook '(lambda ()
(define-key ido-completion-map "\C-h" 'ido-delete-backward-updir)
(define-key ido-completion-map "\C-n" 'ido-next-match)
(define-key ido-completion-map "\C-f" 'ido-next-match)
(define-key ido-completion-map "\C-p" 'ido-prev-match)
(define-key ido-completion-map "\C-b" 'ido-prev-match)
(define-key ido-completion-map " " 'ido-exit-minibuffer)
))
;; Ignore .DS_Store files with ido mode
(add-to-list 'ido-ignore-files "\\.DS_Store")