2016-09-29 17:30:42 +00:00
|
|
|
(require 'ido)
|
|
|
|
(setq ido-use-virtual-buffers t
|
|
|
|
ido-enable-regexp t)
|
|
|
|
|
|
|
|
(ido-mode 'buffers)
|
|
|
|
;; (ido-mode 1)
|
|
|
|
(ido-everywhere 1)
|
|
|
|
;; (global-set-key (kbd "C-x C-l") 'ido-switch-buffer)
|
|
|
|
|
|
|
|
;; (require 'ido-ubiquitous)
|
|
|
|
;; (ido-ubiquitous-mode 1)
|
|
|
|
|
2016-10-05 21:26:49 +00:00
|
|
|
(defun cp/setup-ido-keys ()
|
|
|
|
(cp-set-keys
|
|
|
|
:keymap ido-completion-map
|
|
|
|
:bindings
|
|
|
|
`((,(kbd "C-n") ido-next-match)
|
|
|
|
(,(kbd "C-p") ido-prev-match)
|
|
|
|
(,(kbd "C-x C-p") ido-toggle-prefix)
|
|
|
|
(,(kbd "M-n") next-history-element)
|
|
|
|
(,(kbd "M-p") previous-history-element))))
|
|
|
|
|
|
|
|
(add-hook 'ido-setup-hook 'cp/setup-ido-keys)
|
2016-09-29 17:30:42 +00:00
|
|
|
|
|
|
|
(require 'smex)
|
|
|
|
(global-set-key (kbd "M-x") 'smex)
|
|
|
|
|
2016-09-29 17:42:21 +00:00
|
|
|
(load "ido-mini")
|
2016-09-29 19:40:20 +00:00
|
|
|
|
|
|
|
(global-set-key (kbd "C-x C-l") 'ido-mini)
|
|
|
|
(ido-vertical-mode 1)
|
|
|
|
|
|
|
|
;; is this being saved by desktop.el and actually being disabled here?
|
|
|
|
;; (toggle-uniquify-buffer-names)
|