summaryrefslogtreecommitdiff
path: root/lisp/init-ido.el
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2014-11-10 15:38:14 +0100
committerrekado <rekado@elephly.net>2014-11-10 15:38:14 +0100
commit8b95390c10c6f4dd583f39dc459afdd4f39fb0d4 (patch)
tree69d044ffced33d3e2165a48aaa46bb90823b180e /lisp/init-ido.el
parent0dcf83401c712aed0a305a7c02f57388d116354d (diff)
split off ido initialisation
Diffstat (limited to 'lisp/init-ido.el')
-rw-r--r--lisp/init-ido.el22
1 files changed, 22 insertions, 0 deletions
diff --git a/lisp/init-ido.el b/lisp/init-ido.el
new file mode 100644
index 0000000..53e05d7
--- /dev/null
+++ b/lisp/init-ido.el
@@ -0,0 +1,22 @@
+;; 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)