diff options
author | rekado <rekado@elephly.net> | 2016-07-04 23:07:07 +0200 |
---|---|---|
committer | rekado <rekado@elephly.net> | 2016-07-04 23:07:07 +0200 |
commit | 6481d0fa8cdfa1f5d239a618a88961f45f48b27c (patch) | |
tree | be3083f074246d7fc336175e206f5c62a866c812 | |
parent | 8fde72e04b5df8a579f6740b1715a0655be3add8 (diff) |
Revert "Remove ido."
This reverts commit af48ee7c6e4ef551e387c8d37e7c85b392c36d88.
-rw-r--r-- | init.el | 1 | ||||
-rw-r--r-- | lisp/init-ido.el | 26 |
2 files changed, 27 insertions, 0 deletions
@@ -146,6 +146,7 @@ (load "email.el") (load "init-org.el") (require 'my/init-org) +(load "init-ido.el") (load "init-completion.el") (load "init-geiser.el") (load "init-gnus.el") diff --git a/lisp/init-ido.el b/lisp/init-ido.el new file mode 100644 index 0000000..5cbf566 --- /dev/null +++ b/lisp/init-ido.el @@ -0,0 +1,26 @@ +;; ido mode +(require 'ido) +(require 'ido-vertical-mode) +(ido-mode 1) +(ido-vertical-mode 1) +(setq ido-vertical-define-keys 'C-n-and-C-p-only) +(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) |