blob: 48d025101ea571cfcbb49da1c9591f7ff5d000a7 (
about) (
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
|
;; ido mode
(require 'ido)
(require 'ido-vertical-mode)
(ido-mode 1)
(ido-vertical-mode 1)
(setq ido-ubiquitous-max-items 50000)
;; hit ~ to go straight to the home directory in ido mode
(add-hook 'ido-setup-hook
(lambda ()
;; Go straight home
(define-key ido-file-completion-map
(kbd "~")
(lambda ()
(interactive)
(if (looking-back "/")
(insert "~/")
(call-interactively 'self-insert-command))))))
;; Use ido everywhere
(require 'ido-ubiquitous)
(ido-ubiquitous-mode 1)
(fset 'yes-or-no-p 'y-or-n-p)
;; open file at point with C-x C-f
(setq ido-use-filename-at-point 'guess)
|